DEV Community

loading...

Discussion on: Manage Azure Service principal's credentials expiry

Collapse
mahdihedhli profile image
Mahdi Hedhli

Just a heads up... I believe Microsoft removed the ability to set your own passwords on service principals.

New-AzADSpCredential :** A parameter cannot be found that matches parameter name 'Password'.**
At line:1 char:68

  • ... ntial -ObjectId $sp -StartDate $start -EndDate $end -Password $Secure ...
  • ~~~~~~~~~
    • CategoryInfo : InvalidArgument: (:) [New-AzADSpCredential], ParameterBindingException
    • FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Azure.Commands.ActiveDirectory.NewAzureADSpCredentialCommand
Collapse
tidjani profile image
Tidjani Belmansour, Ph.D. Author

hmm...looks so, indeed!