DEV Community


Discussion on: Manage Azure Service principal's credentials expiry

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
tidjani profile image
Tidjani Belmansour, Ph.D. Author

hmm...looks so, indeed!