I've tried searching for either a REST Api or powershell cmdlet that will tell me the number of powerbi licences we have.
I know I can view this in the Azure Portal or in the Microsoft 365 Admin centre but I want to be able to programatically get the data.
CodePudding user response:
Rui Romano's PBI Monitor gathers this data and a whole lot more. So you can implement that, or refer to how it gets this data from the Microsoft Graph in Fetch Graph.ps1.