question

GarcaMianoChristian-9371 avatar image
0 Votes"
GarcaMianoChristian-9371 asked TrentHelms-MSFT answered

Azure Stack HCI subscription delete

Hi,

I have an azure stack HCI cluster that subscription where it was register is deleted... How can I do? is it possible to unsubscribe the cluster and register again?

Thank's

azure-stack-hci
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

TrentHelms-MSFT avatar image
0 Votes"
TrentHelms-MSFT answered

Hi @GarcaMianoChristian-9371,

First, try to run Unregister-AzStackHCI from one of the cluster nodes. This is the preferred method to unregister the cluster as it cleans up all of the registration information automatically. More information on this process can be found here - https://docs.microsoft.com/en-us/azure-stack/hci/manage/manage-azure-registration#unregister-azure-stack-hci-by-using-powershell

If that command fails, you can use the steps below to get your cluster back to a state where it can be re-registered with a new subscription.

  1. From any node in the cluster, run Remove-AzureStackHCIRegistration. This will remove the registration context of the cluster.

  2. From every node in the cluster, run Remove-AzureStackHCIRegistrationCertificate. This will remove the private keys.

  3. From the Azure portal, go to your AAD tenant and go to the App Registrations. Look for an app which has the same name as the cluster and delete it.

With these steps performed, you should be able to re-register your cluster to a new subscription.

Hope this helps!
Trent

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.