簡體   English   中英

Azure 編輯服務主體的必需聲明

[英]Azure edit a required claim for service principal

我如何在 azure 中為我的企業應用程序(服務主體)編輯 PowerShell 所需的聲明? 官方文檔中的嘗試代碼: https://learn.microsoft.com/de-de/azure/active-directory/develop/active-directory-claims-mapping

如果我執行代碼 Get-AzureADPolicy,則會出現此錯誤。 當然,我安裝了模塊 AzureADPreview 並連接到 AzureAD。

Get-AzureADPolicy : The term 'Get-AzureADPolicy' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ Get-AzureADPolicy
+ ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-AzureADPolicy:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

我想通過 PowerShell 編輯的聲明: 在此處輸入圖像描述

• 您一定可以連接到 Azure AD 並執行所需的 powershell 命令來更新服務主體的聲明,如下面的屏幕截圖所示:-

Powershell執行

但是根據您的解釋,您無法獲得'Get-AzureADPolicy' 的任何 output 。 因此,為此,請連續執行以下命令:-

  ‘Disconnect-AzureAD’
  ‘Install-Module AzureADPreview -AllowClobber’
  ‘Install-Module AzureAD -AllowClobber’

然后重新啟動powershell並再次連接到Azure AD,然后執行'Get-AzureADPolicy' ,您應該能夠獲得所需的output。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM