Showing posts with label command. Show all posts
Showing posts with label command. Show all posts

Azure Command to get list of resource

 

Azure Command to get a list of resources


Log in with a specific tenant 

az login --tenant [tenant id - GUID]

 

Set Subscription

az account set -s [subscription id - GUID]

az resource list --subscription  [subscription id - GUID]

 

Get Web app list [resourceGroup, name, type, etc.]

az webapp list --query '[].[name]' -o tsv

 

Get Function App List

az functionapp list --query '[].[name]' -o tsv

 

Get SQL Server Database List

az resource list -o table | select-string 'Microsoft.Sql/servers'

 

Get the storage account list

az storage account list --output table
az storage account list --query '[].[name]' -o tsv

 

Get the Service Bus queue/topic list

az servicebus queue list --namespace-name <ServiceBusName> --resource-group <ResourceGruopName> --output table