Microsoft Secure Tech Accelerator
Apr 03 2024, 07:00 AM - 11:00 AM (PDT)
Microsoft Tech Community
SOLVED

Azure AD Powershell v2 missing some commands :-(

Iron Contributor

Hi,

 

Not sure if this is the correct community to ask but I seem to be missing certain ps commands in Azure AD v2 (2.0.2.4), more specifically all the commands with AzureADServicePrincipalPolicy (Get, Add).

The others are all there (AzureADServicePrincipal , KeyCredential, Owner, CreatedObject,...).

 

I have tried uninstalling and reinstalling the module but that did not work. 

 

Not sure what else I can do :)

 

2 Replies
best response confirmed by Steve Hernou (Iron Contributor)
Solution

Certain cmdlets, such as the *-Get-AzureADServicePrincipalPolicy ones, are only available as part of the AzureADPreview module: https://www.powershellgallery.com/packages/AzureADPreview/2.0.2.5

Great. Thanks Vasil :)
1 best response

Accepted Solutions
best response confirmed by Steve Hernou (Iron Contributor)
Solution

Certain cmdlets, such as the *-Get-AzureADServicePrincipalPolicy ones, are only available as part of the AzureADPreview module: https://www.powershellgallery.com/packages/AzureADPreview/2.0.2.5

View solution in original post