Hi @García Miñano, Christian ,
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://learn.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.
- From any node in the cluster, run Remove-AzureStackHCIRegistration. This will remove the registration context of the cluster.
- From every node in the cluster, run Remove-AzureStackHCIRegistrationCertificate. This will remove the private keys.
- 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