Console

Services free for 12 months

https://portal.azure.com/#blade/Microsoft_Azure_Billing/FreeServicesBlade

https://portal.azure.com/#blade/Microsoft_Azure_Billing/SubscriptionsBlade – click subscription -> “Overview”

storage

https://docs.microsoft.com/en-us/azure/virtual-machines/windows/disks-types

Ultra disk Premium SSD Standard SSD Standard HDD
Max throughput 2,000 MiB/s 900 MiB/s 750 MiB/s 500 MiB/s
Max IOPS 160,000 20,000 6,000 2,000
Premium SSD sizes P1* P2* P3* P4 P6 P10 P15 P20 P30 P40 P50 P60 P70 P80
Disk size in GiB 4 8 16 32 64 128 256 512 1,024 2,048 4,096 8,192 16,384 32,767
IOPS per disk 120 120 120 120 240 500 1,100 2,300 5,000 7,500 7,500 16,000 18,000 20,000

cli

https://shell.azure.com/bash

# Powershell
Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'

# Linux apt
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash

# Linux all
curl -L https://aka.ms/InstallAzureCli | bash

docker run -it -v ${HOME}/.ssh:/root/.ssh mcr.microsoft.com/azure-cli

az login
az resource list

vm

https://docs.microsoft.com/en-us/cli/azure/vm?view=azure-cli-latest

az vm list --output table --show-details
az vm stop/deallocate/start --resource-group linux --name ubuntu-2

deallocate to stop billing & disk update

disk

https://docs.microsoft.com/en-us/cli/azure/disk?view=azure-cli-latest#az-disk-update

Locally-redundant storage (LRS)

az disk list --resource-group linux --output table
az disk update --resource-group linux --name ubuntu-2_OsDisk_1_74250d56f08040e1a48f38b9198148f7 --size-gb 32 # Reducing disk/snapshot size is not supported. create new snapshot/disks.
az disk update --resource-group linux --name ubuntu-2_OsDisk_1_74250d56f08040e1a48f38b9198148f7 --sku Premium_LRS

az disk create --location eastasia --sku Premium_LRS -g linux -n data-1 --size-gb 10

https://docs.microsoft.com/en-us/cli/azure/vm/disk?view=azure-cli-latest#az-vm-disk-attach

az vm disk attach -g linux --vm-name ubuntu-2 --name data-1 # --new

network lb

inbound-nat-rule

https://docs.microsoft.com/en-us/cli/azure/network/lb/inbound-nat-rule?view=azure-cli-latest#az_network_lb_inbound_nat_rule_create