Hi guy's,
I am trying to build a flow that will show me a summary of the licenses I have in my tenant. More importantly it needs to show me how many licenses i have as well as how many have been used.
What i have done is built an Azure App and then i run a GET using the tenant ID and secret

I then run a parse and a filter (in this case i am looking for how many E3 licenses i have). I then get this in the body

This shows me i have 509 of which 506 are in use. My question is: Is there a better way to do this in Flow or do i need to go down the PowerShell route? I have seen some posts about how they are using this method to get an alert when a particular license has none free. In my case i would like an on demand summary of licenses across my tenant.
If i am to use the above scenario, what would be the best way to extract that data to make it easily useable in variable that i can pop in an email?
Thanks,
David