Last active
September 17, 2018 05:12
-
-
Save claudiajkang/36312a12290a04fa9ca8358d1b2744b5 to your computer and use it in GitHub Desktop.
Azure Gist
- Azure CLI install
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[azure-cli]\nname=Azure CLI\nbaseurl=https://packages.microsoft.com/yumrepos/azure-cli\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/azure-cli.repo'
sudo yum install -y azure-cli
- Azure CLI remove
sudo yum remove -y azure-cli
sudo rm /etc/yum.repos.d/azure-cli.repo
MSFT_KEY=`rpm -qa gpg-pubkey /* --qf "%{version}-%{release} %{summary}\n" | grep Microsoft | awk '{print $1}'`
sudo rpm -e --allmatches gpg-pubkey-$MSFT_KEY
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# az CLI install | |
# https://docs.microsoft.com/ko-kr/azure | |
az login | |
# subscription list | |
az account list | |
# subscription set | |
az account set --subscription <subscription name> | |
az account show | |
# az resource group added. | |
az group create --name <group name> --subscription <subscription name> | |
# az location & group default value setting. | |
az configure --defaults location=<location name> group=<group name> | |
# acs create | |
az acs create --debug --agent-count 1 --verbose --orchestrator-type kubernetes --name <acs name> --agent-vm-size Standard_A1_v2 --master-vm-size Standard_A1_v2 | |
# acs get credentials | |
az acs kubernetes get-credentials --name <myK8SCluster> | |
# acs agent auto scaling | |
az acs scale --resource-group=<myResourceGroup> --name=<myK8SCluster> --new-agent-count <new agent count> | |
# acr create & login | |
az acr create --name <acr name> --sku Basic | |
az acr login --name <acr name> | |
# acr loginServer list | |
az acr list --query "[].{acrLoginServer:loginServer}" --output table | |
` | |
# acr images list | |
az acr repository list --name <acrName> --output table | |
# az group delete | |
az group delete --name <group name> --yes --no-wait |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment