Azure Cloud

//TODO [ ] custom azure container: vim, zsh or startship, auto completion [ ] Azure subscription and tenant IDs? In ~/.azure/credentials

Setup Azure CLI

Using docker azure CLI container: https://docs.microsoft.com/en-us/cli/azure/run-azure-cli-docker

1
2
3
4
5
6
7
docker pull mcr.microsoft.com/azure-cli

docker run -d \
--name azure \
--entrypoint=/bin/bash \
mcr.microsoft.com/azure-cli:latest \
-c "tail -f /dev/null"

Commands

To access a aks cluster:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# similar to company in gcp
# list subscriptions
az account list --output table

# set subscription
# you can see subscription from akz record
az account set -s "SUBSCRIPTION NAME"


# group, similar to project in gcp
# you can see group from akz record
# config default group
az configure --defaults group=<resource group name>


## or direct get zks credential by
az aks get-credentials -n <cluster name> -g <group name> --subscription

The command reference links:

0%