Azure cheat sheet

Azure supports enterprise cloud and DevOps deployment workflows.

On this page

Table of contents

Use this page for fast recall. Use Full documentation when you want the complete end-to-end path.

Quick workflow

A simple 5-step flow you can follow when using Azure in real work.

1) Setup

Install/run the tool and confirm version. Create a minimal config.

2) Small change

Do one small action end-to-end to prove the workflow.

3) Validate

Check output, logs, and status. Catch mistakes early.

4) Automate

Convert it into a repeatable script or pipeline step.

5) Productionize

Add safety: secrets, rollback, observability, and docs.

Workflows you will actually reuse

These are practical sequences you can copy into your own checklist or runbook.

Deploy a web app on Azure (simple)

Goal: Ship a containerized app with logs, health, and safe secrets.

- Create a resource group and choose a region.

- Push your image to ACR.

- Deploy using App Service/Container Apps/AKS depending on needs.

- Add monitoring (Azure Monitor) and log collection.

- Lock down access using managed identity and least privilege.

Key Concepts

- Resource groups

- Subscriptions

- Managed services

Learning path (high-level):

- Identity and resource model

- AKS and apps

- CI/CD integration

Quick Start

Login

Command

az login

Select subscription

Command

az account set --subscription <id>

List groups

Command

az group list -o table

Common Commands

Short descriptions and practical intent. Search, filter, copy, and reuse.

Showing 11

Basics
az account show

Show current account context.

Basics
az account list -o table

List subscriptions.

Resource groups
az group list -o table

List resource groups.

Resource groups
az group create -n rg-devops -l eastus

Create resource group.

Compute
az vm list -o table

List virtual machines.

Compute
az vm show -g <rg> -n <vm> -o table

Show VM details.

Kubernetes
az aks list -o table

List AKS clusters.

Kubernetes
az aks get-credentials -g <rg> -n <aks>

Configure kubectl for AKS.

Containers
az acr list -o table

List container registries.

Containers
az acr login -n <acrName>

Login Docker to ACR.

Observability
az monitor activity-log list --max-events 10

View recent activity logs.

Copyable snippets

Small blocks you can drop into your terminal, config, or runbook.

Set subscription and confirm context

bash

az login
az account list -o table
az account set --subscription <id>
az account show -o table

Troubleshooting checklist

When things break, follow this order to stay calm and move fast.

- If commands fail: confirm subscription context and login session.

- If deployments fail: check resource provider registrations and quotas.

- If networking fails: validate NSGs, routing, and DNS settings.

Pitfalls

The common mistakes that slow people down when using Azure.

- Copy-pasting commands without understanding inputs/outputs and side effects.

- Not documenting defaults (ports, paths, credentials) and then getting stuck in prod.

- Skipping logs and metrics when troubleshooting; always collect evidence first.

Mini lab (practice)

Do these tasks in order. You will feel the tool instead of just reading about it.

- Install or run the tool locally (or in Docker) and verify it works with a hello-world action.

- Create a minimal config and run the most common command 3 times (with a small change each time).

- Break something on purpose and document how you debugged it in your Notes.

Interview prompts

Use these to test if you truly understand the basics (and can explain them clearly).

- Explain the tool’s role in a real CI/CD pipeline from commit to production.

- Describe the most common failure you’ve seen with this tool and how you fixed it.

- What would you monitor/alert on for this tool in production?

Official Docs

https://learn.microsoft.com/azure/