Closed jpummill closed 12 months ago
:tada: Thanks for opening this pull request! We really appreciate contributors like you! :raised_hands:
LGTM
:tada: Congrats on getting your first pull request merged! We here at Palo Alto Networks are so grateful! :heart:
Added initial code to count AKS nodes
Description
As part of the main program loop which iterates through Azure account id's, added a new "try" block to retrieve AKS clusters using "az aks list".
Report the number of nodes for each cluster found and then add the nodes to an account total variable (az_account_aks_node_count) and print the result.
After processing each account, add the number of nodes per account (az_account_aks_node_count) to a global total (global_az_aks_node_count) and print it.
Motivation and Context
In order to count VM's for VM based pricing models it is necessary to include AKS (Kubernetes) nodes to existing Azure Virtual Machine counts.
How Has This Been Tested?
Screenshots (if appropriate)
Types of changes
Checklist