Skip to content

Instantly share code, notes, and snippets.

@PixelRobots
Created September 15, 2023 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PixelRobots/5b187101a2ef1c0b27e835ef41cd3637 to your computer and use it in GitHub Desktop.
Save PixelRobots/5b187101a2ef1c0b27e835ef41cd3637 to your computer and use it in GitHub Desktop.
Resource Graph- get nodeVersion of AKS clusters
resources
| where type == "microsoft.containerservice/managedclusters"
| mv-expand agentpool=properties.agentPoolProfiles
| extend nodeVersion = tostring(agentpool.nodeImageVersion)
| where nodeVersion startswith "AKSUbuntu"
| extend nodePoolName = tostring(agentpool.name)
| project clusterName = name, tenantId, subscriptionId, nodePoolName, nodeVersion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment