Hi, @SUNOJ KUMAR YELURU
I tried az aks delete and Remove-AzAksCluster.
It shows
(ResourceNotFound) The Resource 'Microsoft.ContainerService/managedClusters/KBCluster' under resource group 'MC_KubernetesCluster_group_KBCluster_westus2' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
But the resource group MC_KubernetesCluster_group_KBCluster_westus2 is already deleted.
In console, KBCluster is in the "KubernetesCluster_group" resource group.
if I run 'az aks list', it will get below list. BUT The resource group MC_KubernetesCluster_group_KBCluster_westus2 is already deleted.
PS /home/zo> az aks list
[
{
"aadProfile": null,
"addonProfiles": {
"azurepolicy": {
"config": null,
"enabled": false,
"identity": null
},
"httpApplicationRouting": {
"config": null,
"enabled": false,
"identity": null
},
"omsAgent": {
"config": {
"logAnalyticsWorkspaceResourceID": "/subscriptions/d49e9266-e558-455c-bbd1-6828545bd573/resourceGroups/DefaultResourceGroup-WUS2/providers/Microsoft.OperationalInsights/workspaces/DefaultWorkspace-d49e9266-e558-455c-bbd1-6828545bd573-WUS2"
},
"enabled": true,
"identity": {
"clientId": "ba59384f-52cd-4739-8ca8-c5f57c65cbfd",
"objectId": "4edc3da1-020b-4fad-8ce4-e9437f0efec2",
"resourceId": "/subscriptions/d49e9266-e558-455c-bbd1-6828545bd573/resourcegroups/MC_KubernetesCluster_group_KBCluster_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/omsagent-kbcluster"
}
}
},
"agentPoolProfiles": null,
"apiServerAccessProfile": {
"authorizedIpRanges": null,
"enablePrivateCluster": false,
"enablePrivateClusterPublicFqdn": null,
"privateDnsZone": null
},
"autoScalerProfile": null,
"autoUpgradeProfile": null,
"azurePortalFqdn": "kbcluster-dns-fb646606.portal.hcp.westus2.azmk8s.io",
"disableLocalAccounts": null,
"diskEncryptionSetId": null,
"dnsPrefix": "KBCluster-dns",
"enablePodSecurityPolicy": null,
"enableRbac": true,
"extendedLocation": null,
"fqdn": "kbcluster-dns-fb646606.hcp.westus2.azmk8s.io",
"fqdnSubdomain": null,
"httpProxyConfig": null,
"id": "/subscriptions/d49e9266-e558-455c-bbd1-6828545bd573/resourcegroups/KubernetesCluster_group/providers/Microsoft.ContainerService/managedClusters/KBCluster",
"identity": {
"principalId": "0ef3e4ca-53eb-4ef2-97f6-b628434b2201",
"tenantId": "5cef9eec-36db-462e-bd56-0919beab92f4",
"type": "SystemAssigned",
"userAssignedIdentities": null
},
"identityProfile": {
"kubeletidentity": {
"clientId": "d73ff296-747d-4bc7-b934-334f65c00ce2",
"objectId": "70dc9d6d-f6f6-4f32-93f8-0bf440a0064e",
"resourceId": "/subscriptions/d49e9266-e558-455c-bbd1-6828545bd573/resourcegroups/MC_KubernetesCluster_group_KBCluster_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/KBCluster-agentpool"
}
},
"kubernetesVersion": "1.20.9",
"linuxProfile": null,
"location": "westus2",
"maxAgentPools": 100,
"name": "KBCluster",
"networkProfile": {
"dnsServiceIp": "10.0.0.10",
"dockerBridgeCidr": "172.17.0.1/16",
"loadBalancerProfile": {
"allocatedOutboundPorts": null,
"effectiveOutboundIPs": [
{
"id": "/subscriptions/d49e9266-e558-455c-bbd1-6828545bd573/resourceGroups/MC_KubernetesCluster_group_KBCluster_westus2/providers/Microsoft.Network/publicIPAddresses/71cd2cfa-ae54-4e81-b908-e2929745f89c",
"resourceGroup": "MC_KubernetesCluster_group_KBCluster_westus2"
}
],
"idleTimeoutInMinutes": null,
"managedOutboundIPs": {
"count": 1
},
"outboundIPs": null,
"outboundIpPrefixes": null
},
"loadBalancerSku": "Standard",
"natGatewayProfile": null,
"networkMode": null,
"networkPlugin": "kubenet",
"networkPolicy": null,
"outboundType": "loadBalancer",
"podCidr": "10.244.0.0/16",
"serviceCidr": "10.0.0.0/16"
},
"nodeResourceGroup": "MC_KubernetesCluster_group_KBCluster_westus2",
"podIdentityProfile": null,
"powerState": {
"code": "Running"
},
"privateFqdn": null,
"privateLinkResources": null,
"provisioningState": "Failed",
"resourceGroup": "KubernetesCluster_group",
"securityProfile": null,
"servicePrincipalProfile": {
"clientId": "msi"
},
"sku": {
"name": "Basic",
"tier": "Free"
},
"type": "Microsoft.ContainerService/ManagedClusters",
"windowsProfile": null
}
]