-
How do I get the secret for a newly created Service Principal with the recent changes. Previously I would create the Service Principal like this: Then I would capture the secret like this: Now with az.Resources 5.0.0 Preview, the _.Secret property is null. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @GaryTuttle1 , the msgraph API now won't return secret except the response of New-AzAdSpCredential, to get the secret, you need to explicitly run this cmdlet and get it from (New-AzAdSpCredential).SecretText |
Beta Was this translation helpful? Give feedback.
Hi @GaryTuttle1 ,
the msgraph API now won't return secret except the response of New-AzAdSpCredential, to get the secret, you need to explicitly run this cmdlet and get it from (New-AzAdSpCredential).SecretText