Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A provisioned cluster that you deleted is still visible in the Overview blade on the Azure portal. Selecting the resource shows a Not found message. This error happens because occasionally, the cluster delete command fails to fully remove a resource. While it might delete the child provisionedClusterInstance resource, the parent connectedCluster resource often remains, making it still visible in the portal.
Verify
Get the provisioned cluster instance resource and verify that it doesn't exist:
az aksarc show -g <resource_group> -n <cluster_name>
Get the connected cluster resource and verify that it exists:
az connectedk8s show -g <resource_group> -n <cluster_name>
Workaround
Run the following command:
# Replace the following values appropriately
$subscription = <subscription_id>
$resource_group = <resource_group_name>
$cluster_name = <cluster_name>
az aksarc delete -g <resource_group> -n <cluster_name>
This command deletes the parent connected cluster resource as well.
Validation
Run the az connectedk8s show -g <resource_group> -n <cluster_name>
command to verify that it returns "Not found," or verify that the portal doesn't list the connected cluster resource anymore.