Sep 28 2022 02:45 AM
Hi All, I have powershell scripts using the MSOLService connections and getting the license expiry details like
$Subscriptions= Get-MsolSubscription | foreach{
$SubscriptionName=$_.SKUPartNumber
$SubscribedOn=$_.DateCreated
$ExpiryDate=$_.NextLifeCycleDate
$Status=$_.Status
$TotalLicenses=$_.TotalLicenses
$Print=0
But Now We are migrating to MG-GRAPH and I don't find the required details in MG-GRAPH commands (subscribedSku).
Please advise how to get those details in MG-GRAPH
Sep 28 2022 03:19 AM
This is as close as Graph gets, I believe:
The commandlet associated with this resource type is:
Cheers,
Lain
Sep 28 2022 03:27 AM
Sep 28 2022 04:23 AM
I can't see an equivalent resource, no.
Looking at this older post from September 2019, it looks like this is yet another case of something exposed via Azure AD that was never ported across to Microsoft Graph.
Cheers,
Lain