AKS on VMware - aksarc unable to find vnet when creating cluster

Nash A 0 Reputation points
2024-07-12T11:39:41.4533333+00:00

When trying to create k8s cluster, aksarc is unable to find the vnet.

+++++++++++++++++++++++++++++++++

az aksarc create -n 'k8svmware_rb03_cluster01' -g $resource_group --kubernetes-version "1.26.6" --custom-location $custom_location --aad-admin-group-object-ids $aad_group_id --vnet-ids $vnet_id --control-plane-ip '155.125.174.152' --generate-ssh-keys

SSH key files '/root/.ssh/id_rsa' and '/root/.ssh/id_rsa.pub' have been generated under ~/.ssh to allow SSH access to the VM. If using machines without permanent storage like Azure Cloud Shell without an attached file share, back up your keys to a safe location

Provisioning the AKSArc cluster. This operation might take a while...

2024-07-12 10:55:12.178440 Error: InvalidResourceReference

Detail: Error: Virtual Network resource /subscriptions/ed6d71e6-0262-49ad-b8ff-074000058889/resourceGroups/AZ-RG-ARC-K8S-TEST/providers/Microsoft.HybridContainerService/virtualNetworks/k8svmware_vnet03 was not found. Please make sure that the referenced resource in VnetSubnetId exists. Error: AKSNetwork.infrastructure.aks.microsoft.com "k8svmware_vnet03" not found CorrelationId: bdcb0c3f-83da-4a13-99b0-651f7703084f

export resource_group='AZ-RG-ARC-K8S-TEST'

az aksarc vnet show -n 'k8svmware_vnet03' -g $resource_group --query id -o tsv

/subscriptions/ed6d71e6-0262-49ad-b8ff-074000058889/resourceGroups/AZ-RG-ARC-K8S-TEST/providers/Microsoft.HybridContainerService/virtualNetworks/k8svmware_vnet03

Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
390 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,043 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. akinbade abiola 12,820 Reputation points
    2024-07-12T16:12:44.1233333+00:00

    Hello Nash A,

    Thanks for your question.

    The error message says the vnet does not exist. Double-check that the VNET was successfully created. You can use:

    az network vnet show -n k8svmware_vnet03 -g AZ-RG-ARC-K8S-TEST
    
    az aksarc vnet list --resource-group "RG" #arc
    
    

    If it doesnt exist please create it

    **
    You can mark it 'Accept Answer' and 'Upvote' if this helped you**

    Regards,

    Abiola

    0 comments No comments