Recently Updated Pages
List subscriptions for authenticated account
az account list
Get tenant id
az account list | jq '.[].tenantId'
Get subscription id
az cli: az account list | jq '.[].id' Powershell: Get-AzSubscription Resources:Powershell doc...
List tenants
az account tenant list
List Resource Groups by name
az group list | jq -r '.[].name' Resource: https://docs.microsoft.com/en-us/cli/azure/group?view...
Set Subscription
az cli: az account set -s <name or id> Powershell: Set-AzureSubscription -Id [Subscription ID]...
List all VMs
az vm list Resource: https://docs.microsoft.com/en-us/cli/azure/vm?view=azure-cli-latest
General
List all storage accounts and output in a table format: az storage account list -o table List a...
Get storage keys
If you set the env var: az storage account keys list -n $AZURE_STORAGE_ACCOUNT You can assign o...
List storage containers
az storage container list --account-name $AZURE_STORAGE_ACCOUNT --account-key "$AZURE_STORAGE_KEY...
List storage container contents
az storage blob list --container-name <name of storage container from previous command> --account...
List blob names
az storage blob list --container-name <name of storage container from previous command> --account...
Get available versions of k8s in a region
REGION=westus2 # This will vary depending on the region you're using az aks get-versions --locat...
List managed k8s clusters
az aks list Resource: https://docs.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest
Get Resource Group Name for clusters
AZ_RESOURCE_GROUP_NAME=$(az aks list | jq -r '.[].resourceGroup')
Get Cluster Name
AZ_CLUSTER_NAME=$(az aks list | jq -r '.[].name')
Configure kubectl
This is pretty awesome, good job Microsoft: az aks get-credentials --resource-group $AZ_RESOURCE...
ScoutSuite
https://github.com/nccgroup/ScoutSuite will generate an HTML report outlining various issues that...
PowerZure
git clone git@github.com:hausec/PowerZure.git cd PowerZure pwsh-preview # Authenticate Conn...
Get help for a particular function
For example: get-help Get-AzureTargets