ASDK - Registration failed - Cloud identifer is already registered

Wayne Evans 0 Reputation points
2023-06-15T15:31:46.4533333+00:00

Hi,

I have deployed an on-premise ASDK (Hardware) - and deployed it in ADFS configuration.

However, I cannot register the ASDK - I get the following error.

CloudIDConflict: Cloud identifier <redacted> is already registered. Reusing cloud identifiers is not allowed.

I am also unable to remove a suspected broken. failed registration using remove-azsregistration due to:

"The Registration resource found does not correlate to the current environment's Cloud-ID.

I welcome your advice - Hoping it isn't a redeploy the ASDK kind of situation.

Kind Regards,
Wayne

Azure Stack Hub
Azure Stack Hub
An extension of Azure for running apps in an on-premises environment and delivering Azure services in a datacenter.
179 questions
{count} votes

1 answer

Sort by: Most helpful
  1. vipullag-MSFT 24,196 Reputation points Microsoft Employee
    2023-06-20T05:48:07.1633333+00:00

    Hello Wayne Evans

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    If you are unable to remove a registration using the Remove-AzsRegistration cmdlet due to the error message "The Registration resource found does not correlate to the current environment's Cloud-ID", it could be because the registration was created using a different cloud identifier than the one currently being used in your environment.

    Try the below steps to see if that helps resolve your issue:

    -Check the cloud identifier being used in your environment by running the following command in Azure PowerShell:

    Get-AzsCloud
    

    This will list the cloud identifier being used in your environment.

    -Check the cloud identifier associated with the registration you are trying to remove by running the following command:

    Get-AzsRegistration -Name <registration-name>
    

    Replace <registration-name> with the name of the registration you are trying to remove.

    -If the cloud identifier associated with the registration is different from the one being used in your environment, you can try removing the registration using the cloud identifier associated with the registration. To do this, run the following command:

    Remove-AzsRegistration -Name <registration-name> -CloudId <cloud-id>
    

    Replace <registration-name> with the name of the registration you are trying to remove, and <cloud-id> with the cloud identifier associated with the registration.

    I hope this helps.

    0 comments No comments