# Azure Vms

> Manage Azure Virtual Machines and scale sets. Configure availability sets and managed disks. Use when deploying compute resources on Azure.

- Skill: `majiayu000/azure-vms` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/azure-vms`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/azure-vms/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- License: MIT
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/azure-vms

---


# Azure Virtual Machines

Deploy and manage Azure VMs and scale sets.

## Create VM

```bash
az vm create \
  --resource-group mygroup \
  --name myvm \
  --image Ubuntu2204 \
  --size Standard_B2s \
  --admin-username azureuser \
  --generate-ssh-keys \
  --nsg-rule SSH
```

## Scale Sets

```bash
az vmss create \
  --resource-group mygroup \
  --name myvmss \
  --image Ubuntu2204 \
  --instance-count 2 \
  --vm-sku Standard_B2s \
  --upgrade-policy-mode automatic
```

## Best Practices

- Use managed disks
- Implement availability zones
- Use scale sets for auto-scaling
- Enable Azure Backup
- Use spot instances for cost savings

