mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-11 01:10:31 +00:00
9 lines
411 B
Plaintext
9 lines
411 B
Plaintext
# Install Azure CLI 2.0 with one curl command.
|
|
curl -L https://aka.ms/InstallAzureCli | bash
|
|
|
|
# create a resource group named "MyResourceGroup" in the westus2 region of Azure
|
|
az group create -n MyResourceGroup -l westus2
|
|
|
|
# create a Linux VM using the UbuntuTLS image, with two attached storage disks of 10 GB and 20 GB
|
|
az vm create -n MyLinuxVM -g MyResourceGroup --image UbuntuLTS --data-disk-sizes-gb 10 20
|