how to get the subnet id of the AKS agent pool

37821879 85 Reputation points

how to get the virtual network name of AKS cluster, subnet name and subnet id of the AKS agent pool

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.
1,893 questions
{count} votes

1 answer

Sort by: Most helpful
  1. mutaz-msft 2,266 Reputation points Microsoft Employee

    Hi 37821879,

    There are multiple ways, one of them to check the VMSS in the Infrastructure resource group using this command:
    az vmss show -g {Infrastructure-resource-group} -n {VMSS_NAME} --query virtualMachineProfile.networkProfile.networkInterfaceConfigurations[0].ipConfigurations[0]

    0 comments No comments