You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AKS-Hybrid/deleted-cluster-visible.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
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."
4
4
ms.topic: troubleshooting
5
5
author: sethmanheim
6
6
ms.author: sethm
@@ -11,11 +11,11 @@ ms.reviewer: sumsmith
11
11
12
12
# Deleted cluster still visible in portal, shows "Not found"
13
13
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.
15
15
16
16
## Verify
17
17
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:
19
19
20
20
```azurecli
21
21
az aksarc show -g <resource_group> -n <cluster_name>
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.
# 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"
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.
0 commit comments