mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
1.5 KiB
1.5 KiB
Azure CLI
TL;DR
# login
az login
# check a user's permissions
az ad user get-member-groups --id user@email.org
# list available subscriptions
az account list --refresh --output table
# set a default subscription
az account set --subscription subscription-uuid
# set a default resource group
az configure --defaults group=resource-group
# get credentials for an aks cluster
az aks get-credentials --resource-group resource-group --name cluster-name --overwrite-existing
# diagnose container registry connectivity issues
# will run a hello-world image locally
az acr check-health --name acr-name
# list helm charts in an acr
az acr helm list -n acr-name -s acr-subscription
# push a helm chart to an acr
az acr helm push -n acr-name chart.tgz --force
# disable connection verification
# for proxies with doubtful certificates
export AZURE_CLI_DISABLE_CONNECTION_VERIFICATION=1