First of all, thank you for the undocumented documentation. I've managed to build out a whole report of license info that we as an MSP can't get automated normally since it's locked to the CSP. However, I've spent the last few afternoons trying to reverse engineer this and I'm not getting any further so here I am. I've stripped out a few of the functions from the module that we need since we have Graph for everything else, but specifically to get license reseller I only needed some billing functions.
So I've made a function that gets the reseller licenses from the "https://admin.microsoft.com/fd/commerceMgmt/assets/crossmotion" endpoint and this works fine using similar logic to how you created the commercial one, and has a SkuID I can use to call it back to a consumed count for that Sku, however the commercial direct license version Get-O365BillingSubscriptions doesn't, even though the expand has it listed and I've matched almost every value from the devtools of loading the license view in my browser. The browser's payload and response shows the exact same info as the script version, all the same license and and billing IDs, just without subscribedSku as a property.
All I need is just a way to tie a Sku to a commercial order, any insight from your side? I know it's been a couple of years since you wrote it, but hopefully there's something I can work with.
First of all, thank you for the undocumented documentation. I've managed to build out a whole report of license info that we as an MSP can't get automated normally since it's locked to the CSP. However, I've spent the last few afternoons trying to reverse engineer this and I'm not getting any further so here I am. I've stripped out a few of the functions from the module that we need since we have Graph for everything else, but specifically to get license reseller I only needed some billing functions.
So I've made a function that gets the reseller licenses from the "https://admin.microsoft.com/fd/commerceMgmt/assets/crossmotion" endpoint and this works fine using similar logic to how you created the commercial one, and has a SkuID I can use to call it back to a consumed count for that Sku, however the commercial direct license version Get-O365BillingSubscriptions doesn't, even though the expand has it listed and I've matched almost every value from the devtools of loading the license view in my browser. The browser's payload and response shows the exact same info as the script version, all the same license and and billing IDs, just without subscribedSku as a property.
All I need is just a way to tie a Sku to a commercial order, any insight from your side? I know it's been a couple of years since you wrote it, but hopefully there's something I can work with.