Skip to content

Commit bb003f4

Browse files
committed
Acrolinx
1 parent f958ba9 commit bb003f4

File tree

2 files changed

+3
-104
lines changed

2 files changed

+3
-104
lines changed

AKS-Hybrid/deleted-cluster-visible.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Troubleshoot deleted cluster still visible in portal
3-
description: Learn how to troubleshoot deleted cluster still visible in portal, shows "Not found".
3+
description: Learn how to troubleshoot deleted cluster still visible in portal, shows "Not found."
44
ms.topic: troubleshooting
55
author: sethmanheim
66
ms.author: sethm
@@ -11,11 +11,11 @@ ms.reviewer: sumsmith
1111

1212
# Deleted cluster still visible in portal, shows "Not found"
1313

14-
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 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.
14+
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.
1515

1616
## Verify
1717

18-
- Get the provisioned cluster instance resource and verify that it does not exist:
18+
- Get the provisioned cluster instance resource and verify that it doesn't exist:
1919

2020
```azurecli
2121
az aksarc show -g <resource_group> -n <cluster_name>

AKS-Hybrid/known-issues-workload-clusters.yml

Lines changed: 0 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -398,107 +398,6 @@ sections:
398398
```powershell
399399
crictl pull ecpacr.azurecr.io/kube-proxy:<Kubernetes version>
400400
```
401-
- question: |
402-
When you create an AKS Arc cluster from the Azure portal, no K8s versions or VM sizes are listed
403-
404-
answer: |
405-
The **kubernetesVersions/default** or the **skus/default** Azure Resource Manager resource is not yet created, or was deleted for some reason. This scenario can happen in older releases when AKS didn't create the default resource as a part of the deployment in the **ArcHci** module.
406-
407-
### Workaround
408-
409-
Run the following command:
410-
411-
```azurecli
412-
$cl_id = "/subscriptions/<subscription_id>/resourceGroups/<resource_group_name>/providers/Microsoft.ExtendedLocation/customLocations/<custom_location_name>"
413-
414-
# Get the kubernetes version or the VM sizes using CLI (it automatically creates the **kubernetesVersions/default** or the **skus/default** azure resource).
415-
416-
az aksarc get-versions --custom-location $cl_id
417-
az aksarc vmsize list --custom-location $cl_id
418-
```
419-
420-
### Validation
421-
422-
Verify that the portal displays the correct list of supported K8s versions and VM sizes. See [this list of supported K8s versions](aks-whats-new-23h2.md#release-2408) for each Azure Stack HCI release.
423-
- question: |
424-
Deleted cluster still visible in portal, shows "Not found"
425-
426-
answer: |
427-
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 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.
428-
429-
### Verify
430-
431-
- Get the provisioned cluster instance resource and verify that it does not exist:
432-
433-
```azurecli
434-
az aksarc show -g <resource_group> -n <cluster_name>
435-
```
436-
437-
- Get the connected cluster resource and verify that it exists:
438-
439-
```azurecli
440-
az connectedk8s show -g <resource_group> -n <cluster_name>
441-
```
442-
443-
### Workaround
444-
445-
Run the following command:
446-
447-
```azurecli
448-
# Replace the following values appropriately
449-
450-
$subscription = <subscription_id>
451-
$resource_group = <resource_group_name>
452-
$cluster_name = <cluster_name>
453-
454-
az aksarc delete -g <resource_group> -n <cluster_name>
455-
```
456-
457-
This command deletes the parent connected cluster resource as well.
458-
459-
### Validation
460-
461-
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.
462-
463-
- question: |
464-
Admission webhook 'vhybridakscluster.kb.io' denied the request: Kubernetes version x.x.x is not available
465-
466-
answer: |
467-
When you create an AKS Arc cluster from the Azure portal or using CLI, the following error is returned:
468-
469-
```output
470-
{
471-
"code": "BadRequest",
472-
"message": "admission webhook \'vhybridakscluster.kb.io\' denied the request: Kubernetes version x.x.x is not available"
473-
}
474-
```
475-
476-
### Workaround
477-
478-
Run the following command:
479-
480-
```azurecli
481-
$subscription = <subscription_id>
482-
$cl_id = <custom_location_id>
483-
484-
az login --use-device-code
485-
az account set -s $subscription
486-
$token = $(az account get-access-token --query accessToken)
487-
$url = "https://management.azure.com${cl_id}/providers/Microsoft.HybridContainerService/kubernetesVersions/default?api-version=2024-01-01"
488-
489-
# Get the Kubernetes version Azure resource
490-
az rest --headers "Authorization=Bearer $token" "Content-Type=application/json;charset=utf-8" --uri $url --method GET
491-
492-
# Delete the Kubernetes version Azure resource
493-
az rest --headers "Authorization=Bearer $token" "Content-Type=application/json;charset=utf-8" --uri $url --method DELETE
494-
495-
# Get the Kubernetes version using CLI (it automatically creates the Kubernetes version Azure resource)
496-
az aksarc get-versions --custom-location $cl_id
497-
```
498-
499-
### Validation
500-
501-
Verify that the `az aksarc get-versions --custom-location <custom_location_id>` command, or the portal, returns the corrected list of supported K8s versions, and that the error "admission webhook \'vhybridakscluster.kb.io\' denied the request: Kubernetes version x.x.x is not available" does not recur when you recreate the cluster with the correct K8s version.
502401
503402
additionalContent: |
504403
## Next steps

0 commit comments

Comments
 (0)