Skip to content

Commit 9300a1b

Browse files
authored
editorial changes
1 parent 922b1df commit 9300a1b

1 file changed

Lines changed: 27 additions & 22 deletions

File tree

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,51 @@
11
---
2-
title: Troubleshoot AvailabilityZoneNotSupported error code
2+
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/20/2025
5-
editor: sushma kuchipudi
6-
ms.reviewer:
4+
ms.date: 05/26/2025
5+
ms.reviewer: marcha, skuchipudi, v-weizhu
76
ms.service: azure-kubernetes-service
87
ms.custom: sap:Create, Upgrade, Scale and Delete operations (cluster or nodepool)
98
#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.
109
---
11-
12-
# Troubleshoot the "AvailabilityZoneNotSupported" error code
10+
# Troubleshoot the AvailabilityZoneNotSupported error code
1311

1412
This article discusses how to identify and resolve the "AvailabilityZoneNotSupported" error that occurs when you try to create an Azure Kubernetes Service (AKS) cluster.
1513

16-
Here's an example of the error message:
17-
18-
> Preflight validation check for resource(s) for container service xxxx in resource group zzzz failed. Message: The zone(s) '1' for resource 'agentpoolName' is not supported.The supported zones for location 'xyz' are 'A', 'B'
19-
2014
## Prerequisites
21-
Access to [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/get-started-with-azure-cli?view=azure-cli-latest)
15+
16+
Access to [Azure CLI](/cli/azure/get-started-with-azure-cli).
2217

2318
## Symptoms
2419

25-
An AKS cluster create fails in requested availability zones, and you receive a "AvailabilityZoneNotSupported" error message.
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:
23+
24+
> 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'
2625

2726
## Cause
2827

29-
The issue occurs if the requested SKU is not available in the requested zones or there is restriction on the subscription.
28+
The issue occurs if the requested SKU isn't available in the requested zone or there's restriction on the Azure subscription.
3029

3130
## Solution
3231

33-
you can use the following command to verify if sku is not available in requested zones
32+
To resolve this issue, verify if the requested SKU isn't available in the requested zone by running the following commands:
33+
34+
```azurecli
3435
az vm list-skus -l <location> --size <SKU>
36+
```
3537

36-
or
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+
```
3742

38-
`az rest --method get \
39-
--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+
> [!NOTE]
44+
> Replace `<subscription>` and `<locaiton>` in the URL accordingly.
4045

41-
You would need to replace `<subscription>` and `<locaiton>` in the URL. You can then search for the requested sku info in the output. If you see something like this, your subscription doesnt have access to zones in the requested region
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.
4247

43-
```
48+
```output
4449
"restrictions": [
4550
{
4651
"type": "Zone",
@@ -49,7 +54,7 @@ You would need to replace `<subscription>` and `<locaiton>` in the URL. You can
4954
],
5055
"restrictionInfo": {
5156
"locations": [
52-
"xxxxx"
57+
"<location>"
5358
],
5459
"zones": [
5560
"1",
@@ -62,6 +67,6 @@ You would need to replace `<subscription>` and `<locaiton>` in the URL. You can
6267
]
6368
```
6469

65-
To request access to a region or zone, go to the [Azure portal](https://ms.portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/newsupportrequest). Please follow instructions mentioned [here](https://learn.microsoft.com/en-us/troubleshoot/azure/general/region-access-request-process)
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).
6671

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

0 commit comments

Comments
 (0)