[英]How to get New-AzureADPolicy to work in azure cloud shell
[英]Get-AzureADPolicy : The term 'Get-AzureADPolicy' is not recognized
使用Connect-AzureAD連接到 Azure AD 后,如果運行命令Get-AzureADPolicy ,PowerShell 將提示消息為“Get-AzureADPolicy : The term 'Get-AzureADPolicy' is not Recognized”
這將工作
Install-Module AzureADPreview
一開始安裝失敗。 然后我安裝了AzureAD
:
Install-Module AzureAD
Get-AzureADPolicy
仍然丟失,所以我嘗試再次安裝AzureADPreview
(不刪除AzureAD
)。
Install-Module AzureADPreview
這一次它在之前失敗的地方繼續進行。 添加-AllowClobber
參數修復了安裝問題。
Install-Module AzureADPreview -AllowClobber
重新啟動 Powershell 和Get-AzureADPolicy
工作。
由於某種原因,安裝模塊后沒有自動導入。 在導入模塊 AzureADPreview 之后它對我有用
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.