DevOps Buzz
Search…
Bash / Shell
Bitbucket
Distros
Elasticsearch
General
Guidelines / Standards
microk8s
Prometheus
RabbitMQ
VirtualBox
CLI/Powershell

Install on ubuntu

1
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
Copied!

az account

List accounts

1
az account list
Copied!

List locations

1
az account list-locations
Copied!

Set account

1
az account set --subscription "YOUR SUBSCRIPTION"
Copied!

az network

Get subnet ID

1
az network vnet subnet show -g YOUR-RG -n YOUR-SUBNET --vnet-name YOUR-VNET -otsv
Copied!

az resource

List all resources

1
az resource list
Copied!
1
Get-AzureRmResource
Copied!

az vm

Force stop

1
az vm stop --resource-group YOUR-RG --name YOUR-VM-NAME --skip-shutdown
Copied!

Start

1
az vm start --resource-group YOUR-RG --name YOUR-VM-NAME
Copied!

Get object by ID

1
Get-AzureADObjectByObjectId -ObjectIds a183a290-4fa6-4a8f-b406-033429ec7119
Copied!