AAD应用程序客户端机密

时间:2018-08-01 10:10:20

标签: powershell azure azure-active-directory

是否可以通过Powershell或Rest API为应用程序注册生成AAD客户端密码?打算在自动化脚本中使用。

1 个答案:

答案 0 :(得分:3)

您正在寻找 New-AzureRmADAppCredential  cmdlet。

示例:

PS C:\> $SecureStringPassword = ConvertTo-SecureString -String "secret" -AsPlainText -Force
PS C:\> New-AzureRmADAppCredential -ObjectId <YOUR APP ID> -Password $SecureStringPassword