Skip to content

Commit 88275ae

Browse files
authored
updated
1 parent 1031e58 commit 88275ae

1 file changed

Lines changed: 29 additions & 19 deletions

File tree

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Troubleshoot AvailabilityZoneNotSupported Error Code
33
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: 05/26/2025
4+
ms.date: 05/28/2025
55
ms.reviewer: marcha, skuchipudi, v-weizhu
66
ms.service: azure-kubernetes-service
77
ms.custom: sap:Create, Upgrade, Scale and Delete operations (cluster or nodepool)
@@ -17,40 +17,46 @@ Access to [Azure CLI](/cli/azure/get-started-with-azure-cli).
1717

1818
## Symptoms
1919

20-
An AKS cluster creation fails in the requested availability zone and you receive an "AvailabilityZoneNotSupported" error.
21-
22-
Here's an example of the error message:
20+
An AKS cluster creation fails in requested availability zones and you receive an "AvailabilityZoneNotSupported" error with the following message:
2321

2422
> 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'
2523
2624
## Cause
2725

28-
The issue occurs if the requested SKU isn't available in the requested zone or there's restriction on the Azure subscription.
26+
The issue occurs because the requested SKU isn't available in the requested zones or there's a restriction on the Azure subscription.
2927

30-
## Solution
28+
## Solution 1: Ensure SKU availability in the requested zones
3129

32-
To resolve this issue, verify if the requested SKU isn't available in the requested zone by running the following commands:
30+
1. Get SKU details by running one of the following commands:
3331

34-
```azurecli
35-
az vm list-skus -l <location> --size <SKU>
36-
```
32+
- List SKU details for the specific location and size:
3733

38-
```azurecli
39-
az rest --method get \
40-
--url "https://management.azure.com/subscriptions/<subscription>/providers/Microsoft.Compute/skus?%24filter=location+eq+%27<location>%27&api-version=2022-03-01" >> availableSkus.txt
41-
```
34+
```azurecli
35+
az vm list-skus -l <location> --size <SKU>
36+
```
37+
38+
- Retrieve all SKU details for a subscription and location:
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+
```
4244
43-
> [!NOTE]
44-
> Replace `<subscription>` and `<locaiton>` in the URL accordingly.
45+
> [!NOTE]
46+
> Replace `<subscription>`, `<SKU>` and `<locaiton>` in the commands accordingly.
4547
46-
Then, search for the requested SKU information in the command output. If you see the following information, it indicates that your subscription doesn't have access to zones in the requested region.
48+
2. Check the requested SKU information and available zones from the command output.
49+
50+
3. If the requested SKU isn't available in the requested zones, \<what operations should users do?>
51+
52+
If you see the following information in the *availableSkus.txt* file, it indicates that your subscription doesn't have access to zones in the requested region.
4753
4854
```output
4955
"restrictions": [
5056
{
5157
"type": "Zone",
5258
"values": [
53-
"xxxxx"
59+
"<zone>"
5460
],
5561
"restrictionInfo": {
5662
"locations": [
@@ -67,6 +73,10 @@ Then, search for the requested SKU information in the command output. If you see
6773
]
6874
```
6975

70-
In this case, request access to the region or zone from the [Azure portal](https://ms.portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/newsupportrequest) by following instructions in [Azure region access request process](../../general/region-access-request-process.md).
76+
In this case, [request access to the restricted region or zone](#solution-2-request-access-to-the-restricted-region-or-zone).
77+
78+
## Solution 2: Request access to the restricted region or zone
79+
80+
If your subscription doesn't have access to zones in the requested region, request access to the region or zone from the [Azure portal](https://ms.portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/newsupportrequest) by following the [Azure region access request process](../../general/region-access-request-process.md).
7181

7282
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]

0 commit comments

Comments
 (0)