![](/img/trans.png)
[英]how to delete storage account Container (blob) using AzureRM cmdlet and i have power shell version is 5.1
[英]How to change supported account types using power shell
我使用以下命令在 AAD 中創建了應用程序
New-AzureRmADApplication -DisplayName "testApp" -HomePage "http://www.microsoft.com" -IdentifierUris "http://NewApplicationTest"
這會在 AAD 中成功創建應用程序。 現在我想更新“支持的帳戶類型”。 我試過下面的代碼。
Update-AzureRmADApplication -ObjectId <ObjectID> -AvailableToOtherTenants $true
我收到一個錯誤
Update-AzureRmADApplication:此版本不允許更新融合應用程序。 在行:1 字符:1
任何人都可以知道錯誤在哪里。 任何幫助都可以得到。
創建應用注冊后,請嘗試以下命令:
Get-AzureRmADApplication -DisplayName "testApp" | Set-AzureRmADApplication -AvailableToOtherTenants $true
或者您可以簡單地將其提供給一行中的其他租戶:
New-AzureRmADApplication -DisplayName "testApp" -HomePage "http://www.microsoft.com" -IdentifierUris "http://NewApplicationTest" -AvailableToOtherTenants $true
您還應該檢查您使用的是哪個版本的 AzureAD PowerShell 模塊。 AAD V2 引入了聚合帳戶,因此如果您使用 V1 模塊,它可能會嘗試使用 V1 API 會失敗。 你可以得到這樣的版本:
Get-Module -Name AzureAD
如果它顯示版本 1.X,然后像這樣更新它:
Update-Module -Name AzureAD
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.