Before you begin: uninstall the AKS cluster provisioning preview
Applies to: AKS on Azure Stack HCI 22H2, AKS on Windows Server
This step is only required if you installed the AKS cluster provisioning from Azure preview. The preview ended with the release of AKS enabled by Azure Arc on HCI version 23H2. This article describes the steps to uninstall the preview bits before upgrading to AKS Arc.
Step 1: delete all preview AKS clusters and Azure vnets created using Az CLI
az akshybrid delete --resource-group <resource group name> --name <kubernetes cluster name>
az akshybrid vnet delete --resource-group <resource group name> --name <vnet name>
Step 2: delete the custom location
az customlocation delete --name <custom location name> --resource-group <resource group name>
Step 3: delete the cluster extension
az k8s-extension delete --resource-group <resource group name> --cluster-name <arc appliance name> --cluster-type appliances --name <aks extension name>
Step 4: delete the Arc Resource Bridge
az arcappliance delete hci --config-file "<path to working directory>\hci-appliance.yaml"
Step 5: delete the ArcHCI config files
Remove-ArcHciAksConfigFiles -workDirectory <path to working directory>