Azure CLI Snippets
#filetags: :azure:snippets:epubnote:
- Use help and portal UI for help with values like types and resource IDs
# Log in with interactive promptaz login
# Disable the subscription selector feature [1]az config set core.login_experience_v2=offaz login
# Log in using a device code from web browseraz login --use-device-code
# Change subscriptionsaz account set --subscription <subscription>az account set --subscription 34342sdd-353-2428-cc453432ref3
# Show account informationaz account showAzure Kubernetes Service
Section titled “Azure Kubernetes Service”# Set cluster subscription, get cluster credentials and use kubectl commandsaz account set --subscription sub1az aks get-credentials --resource-group rg-1 --name aks-c1 --overwrite-existingkubectl get deployments --all-namespaces=true