The info is there, you just need to display it:
Get-MgSubscribedSku | select -First 1 -Skip 1 | select -ExpandProperty PrepaidUnits
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
How do I get the number of active licenses use Microsoft Graph's cmd ?
Before, I used 'Get-MsolAccountSku' in PowerShell to get 'ActiveUnits', but now I use'Get-MgSubscribedSku'. After execution, there is no' ActiveUnits'. I am a novice in this field. Although I have
also conducted an investigation, I can't find it, so please help me.
Thanks in advance
The info is there, you just need to display it:
Get-MgSubscribedSku | select -First 1 -Skip 1 | select -ExpandProperty PrepaidUnits
I saw equalant command for Get-MsolSubscription in https://learn.microsoft.com/en-us/powershell/microsoftgraph/azuread-msoline-cmdlet-map?view=graph-powershell-1.0 is Get-MgSubscription
But I am not able to get any details status,DateCreated,TotalLicenses,SkuPartNumber,NextLifecycleDate,OcpSubscriptionId.
Get-MgSubscribedSku | | select {$_.PrepaidUnits.enabled}, ConsumedUnits, skupartnumber
gives you the list you want I think