是否可以通过Powershell或Rest API为应用程序注册生成AAD客户端密码?打算在自动化脚本中使用。
答案 0 :(得分:3)
您正在寻找
New-AzureRmADAppCredential
cmdlet。
示例:
PS C:\> $SecureStringPassword = ConvertTo-SecureString -String "secret" -AsPlainText -Force
PS C:\> New-AzureRmADAppCredential -ObjectId <YOUR APP ID> -Password $SecureStringPassword