Use the Get-MgBetaDirectorySubscription cmdlet, or the corresponding endpoint:
GET https://graph.microsoft.com/beta/directory/subscriptions
Both are only available under /beta currently.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
The Get-MsolSubscription cmdlet expires in March 2024. Therefore, we want to migrate to Get-MgSubscribedSKU cmdlet. The problem is that we cannot get license exipiry date with the Get-MgSubscribedSKU. Does anybody know if this is something that will still be added by Microsoft? If so, when? Do you know if we can we still use the old cmdlet until all functionalities will be transferred to the new cmdlet?
Thanks in advance!
Sarah
Use the Get-MgBetaDirectorySubscription cmdlet, or the corresponding endpoint:
GET https://graph.microsoft.com/beta/directory/subscriptions
Both are only available under /beta currently.
Hi Sarah,
This Capability was introduced by Microsoft in Graph-Beta. Look for the nextLifecycleDateTime property
There was a feature requested by someone, which can be accessed here
Using PowerShell:
Get-MgBetaDirectorySubscription
Using Graph API:
Permissions Needed:
Delegated (work or school account) - Organization.Read.All, Directory.Read.All
Delegated (personal Microsoft account) - Not supported.
Application - Organization.Read.All, Directory.Read.All, Organization.ReadWrite.All
Documentation: https://learn.microsoft.com/en-us/graph/api/directory-list-subscriptions?view=graph-rest-beta&tabs=http
Refer to the screenshot below for the sample response
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".