Forum Discussion
How to get the NextLifecycleDate using MG-Graph
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
3 Replies
- LainRobertsonSilver Contributor
This is as close as Graph gets, I believe:
The commandlet associated with this resource type is:
Cheers,
Lain
- Saravanan_ameerCopper ContributorHi Lain,
Thanks for your reply!!!
If I use the Get-MgSubscribedSku - I didnt get the License expiry details like if i use Get-MsolSubscription. Is there any option to get the license expiry details.
Please advise.- LainRobertsonSilver Contributor
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