Skip to main content

Recently Updated Pages

List subscriptions for authenticated account

Azure - Cheatsheet Info Gathering

az account list  

Updated 1 year ago by Ryan

Get tenant id

Azure - Cheatsheet Info Gathering

az account list | jq '.[].tenantId'  

Updated 1 year ago by Ryan

Get subscription id

Azure - Cheatsheet Info Gathering

az cli: az account list | jq '.[].id' Powershell: Get-AzSubscription Resources:Powershell doc...

Updated 1 year ago by Ryan

List tenants

Azure - Cheatsheet Info Gathering

az account tenant list  

Updated 1 year ago by Ryan

List Resource Groups by name

Azure - Cheatsheet Info Gathering

az group list | jq -r '.[].name' Resource: https://docs.microsoft.com/en-us/cli/azure/group?view...

Updated 1 year ago by Ryan

Set Subscription

Azure - Cheatsheet Info Gathering

az cli: az account set -s <name or id> Powershell: Set-AzureSubscription -Id [Subscription ID]...

Updated 1 year ago by Ryan

List all VMs

Azure - Cheatsheet Info Gathering

az vm list Resource: https://docs.microsoft.com/en-us/cli/azure/vm?view=azure-cli-latest

Updated 1 year ago by Ryan

General

Azure - Cheatsheet Blob Storage

List all storage accounts and output in a table format: az storage account list -o table List a...

Updated 1 year ago by Ryan

Get storage keys

Azure - Cheatsheet Blob Storage

If you set the env var: az storage account keys list -n $AZURE_STORAGE_ACCOUNT You can assign o...

Updated 1 year ago by Ryan

List storage containers

Azure - Cheatsheet Blob Storage

az storage container list --account-name $AZURE_STORAGE_ACCOUNT --account-key "$AZURE_STORAGE_KEY...

Updated 1 year ago by Ryan

List storage container contents

Azure - Cheatsheet Blob Storage

az storage blob list --container-name <name of storage container from previous command> --account...

Updated 1 year ago by Ryan

List blob names

Azure - Cheatsheet Blob Storage

az storage blob list --container-name <name of storage container from previous command> --account...

Updated 1 year ago by Ryan

Get available versions of k8s in a region

Azure - Cheatsheet Azure Kubernetes (k8s)

REGION=westus2 # This will vary depending on the region you're using az aks get-versions --locat...

Updated 1 year ago by Ryan

List managed k8s clusters

Azure - Cheatsheet Azure Kubernetes (k8s)

az aks list Resource: https://docs.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest

Updated 1 year ago by Ryan

Get Resource Group Name for clusters

Azure - Cheatsheet Azure Kubernetes (k8s)

AZ_RESOURCE_GROUP_NAME=$(az aks list | jq -r '.[].resourceGroup')  

Updated 1 year ago by Ryan

Get Cluster Name

Azure - Cheatsheet Azure Kubernetes (k8s)

AZ_CLUSTER_NAME=$(az aks list | jq -r '.[].name')  

Updated 1 year ago by Ryan

Configure kubectl

Azure - Cheatsheet Azure Kubernetes (k8s)

This is pretty awesome, good job Microsoft: az aks get-credentials --resource-group $AZ_RESOURCE...

Updated 1 year ago by Ryan

ScoutSuite

Azure - Cheatsheet Security Auditing

https://github.com/nccgroup/ScoutSuite will generate an HTML report outlining various issues that...

Updated 1 year ago by Ryan

PowerZure

Azure - Cheatsheet Security Auditing

git clone git@github.com:hausec/PowerZure.git cd PowerZure pwsh-preview # Authenticate Conn...

Updated 1 year ago by Ryan

Get help for a particular function

Azure - Cheatsheet Security Auditing

For example: get-help Get-AzureTargets

Updated 1 year ago by Ryan