Skip to content

Instantly share code, notes, and snippets.

@allieus
Created April 20, 2017 20:06
Show Gist options
  • Save allieus/12f2fbfdc96bc4de95ccb2563561a71b to your computer and use it in GitHub Desktop.
Save allieus/12f2fbfdc96bc4de95ccb2563561a71b to your computer and use it in GitHub Desktop.
Azure CLI 2.0 Cheatsheet
~/.azure/config
[core]
output = table



http://github.com/azure/azure-quickstart-templates

버전 확인
$ cat /etc/issue

리소스 그룹
az group list --output=table

쉘> az account set --subscription ???

쉘> az group list
쉘> az account list-locations
쉘> az group create -n CLIGroup -l "koreacentral"
쉘> az vm image list

쉘> az vm create -n CLIVM -g CLIGroup --image "UbuntuLTS" --size Standard_DS2_v2
Location      MacAddress         PowerState    PrivateIpAddress    PublicIpAddress    ResourceGroup
------------  -----------------  ------------  ------------------  -----------------  ---------------
KoreaCentral  00-22-48-05-13-24  VM running    10.0.0.5            52.231.30.147      CLIGroup

az vm list --query "----"

az vm delete -n MyLinuxVM -g MyResource Group

az group delete -n CLIGroup


보안그룹/규칙 : 방화벽 ???

https://docs.microsoft.com/en-us/cli/azure/install-azure-cli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment