How to get the NextLifecycleDate using MG-Graph

Occasional Contributor

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

@Saravanan_ameer 

 

This is as close as Graph gets, I believe:

 

 

The commandlet associated with this resource type is:

 

 

Cheers,

Lain

Hi 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.

@Saravanan_ameer 

 

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