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?
答案 0 :(得分:0)
AzureAD
模块包含在Azure云外壳中,但是New-AzureADPolicy
现在现在仅存在在AzureADPreview
模块中,我们无法在Azure云中安装此模块贝壳。因此,我们无法在Azure云外壳中运行New-AzureADPolicy
。
但是我们可以在Azure云外壳中运行大多数AzureAD命令列表here,而无需安装AzureAD模块。