Skip to content

Commit e21964f

Browse files
authored
Merge pull request #9290 from MicrosoftDocs/main
Auto push to live 2025-07-08 18:07:46
2 parents 1234e0e + 67f1e24 commit e21964f

File tree

2 files changed

+97
-7
lines changed

2 files changed

+97
-7
lines changed

support/azure/azure-kubernetes/create-upgrade-delete/error-code-cnidownloadtimeoutvmextensionerror.md

Lines changed: 71 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@ editor: v-jsitser
66
ms.reviewer: axelg, chiragpa, mariochaves, v-weizhu, v-leedennis
77
ms.service: azure-kubernetes-service
88
#Customer intent: As an Azure Kubernetes user, I want to troubleshoot the container network interface download failures so that I can successfully create and deploy an Azure Kubernetes Service (AKS) cluster.
9-
ms.custom: sap:Create, Upgrade, Scale and Delete operations (cluster or nodepool)
9+
ms.custom: sap:Create, Upgrade, Scale and Delete operations (cluster or nodepool), innovation-engine
1010
---
11+
1112
# Troubleshoot Container Network Interface download failures
1213

1314
This article discusses how to identify and resolve the `CniDownloadTimeoutVMExtensionError` error code (also known as error code `ERR_CNI_DOWNLOAD_TIMEOUT`, error number 41) or the `WINDOWS_CSE_ERROR_DOWNLOAD_CNI_PACKAGE` error code (error number 35) that occurs when you try to create and deploy a Microsoft Azure Kubernetes Service (AKS) cluster.
1415

1516
## Prerequisites
1617

