Skip to content

Commit ce23c45

Browse files
authored
Merge pull request #8964 from skuchipudi295/patch-1
AB#5929: Create AvailabilityZoneNotSupported TSG
2 parents 61d7628 + ebf930a commit ce23c45

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
title: Troubleshoot AvailabilityZoneNotSupported Error Code
3+
description: Learn how to troubleshoot the AvailabilityZoneNotSupported error when you try to create an Azure Kubernetes Service cluster in a set of zones.
4+
ms.date: 06/04/2025
5+
ms.reviewer: marcha, skuchipudi, v-weizhu
6+
ms.service: azure-kubernetes-service
7+
ms.custom: sap:Create, Upgrade, Scale and Delete operations (cluster or nodepool)
8+
#Customer intent: As an Azure Kubernetes Services (AKS) user, I want to troubleshoot an Azure Kubernetes Service cluster create that failed because of a AvailabilityZoneNotSupported error code so that I can create the cluster successfully.
9+
---
10+
# Troubleshoot the AvailabilityZoneNotSupported error code
11+
12+
This article discusses how to identify and resolve the "AvailabilityZoneNotSupported" error that occurs when you try to create an Azure Kubernetes Service (AKS) cluster.
13+
14+
## Prerequisites
15+
16+
Access to [Azure CLI](/cli/azure/get-started-with-azure-cli).
17+
18+
## Symptoms
19+
20+
An AKS cluster creation fails in specified availability zones, and you receive an "AvailabilityZoneNotSupported" error with the following message:
21+
22+
> Preflight validation check for resource(s) for container service \<resource-name> in resource group \<resource-group-name> failed. Message: The zone(s) '1' for resource '\<agentpoolName>' is not supported. The supported zones for location '\<location>' are 'A', 'B'
23+
24+
## Cause
25+
26+
The issue occurs because the requested SKU has restrictions in some or all zones of your subscription. To verify the restrictions, go to the [Verify SKU restrictions](#verify-sku-restrictions) section.
27+
28+
## Solution
29+
30+
To resolve this issue, follow the [Azure region access request process](../../general/region-access-request-process.md) to request access to the specified region or zone.
31+
32+
## Verify SKU restrictions
33+
34+
1. List the SKU details by running one of the following commands:
35+
36+
```azurecli
37+
az vm list-skus -l <location> --size <SKU>
38+
```
39+
40+
```azurecli
41+
az rest --method get \
42+
--url "https://management.azure.com/subscriptions/<subscription>/providers/Microsoft.Compute/skus?%24filter=location+eq+%27<location>%27&api-version=2022-03-01" >> availableSkus.txt
43+
```
44+
45+
> [!NOTE]
46+
> Replace `<subscription>`, `<SKU>`, and `<location>` accordingly.
47+
2. Search for the requested SKU from the command output.
48+
3. If you see information like the following, it indicates that the requested SKU has restrictions in some or all zones of your subscription:
49+
50+
```json
51+
"restrictions": [
52+
{
53+
"type": "Zone",
54+
"values": [
55+
"<zone>"
56+
],
57+
"restrictionInfo": {
58+
"locations": [
59+
"<location>"
60+
],
61+
"zones": [
62+
"1",
63+
"2",
64+
"3"
65+
]
66+
},
67+
"reasonCode": "NotAvailableForSubscription"
68+
}
69+
]
70+
```
71+
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]

support/azure/azure-kubernetes/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,8 @@
382382
href: error-codes/vmextensionerror-vhdfilenotfound.md
383383
- name: VMExtensionError_ProvisioningTimeout error
384384
href: error-codes/vmextensionerror-provisioningtimeout.md
385+
- name: AvailabilityZoneNotSupported error
386+
href: error-codes/availabilityzonenotsupported-error.md
385387
- name: AksCapacityHeavyUsage error
386388
href: error-codes/akscapacityheavyusage-error.md
387389
- name: AKSOperationPreempted error

0 commit comments

Comments
 (0)