设置signInAudience和Azure CLI

时间:2018-11-08 14:36:37

标签: azure azure-active-directory azure-cli

我正在使用

使用azure cli创建和注册应用程序
az ad app create ...

功能。

应用注册清单中有一个字段:signInAudience 我想设置为:AzureADandPersonalMicrosoftAccount

通话

az ad app update --id [[APP_ID]] --set signInAudience=AzureADandPersonalMicrosoftAccount

返回

Property 'signInAudience' not found on root. Send it as an additional property .
Updates to converged applications are not allowed in this version.

如何更改它?

2 个答案:

答案 0 :(得分:0)

您可以尝试使用App registrations (Preview) in the Azure Portal更新它。找到您的应用并使用左侧导航导航到“清单”。找到signInAudience属性并将其设置为AzureADandPersonalMicrosoftAccount。然后保存您的更改。

答案 1 :(得分:0)

您可以使用--available-to-other-tenants

更新应用
az ad app update --id xxxx --available-to-other-tenants

这会将signInAudience中的manifest属性设置为AzureADMultipleOrgsAzureADMyOrg

检查az ad app update -h以获得更多帮助,或查看Microsoft Docs