Last active
July 24, 2024 07:05
-
-
Save codingoutloud/bca4ebf1bf28313acce29e3c84934108 to your computer and use it in GitHub Desktop.
Using Azure CLI 2, show all the resources in a resource group
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
#/bin/bash | |
if [ $1 ] | |
then | |
echo "Resources in Azure Resource Group $1" | |
az resource list --query "[?resourceGroup=='$1'].{ name: name, flavor: kind, resourceType: type, region: location }" --output table | |
else | |
echo "usage: $0 [name-of-azure-resource-group]" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install Azure CLI: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli