You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when I run "Add-MgServicePrincipalKey -ServicePrincipalId $spoappid -BodyParameter $params -Verbose", it always shows error “Add-MgServicePrincipalKey : Resource '00000003-0000-0ff1-ce00-000000000000' does not exist or one of its queried reference-property objects are not present.”
In my command, $spoappid is '00000003-0000-0ff1-ce00-000000000000', while $params is $params = @{ keyCredential = @{ type = "AsymmetricX509Cert" usage = "Verify" key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...") } passwordCredential = $null proof = "eyJ0eXAiOiJ..." }
I wonder where I can find the source code of Add-MgServicePrincipalKey so that I can troubleshoot my error?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently when I run "
Add-MgServicePrincipalKey -ServicePrincipalId $spoappid -BodyParameter $params -Verbose
", it always shows error “Add-MgServicePrincipalKey : Resource '00000003-0000-0ff1-ce00-000000000000' does not exist or one of its queried reference-property objects are not present.”In my command, $spoappid is '00000003-0000-0ff1-ce00-000000000000', while $params is
$params = @{
keyCredential = @{
type = "AsymmetricX509Cert"
usage = "Verify"
key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...")
}
passwordCredential = $null
proof = "eyJ0eXAiOiJ..."
}
I wonder where I can find the source code of Add-MgServicePrincipalKey so that I can troubleshoot my error?
Beta Was this translation helpful? Give feedback.
All reactions