← All insightsCheat Sheet

Microsoft Azure cheat sheet: the complete command reference

CodeWizard Engineering · 17 December 2025 · 3 min read · Beginner

This is a complete, hands-on Microsoft Azure cheat sheet: install, configure, operate, automate and secure it - with copy-paste commands grouped by task. Bookmark it for day-to-day work, incidents and interviews alike.

Azure provides compute (VMs, AKS, Functions), storage, networking and managed services, with Entra ID for identity and Bicep/Terraform for IaC - strong in enterprise and hybrid scenarios.

Why you reach for it

  • Deep enterprise identity via Entra ID (Azure AD)
  • AKS plus a mature DevOps toolchain
  • Strong hybrid story with Azure Arc

Installation

bash
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
az login
az account show

Configuration reference

A storage account via Terraform.

hcl
resource "azurerm_storage_account" "assets" {
  name                     = "acmeassets"
  resource_group_name      = azurerm_resource_group.rg.name
  location                 = "westeurope"
  account_tier             = "Standard"
  account_replication_type = "LRS"
  min_tls_version          = "TLS1_2"
}

Core commands you use daily

bash
az group list -o table
az aks get-credentials -g prod -n prod-aks
az webapp up --name acme-web --runtime 'NODE:20-lts'

Login & resources

bash
az login
az account set --subscription 'Prod'
az group list -o table
az vm list -d -o table
az aks get-credentials -g prod -n prod-aks

Storage & deploy

bash
az storage account list -o table
az webapp up --name acme-web --runtime 'NODE:20-lts'
az deployment group create -g prod --template-file main.bicep

Use it in CI/CD

OIDC login from GitHub Actions to Azure.

yaml
- uses: azure/login@v2
  with:
    client-id: ${{ secrets.AZURE_CLIENT_ID }}
    tenant-id: ${{ secrets.AZURE_TENANT_ID }}
    subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

Best-practice checklist

  • Use OIDC federated credentials for CI
  • Apply least-privilege RBAC and Azure Policy
  • Prefer Bicep/Terraform over portal click-ops

Common pitfalls to avoid

  • Client-secret credentials instead of OIDC federation
  • Owner role assignments sprayed across subscriptions
  • Public storage/network without Private Endpoints

Security quick wins

  • Enforce Conditional Access and Private Endpoints
  • Enable Defender for Cloud and audit logs

Works well with

  • Amazon Web Services - The largest public cloud - compute, storage, networking and managed services, best driven by IaC.
  • Google Cloud - A developer-friendly cloud strong in Kubernetes (GKE), data and AI/ML (Vertex AI).
  • Kubernetes - Declarative orchestration for containers at scale - self-healing, rolling updates and service discovery.
A cheat sheet is muscle memory on paper - keep it close until the commands live in your fingers.

Want senior help putting Microsoft Azure to work - or a team bootcamp on it? CodeWizard runs Israel's largest DevOps community and embeds named senior engineers with a transparent hours log. Book a free consult or explore the Academy.

Like where this is going?

Get hands-on help from the engineers who write these posts.

Book a free consult