GetVnetError while creating a new AKS node pool

Wout Ceulemans 0 Reputation points
2023-04-11T17:26:50.9933333+00:00

Command that is used:

`az aks nodepool add -g Quivr_Cluster_group --cluster-name QCluster -n main --node-count 1 --node-vm-size Standard_E4as_v5 --max-pods 200 --mode System --zones 1 --enable-node-public-ip --vnet-subnet-id /subscriptions/

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
{count} votes

1 answer

Sort by: Most helpful
  1. vipullag-MSFT 26,522 Reputation points Moderator
    2023-04-12T04:21:52.9133333+00:00

    Hello Wout Ceulemans

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    Based on the information provided, it seems that you encountered a "GetVnetError" while creating a new AKS node pool. The GetVnetError error message typically occurs when there is an issue with the VNet configuration. Some possible reasons for this error include:

    1. The VNet does not exist or is not accessible to your AKS cluster.
    2. The VNet is in a different region or subscription than your AKS cluster.
    3. The VNet is not configured with the necessary subnets to support AKS.

    To troubleshoot this issue, you can try the following steps:

    1. Verify that the VNet and subnet specified in the --vnet-subnet-id parameter exist and are accessible to your AKS cluster.
    2. Check that the VNet and subnet are in the same region and subscription as your AKS cluster.
    3. Ensure that the VNet is configured with the necessary subnets for AKS. Specifically, you will need at least one subnet for the AKS cluster and one subnet for the node pool.
    4. Ensure that you have the required permissions to access and modify the VNet and its associated resources. This includes permissions to create and manage subnets, virtual network gateways, and network security groups.

    If you continue to experience issues, you may want to try creating a new VNet with the necessary subnets for AKS and then specify that VNet in the --vnet-subnet-id parameter.

    Hope this helps.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.