Cloud - DaaS - Need to delete hosting connection

Cloud - DaaS - Need to delete hosting connection

book

Article ID: CTX692603

calendar_today

Updated On:

Description

Unable to delete a hosting connection

Resolution

  •  There are no machine catalogs associated with the hosting connection.
  •  And the hosting connection is in maintenance mode.
  • Tired deleting using PowerShell getting the error where two machine catalogs are associated with the hosting unit.
  •  Followed the below command to delete the machines and provisioning schemes.
  • Install PowerShell SDK for Citrix cloud tenant access on any domain joined machine with an internet connection except the cloud connectors
    Connect to the cloud tenant using remote PowerShell SDK
    asnp citrix*
    get-XDauthentication

    Initially execute the command:
    get-provscheme --> this will give all the prov schemes in the site.
    from the above output, we identified the catalogs which are pointing to the old hosting connection and cluster.

    After identifying, we checked for individual outputs and checked for AcctADaccounts and Identity pool information.
    get-provscheme -provisioningschemename "Name of the Machine catalog"
    get-acctadaccount -identitypoolUID "paste the UID from above output"

    If above command has machines displayed, we need to remove the machines with the below command
    remove-acctadaccount -adaccountSID "paste the SID of the machines if any" -force

    After the machines are removed, remove the identity pool
    Remove-acctidentitypool -identitypoolUID "UID of the respective provscheme"

    Now, remove the provscheme
    remove-provscheme -provisioningschemename "Name of the catalog" -purgedbonly

    At the end, check if the catalog is present and delete the catalog if present.
    remove-brokercatalog -name "Name of the catalog"

    Note: Do the verification and removal of all the above entries for the catalogs which is not letting the hosting to be deleted.
    Then attempt to delete hosting from the DaaS console.

Problem Cause

Two ProvisionScheme which contains no machines that are pointing to the hosting connection which needs to be deleted.

Additional Information

https://developer-docs.citrix.com/en-us/citrix-daas-sdk/MachineCreation/Remove-ProvScheme.html