question

SahebSeikh-5586 avatar image
0 Votes"
SahebSeikh-5586 asked SahebSeikh-5586 commented

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

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-kubernetes-serviceazure-cloud-services
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

srbose-msft avatar image
0 Votes"
srbose-msft answered SahebSeikh-5586 commented

@SahebSeikh-5586 , 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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@srbose-msft , Thanks for your quick response.

0 Votes 0 ·