Hello Rising Flight,
You need to use the new Get-MgSubscribedSku
command in thethe Microsoft Graph PowerShell SDK as AzureAD modules are deprecated. See:
You can mark it 'Accept Answer' and 'Upvote' if this helped you
Regards,
Abiola
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
i have installed the below powershell modules.I am getting error when i execute Get-AzADSubscribedSku command please guide me.
Install-Module -Name Az -AllowClobber -Force
Install-Module -Name "AzureAD"
Import-Module AzureAD
Hello Rising Flight,
You need to use the new Get-MgSubscribedSku
command in thethe Microsoft Graph PowerShell SDK as AzureAD modules are deprecated. See:
You can mark it 'Accept Answer' and 'Upvote' if this helped you
Regards,
Abiola
Hey Rising,
Use this command on powersell
Get-AzureADSubscribedSku
The above answers are all correct, and I will just summarise them here.
Get-MgSubscribedSku is part of the Microsoft Graph PowerShell SDK and is part of the Microsoft.Graph.Identity.DirectoryManagement module. It provides a wider range of capabilities and permissions to access more Microsoft Graph API resources.
Get-AzureADSubscribedSku is part of the AzureAD module. It is primarily used for Azure AD-related operations and has relatively few features.
Microsoft is gradually migrating features to Microsoft Graph, so it is recommended using Get-MgSubscribedSku to ensure future compatibility and support.
I am unable to test with Get-MgSubscribedSku due to permission restrictions, the test results with Get-AzureADSubscribedSku are as follows.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".