microsoft-365-docs icon indicating copy to clipboard operation
microsoft-365-docs copied to clipboard

Missing state for subscription: LockedOut

Open TonnyWildeman opened this issue 2 years ago • 4 comments

Hello there,

I was trying to delete a tenant. And 1 of the requirements is that there are no longer "License Based Subscription"s active. In my case this was the only requirement that wasn't met. But I could not find a subscription in any of the portals. So I was stumped. Being a programmer, I resorted to using Powershell. In particular the Get-MgSubscribedSku commandlet.

This commandlet showed me that there was indeed a remaining subscription, but it was in a undocumented state: LockedOut In a locked out state, the subscription can only be deleted by Support. As told by Support.

I would like 2 additions to this document:

  1. add the LockedOut state to the list of possible states a subscription may be in. And a remark that only Support is able to delete a subscription in that state. Any other missing subscription state that may show should also be documented.
  2. add a section to find all subscriptions. Eg. the use of the Powershell command let above. And any and all methods to find subscriptions.

Thanks, Tonny


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

TonnyWildeman avatar Jul 05 '22 09:07 TonnyWildeman

@TonnyWildeman Thank you for your feedback. The cmdlet Get-MgSubscribedSku lists out the capability status of the subscription. The Possible values are: Enabled, Warning, Suspended, Deleted, LockedOut. The capabilityStatus is Enabled if the prepaidUnits property has at least 1 unit that is enabled, and LockedOut if the customer cancelled their subscription.

A customer will view the status expired, disabled, and deleted options when the Subscription expires. In case, you cancel the subscription (which has happened in your tenant) it skips the expired stage and moves to Disabled (90 days) the capability status is set to lockedout. Ideally in this stage, If you want your subscription data to be deleted before the typical Disabled stage is over, you can delete the tenant. If there are issues while deleting the tenant (which happened in your case) there could be an issue with the tenant which is usually handled by support.

You will now see a statement at the beginning of this document that states that you can read through this information before you contact Microsoft 365 Support.

As this document pertains mainly to the data and how to access it when the subscription is either deleted or canceled, I think the information about the cmdlet might not be relevant.

Hope this helps!

Thanks Sri

msbemba avatar Jul 11 '22 07:07 msbemba

@msbemba thanks for the response.

I agree that the section does not pertain to deleting a tenant, directly. But a part of deleting a tenant is deleting a subscription and consequences thereof. And that is what this section is about.

It is possible that a subscription is no longer visible to the admin, but it is still there. So when you want to restore the subscription, you cannot do that via an interface. And this is where the cmdlet comes in. This shows all subscriptions (I assume) in any state. Therefore a discovery section for subscriptions using the cmdlet is good to have documented.

Also it is clear that the possible states of the subscriptions is incomplete. And that it is possible that a subscription is not visible to the admin anymore. Which prevents insight into what might be restoreable.

Tangentially / off topic: I find it good practice to better be overcomplete in documentation than simply complete for the topic at hand. It saved me a lot of support hours by documenting more than required. It usually brings about more understanding of a system as a whole with users.

TonnyWildeman avatar Jul 11 '22 08:07 TonnyWildeman

@msbemba

yogkumgit avatar Jul 13 '22 14:07 yogkumgit

@cmcatee-MSFT Please help us in resolving this issue. Email sent. Thanks

yogkumgit avatar Jul 26 '22 05:07 yogkumgit