Azure 云外壳中缺少新的 AzureADPolicy

Max*_*tko 5 azure azure-powershell azure-active-directory azure-cloud-shell

Azure 云外壳中缺少新的 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.
Run Code Online (Sandbox Code Playgroud)

另外如果尝试安装 AzureADPreview

Install-Module -Name AzureADPreview
Run Code Online (Sandbox Code Playgroud)

结果是:

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
Run Code Online (Sandbox Code Playgroud)

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

Ton*_* Ju 2

AzureADModule 包含在 Azure cloud shell 中,但现在仅存在于New-AzureADPolicyModule中,我们无法在 Azure cloud shell 中安装此 Module。所以我们无法在Azure云shell中运行。AzureADPreviewNew-AzureADPolicy

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