New-AzureADPolicy missed in the Azure cloud shell
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.
Also if try to install AzureADPreview
Install-Module -Name AzureADPreview
The result is:
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
Is it possible to work somehow with Azure AD in the web cloud shell?
AzureAD
Module is included in Azure cloud shell, but New-AzureADPolicy
is now only exist in AzureADPreview
Module and we can not install this Module in Azure cloud shell. So we can not run New-AzureADPolicy
in Azure cloud shell.
But we can run most AzureAD command list here in Azure cloud shell, no need to install AzureAD module.