You'll want to Expand the property PrepaidUnits, get the value of enabled and do the math "Enabled - Current Usage"
Using Microsoft Graph PowerShell SDK to get remaining license count ?
EnterpriseArchitect
6,366
Reputation points
People,
I wonder what's the command to get the remaining available License with Graph API ?
Get-MgSubscribedSku -All | Where SkuPartNumber -eq 'SPE_E5' | fl
The result only the current usage of the license total, not the remaining available license.
Thanks in advance.
Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Graph
Microsoft Security | Microsoft Graph
An API that connects multiple Microsoft services, enabling data access and automation across platforms
Answer accepted by question author