SOLVED

Getting available M365 licenses not showing right number

Copper Contributor

I need to collect available M365 licenses from my tenant, but Get-MgSubscribedSku is not returning the right number. It seems it is returning only data from commercial direct licenses and not any information about licenses purchased through resellers. Also, the commercial direct licenses have expired. I need a total view of all available licenses.

Does anyone know how to do this?

1 Reply
best response confirmed by ak-lespay (Copper Contributor)
Solution
Found out that property PrepaidUnits.Enabled show reseller licenses. PrepaidUnits.Warning shows the remaining licenses.