Last active
February 20, 2024 08:38
-
-
Save hermannolafs/afd4c3d9a3e0327c495d1c55b22a7cb1 to your computer and use it in GitHub Desktop.
Random JMEs path bullshit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
owner="meow" | |
# Search for VMs by tag and output ID in a list | |
az vm list --query "[?tags.owner=='${owner}'].id" --output tsv | |
# Get children of mgmt group | |
az account management-group show --name "internal" --expand --query "children[].name" | |
az aks list --subscription opaopaopa --query "[].{Cluster:name, Power:powerState.code, Status:provisioningState}" --output table |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment