Microsoft 365 administrators often need to check which licenses (SKUs) are available in their tenant. The Get-MgSubscribedSKU cmdlet helps you fetch all the subscribed licenses, their friendly names, SKUIDs, service plans, and usage status.
This article explains the cmdlet syntax, usage examples, tips, common use cases, and how to resolve possible errors.
Get-MgSubscribedSku [<CommonParameters>]
Get-MgSubscribedSku
This will return all the subscribed licenses in the tenant, including SKUIDs, Enabled/Consumed units, and service plans.
Get-MgSubscribedSku | Format-List
This helps display the values in a formatted manner. Some of the values that get displayed are:
Get-MgUserLicenseDetail -UserId "alexwilliams@yourtenant.onmicrosoft.com" | Select-Object SkuId, SkuPartNumber
This maps the licenses assigned to a specific user and helps match them with tenant-wide SKUs retrieved using Get-MgSubscribedSku.
You can enhance this script to meet additional audit needs:
Get-MgSubscribedSku | Select-Object SkuId, SkuPartNumber, ConsumedUnits | Export-Csv "TenantLicenses.csv" -NoTypeInformation
Error | Cause | Solution |
Get-MgSubscribedSku : Access Denied | Insufficient permissions | Ensure you're signed in with an account that has at least Report Reader or License Administrator role. |
Get-MgUserLicenseDetail : Resource not found | Invalid or misspelled UserPrincipalName | Double-check the UPN you're passing to the -UserId parameter. |
SkuId is GUID format | Hard to read manually | Use SkuPartNumber to identify the license name (e.g., ENTERPRISEPACK, BUSINESS_PREMIUM). Refer to Microsoft SKU reference list. |
ServicePlans
to Verify Feature AvailabilityServicePlans
property that outlines the individual services (like Exchange, Teams, SharePoint) bundled with the license. This is especially useful for confirming if features like Power BI or Intune are included in a plan.
ConsumedUnits
vs PrepaidUnits
ConsumedUnits
property shows how many licenses have been assigned, while PrepaidUnits.Enabled
shows how many are available. Comparing the two helps in identifying license shortage or over-purchasing scenarios.
The Get-MgSubscribedSku cmdlet is an essential tool for any Microsoft 365 admin managing licenses and subscriptions. It provides a clear snapshot of what licenses your organization owns, how they're being used, and which service plans are bundled with each license.
Pair it with Get-MgUserLicenseDetail to gain deeper insights into license assignments and optimize your Microsoft 365 resource allocation.
Start exploring your subscription data today and stay ahead of your license management needs!
© m365corner.com. All Rights Reserved. Design by HTML Codex