6

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?

4

1 回答 1

2

AzureAD模块包含在 Azure 云外壳中,但New-AzureADPolicy现在只存在AzureADPreview模块中,我们无法在 Azure 云外壳中安装此模块。所以我们不能New-AzureADPolicy在 Azure 云 shell 中运行。

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

于 2019-08-28T09:05:56.547 回答