Azure云外壳中缺少New-AzureADPolicy

时间:2019-08-09 09:27:23

标签: azure azure-active-directory azure-powershell azure-cloud-shell

Azure云外壳中遗漏了New-AzureADPolicy

New-AzureADPolicy : The term 'New-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.

如果尝试安装AzureADPreview,也可以

Install-Module -Name AzureADPreview

结果是:

PackageManagement\Install-Package : Unable to load shared library 'api-ms-win-core-sysinfo-l1-1-0.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libapi-ms-win-core-sysinfo-l1-1-0.dll: cannot open shared object file: No such file or directory

是否可以在Web云外壳中以某种方式使用Azure AD?

1 个答案:

答案 0 :(得分:0)

AzureAD模块包含在Azure云外壳中,但是New-AzureADPolicy现在现在仅存在AzureADPreview模块中,我们无法在Azure云中安装此模块贝壳。因此,我们无法在Azure云外壳中运行New-AzureADPolicy

但是我们可以在Azure云外壳中运行大多数AzureAD命令列表here,而无需安装AzureAD模块。