Forum Discussion
Han Valk
Jul 14, 2017Copper Contributor
Azure AD PowerShell v2 cmdlets not working, e.g. Get-AzureADPolicy
Sorry if I posted this twice, to me it seems that the first post did not succeed. Installed PowerShellGet using the MSI. Installed the Azure AD PowerShell v2 GA module using Install-Module AzureAD....
Benoitt
Nov 18, 2021Copper Contributor
At the moment I have the same issue.
I tried multiple version of AzureADPreview, removing AzureAD module and many other combinations but the command is still not found.
Related issue: https://github.com/Azure/CloudShell/issues/111
- Satish_Babu_DasariFeb 15, 2023Copper Contributor
Benoitt Use below command and it works
Install-Module -Name AzureADPreview -AllowClobber
and run Import-Module Azureadpreview before running policy commands