1718
- The [Curl](https://curl.se/download.html) command-line tool
19+
- Network access from the same environment where AKS nodes will be deployed (same VNet, firewall rules, etc.)
1820

1921
## Symptoms
2022

@@ -46,10 +48,76 @@ Your cluster nodes can't connect to the endpoint that's used to download the Con
4648

4749
Run a Curl command to verify that your nodes can download the binaries:
4850

51+
First, attempt a test download of the Azure CNI package for Linux from the official mirror endpoint.
52+
53+
```bash
54+
curl -I https://acs-mirror.azureedge.net/cni/azure-vnet-cni-linux-amd64-v1.0.25.tgz
55+
```
56+
57+
Results:
58+
59+
<!-- expected_similarity=0.3 -->
60+
61+
```output
62+
HTTP/2 200
63+
content-length: 970752
64+
content-type: application/x-gzip
65+
last-modified: Wed, 22 Jun 2022 00:00:00 GMT
66+
etag: "0x8DA53F1234567"
67+
server: ECAcc (dab/4B9E)
68+
x-cache: HIT
69+
cache-control: public, max-age=86400
70+
accept-ranges: bytes
71+
date: Thu, 05 Jun 2025 00:00:00 GMT
72+
```
73+
74+
This command checks if the endpoint is reachable and returns the HTTP headers. If you see a `200 OK` response, it indicates that the endpoint is accessible.
75+
76+
Next, attempt a download with validation and save the file locally for further troubleshooting. This will help determine if SSL or outbound connectivity is correctly configured.
77+
4978
```bash
50-
curl https://acs-mirror.azureedge.net/cni/azure-vnet-cni-linux-amd64-v1.0.25.tgz
79+
# Create a temporary directory for testing
80+
mkdir -p /tmp/cni-test
81+
82+
# Download the CNI package to the temp directory
83+
curl -L --fail https://acs-mirror.azureedge.net/cni/azure-vnet-cni-linux-amd64-v1.0.25.tgz --output /tmp/cni-test/azure-vnet-cni-linux-amd64-v1.0.25.tgz && echo "Download successful" || echo "Download failed"
84+
```
85+
86+
Results:
87+
88+
<!-- expected_similarity=0.3 -->
5189

52-
curl --fail --ssl https://acs-mirror.azureedge.net/cni/azure-vnet-cni-linux-amd64-v1.0.25.tgz --output /opt/cni/downloads/azure-vnet-cni-linux-amd64-v1.0.25.tgz
90+
```output
91+
% Total % Received % Xferd Average Speed Time Time Time Current
92+
Dload Upload Total Spent Left Speed
93+
100 6495k 100 6495k 0 0 8234k 0 --:--:-- --:--:-- --:--:-- 8230k
94+
Download successful
95+
```
96+
97+
Verify the downloaded file:
98+
99+
```bash
100+
ls -la /tmp/cni-test/
101+
file /tmp/cni-test/azure-vnet-cni-linux-amd64-v1.0.25.tgz
102+
```
103+
104+
Results:
105+
106+
<!-- expected_similarity=0.3 -->
107+
108+
```output
109+
total 6500
110+
drwxr-xr-x 2 user user 4096 Jun 20 10:30 .
111+
drwxrwxrwt 8 root root 4096 Jun 20 10:30 ..
112+
-rw-r--r-- 1 user user 6651392 Jun 20 10:30 azure-vnet-cni-linux-amd64-v1.0.25.tgz
113+
114+
/tmp/cni-test/azure-vnet-cni-linux-amd64-v1.0.25.tgz: gzip compressed data, from Unix, original size modulo 2^32 20070400
115+
```
116+
117+
Clean up the test files:
118+
119+
```bash
120+
rm -rf /tmp/cni-test/
53121
```
54122

55123
If you can't download these files, make sure that traffic is allowed to the downloading endpoint. For more information, see [Azure Global required FQDN/application rules](/azure/aks/outbound-rules-control-egress#azure-global-required-fqdn--application-rules).

support/azure/azure-kubernetes/create-upgrade-delete/error-code-k8sapiserverdnslookupfailvmextensionerror.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ ms.date: 01/24/2024
55
ms.reviewer: rissing, chiragpa, erbookbi, v-leedennis, jovieir
66
ms.service: azure-kubernetes-service
77
#Customer intent: As an Azure Kubernetes user, I want to troubleshoot the K8SAPIServerDNSLookupFailVMExtensionError error code (or error code ERR_K8S_API_SERVER_DNS_LOOKUP_FAIL, error number 52) so that I can successfully start or create and deploy an Azure Kubernetes Service (AKS) cluster.
8-
ms.custom: sap:Create, Upgrade, Scale and Delete operations (cluster or nodepool)
8+
ms.custom: sap:Create, Upgrade, Scale and Delete operations (cluster or nodepool), innovation-engine
99
---
10+
1011
# Troubleshoot the K8SAPIServerDNSLookupFailVMExtensionError error code (52)
1112

1213
This article discusses how to identify and resolve the `K8SAPIServerDNSLookupFailVMExtensionError` error (also known as error code ERR_K8S_API_SERVER_DNS_LOOKUP_FAIL, error number 52) that occurs when you try to start or create and deploy a Microsoft Azure Kubernetes Service (AKS) cluster.
@@ -32,6 +33,7 @@ When you try to start or create an AKS cluster, you receive the following error
3233
> "ExitCode": "52",
3334
>
3435
> "Output": "Fri Oct 15 10:06:00 UTC 2021,aks- nodepool1-36696444-vmss000000\\nConnection to mcr.microsoft.com 443 port [tcp/https]
36+
3537
## Cause
3638

3739
The cluster nodes can't resolve the cluster's fully qualified domain name (FQDN) in Azure DNS. Run the following DNS lookup command on the failed cluster node to find DNS resolutions that are valid.
@@ -51,19 +53,39 @@ On your DNS servers and firewall, make sure that nothing blocks the resolution t
5153

5254
When you use a private cluster that has a custom DNS, a DNS zone is created. The DNS zone must be linked to the virtual network. This occurs after the cluster is created. Creating a private cluster that has a custom DNS fails during creation. However, you can restore the creation process to a "success" state by reconciling the cluster. To do this, run the [az resource update](/cli/azure/resource#az-resource-update) command in Azure CLI, as follows:
5355

56+
Below, set your AKS cluster and resource group names, then run the update command to reconcile the cluster. The environment variables will make your resource names unique and are declared just before use.
57+
5458
```azurecli-interactive
55-
az resource update --resource-group <resource-group-name> \
56-
--name <cluster-name> \
59+
az resource update --resource-group $RESOURCE_GROUP_NAME \
60+
--name $CLUSTER_NAME \
5761
--namespace Microsoft.ContainerService \
5862
--resource-type ManagedClusters
5963
```
6064

65+
Results:
66+
67+
<!-- expected_similarity=0.3 -->
68+
69+
```output
70+
{
71+
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroupxxx/providers/Microsoft.ContainerService/ManagedClusters/myAksClusterxxx",
72+
"location": "eastus",
73+
"name": "myAksClusterxxx",
74+
"properties": {
75+
// ...other properties...
76+
},
77+
"resourceGroup": "myResourceGroupxxx",
78+
"type": "Microsoft.ContainerService/ManagedClusters"
79+
}
80+
```
81+
6182
Also verify that your DNS server is configured correctly for your private cluster, as described earlier.
6283

6384
> [!NOTE]
6485
> Conditional Forwarding doesn't support subdomains.
86+
6587
## More information
6688

6789
- [General troubleshooting of AKS cluster creation issues](troubleshoot-aks-cluster-creation-issues.md)
6890

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

0 commit comments

Comments
 (0)