List all the resources (VM, LB, public IP) associated with AKS using REST API

Saheb Seikh 21 Reputation points

I have created an Azure AKS which has a node-pool containing 3 nodes. I want to list all the associated resources created along with the AKS, like - node VM, LB, Public IP.
Is there any REST API available to fetch all the resources associated with AKS?

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
652 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.
1,894 questions
0 comments No comments
{count} votes

Accepted answer
  1. SRIJIT-BOSE-MSFT 4,331 Reputation points Microsoft Employee

    @Saheb Seikh , Thank you for your question.

    Currently there is no REST API available with the AKS Resource Provider to list infrastructure resources it creates for an AKS cluster.

    However, a second resource group, known as the node resource group, contains all of the infrastructure resources associated with the cluster. These resources include the Kubernetes node VMs, virtual networking, and storage. By default, AKS will name the node resource group MC_resourcegroupname_clustername_location, but you can also provide your own name. [Reference]

    So you can use the Resources - List By Resource Group REST API on the node resource group. This will list all the infrastructure resources associated with the cluster.


    Hope this helps.

    Please "Accept as Answer" if it helped, so that it can help others in the community looking for help on similar topics.

0 additional answers

Sort by: Most helpful