Lab rules¶
These rules keep the lab cheap and stop accidental high costs. They are enforced automatically: a request that breaks a rule is rejected with a [LAB-...] error code.
Your two resource groups¶
| Group | For | Rules |
|---|---|---|
rg-CLOUD-LAB-GRP-N |
All labs | Everything on this page applies |
rg-CLOUD-LAB-GRP-N-policy |
The Azure Policy lab only (Lab 02) | You may create policy assignments, and free network resources (virtual networks, network security groups, route tables, application security groups). Nothing else. |
The sandbox has no lab guardrail codes, because it can't hold anything that costs money.
Regions¶
| Region | What you can create |
|---|---|
Southeast Asia (southeastasia) |
All allowed services, except VMs |
Southeast Asia 3 (southeastasia3) |
All allowed services, including VMs |
Australia East (australiaeast) |
VMs, scale sets and what they need only: disks, network interfaces, virtual networks, public IPs, NSGs, ASGs, load balancers, Application Gateways |
Malaysia West (malaysiawest) |
Same as Australia East |
Any other region is blocked, including East US, which many online lab instructions use.
Virtual machine sizes¶
A VM is allowed only if its size is on the list for its region.
| Region | Allowed sizes |
|---|---|
| Southeast Asia 3 | Standard_B1s, Standard_B1ms, Standard_B2s, Standard_DS1_v2, Standard_DS2_v2 |
| Australia East | Standard_D2als_v6, Standard_D2as_v6, Standard_D2als_v7, Standard_D2as_v7 |
| Malaysia West | Standard_D2als_v6, Standard_D2s_v4 |
| Southeast Asia | No VMs |
Also for VMs:
- Disks: Standard HDD (
Standard_LRS) or Standard SSD (StandardSSD_LRS), at most 128 GB. No Premium or Ultra disks. - No Azure Spot, no capacity reservations, no dedicated hosts.
- Scale sets: Uniform orchestration only, the same VM sizes, disks and images as VMs, at most 4 instances, and an autoscale maximum of 4.
- Images: Windows Server, Windows client, SQL Server on Windows, Visual Studio, Azure Linux (CBL-Mariner) and Ubuntu (Canonical). No other Marketplace images.
- Extensions: only extensions published by Microsoft.
Other services¶
| Service | Allowed |
|---|---|
| Storage account | StorageV2, redundancy LRS or ZRS, no SFTP |
| Public IP | Standard SKU, Regional tier |
| Load balancer | Standard SKU, Regional tier |
| Application Gateway | Standard V2 (no WAF) |
| VNet peering | Only between VNets in your own resource group |
| DNS | Private DNS zones only (public DNS zones are not available) |
| App Service plan | F1, D1, B1, S1. Deployment slots need S1. At most 4 instances. |
| SQL database | Basic, S0, S1, S2 (DTU model) |
| Container Instances | Max 2 CPU and 4 GB memory per container, no GPU |
| Container Apps | Consumption workload profile only |
| Log Analytics | Pay-as-you-go tier, max 30 days retention, daily cap of 1 GB |
| Recovery Services vault | Standard |
| DDoS protection | Not allowed |
Limits per group¶
Each resource group can hold at most this many of each resource type. If you go over, the newest extra resource is deleted automatically after a few minutes.
| Resource | Limit |
|---|---|
| Virtual machines | 2 (of which at most 1 Windows) |
| Managed disks | 3 |
| Network interfaces | 2 |
| Public IP addresses | 3 |
| Virtual networks | 10 |
| Network security groups | 3 |
| Route tables | 3 |
| Application security groups | 10 |
| Virtual machine scale set | 1 (up to 4 instances) |
| Autoscale setting | 1 |
| Load balancer | 1 |
| Application Gateway | 1 |
| Storage account | 1 |
| App Service plan / Web app | 1 / 1 |
| SQL server / database | 1 / 1 |
| Container instance group | 1 |
| Container Apps environment / app | 1 / 1 |
| Log Analytics workspace | 1 |
| Recovery Services vault | 1 |
| Snapshots | 5 |
| Metric alerts / action groups | 5 / 5 |
| Any other resource type | 1 |
Plan before you build
Many online lab instructions create 3 VMs or several storage accounts. The steps on this site already fit these limits.