Try it yourself
AZ-104 Practice Labs
A safe, simulated Azure portal and Cloud Shell in your browser. Create users and assign roles, apply policies, secure storage, deploy Bicep, build VMs, scale sets and web apps, wire VNets, routes and load balancers, and back it all up.
- ✅ No Azure account
- ✅ No credit card
- ✅ Nothing to install
- ✅ Zero cost, zero risk
Azure Cloud Shell (practice)
learner@Azure:~$ az role assignment create --assignee anna@contoso.com --role "Virtual Machine Contributor" -g rg-web
"roleDefinitionName": "Virtual Machine Contributor"
learner@Azure:~$ az storage account update -n stcontosoprod -g rg-data --default-action Deny
"networkRuleSet": { "defaultAction": "Deny" }
learner@Azure:~$ ▌
Guided labs
Lab 1 · Intermediate · ⏱ 12 min · ⌨️ Cloud Shell
Users, dynamic groups, licenses and guests
Contoso hired Sam for the sales team. Create the account, see why the license won't stick yet, fix the user's properties so a dynamic group picks Sam up on its own, license the whole group in one go, then invite a partner as a guest.
Lab 2 · Intermediate · ⏱ 8 min · ⌨️ Cloud Shell
Roll out self-service password reset to a pilot group
The helpdesk spends Monday mornings resetting passwords. Turn on SSPR for a pilot group, require two methods, and watch a user get stopped until they've registered enough of them.
Lab 3 · Intermediate · ⏱ 14 min · ⌨️ Cloud Shell
Role assignments across management groups, subscriptions and resource groups
Ben needs to read everything in the company and manage one app. Put the subscription under a management group, give Ben Reader high up and Contributor low down, read his effective access, see what Contributor still can't do, and move a resource between resource groups.
Lab 4 · Intermediate · ⏱ 15 min · ⌨️ Cloud Shell
Policy, locks, tag inheritance and a budget
Finance wants every resource tagged with its cost center, nothing outside Europe, production frozen during the audit, and an alert before the month's spend runs away. Build all four guardrails and see each one bite.
Lab 5 · Intermediate · ⏱ 14 min · ⌨️ Cloud Shell
Lock down a storage account: firewall, SAS and keys
Contoso keeps invoices in a storage account that anyone on the internet can reach with the right key. Close the front door, let only the app subnet and the office in, hand auditors a SAS you can revoke on your own terms, then rotate a key the safe way.
Lab 6 · Intermediate · ⏱ 14 min · ⌨️ Cloud Shell
Undo mistakes: soft delete, versioning and share snapshots
Someone at Contoso deletes a contract, someone else overwrites one, and a whole file share disappears on a Friday afternoon. Find out what you can and can't get back, then switch on the protection that makes each mistake a two-minute fix.
Lab 7 · Intermediate · ⏱ 16 min · ⌨️ Cloud Shell
Build an account: encryption, tiers, redundancy and replication
Contoso Media needs a photo account that is locked down on day one, ages old files into cheaper tiers, uses its own encryption key, survives a zone failure and keeps a copy in another region. Build it one decision at a time.
Lab 8 · Intermediate · ⏱ 12 min · ⌨️ Cloud Shell
Azure Files sign-in and moving data with AzCopy
Contoso HR wants staff to open the HR share with their normal sign-in, no shared keys on sticky notes. Then the team needs last year's documents copied up to Blob Storage. Hit each wall you'll meet in real life and get past it.
Lab 9 · Intermediate · ⏱ 12 min · ⌨️ Cloud Shell
Read, edit, deploy and export a Bicep file
Contoso keeps its storage accounts in Bicep. Read the file, change its default SKU, preview the change with what-if, deploy it, see what Complete mode would delete, then export the resource group and turn the JSON back into Bicep.
Lab 10 · Intermediate · ⏱ 12 min · ⌨️ Cloud Shell
Create a VM, resize it, add a disk and encrypt at host
Build Contoso's app server, then do the jobs an admin gets every week: a bigger size, a data disk, encryption at host and a cheaper disk tier. Some of these need the VM deallocated, and the shell will tell you when you forget.
Lab 11 · Intermediate · ⏱ 12 min · ⌨️ Cloud Shell
Move a VM to another resource group and another region
Contoso is reorganising: the reporting VM moves to another resource group, and then a copy has to run in West US 2. You'll see which parts of a VM travel with it, and what Resource Mover checks before it copies anything.
Lab 12 · Intermediate · ⏱ 12 min · ⌨️ Cloud Shell
Availability sets, zones and an autoscaling scale set
Contoso's web tier must survive a rack failure and a datacenter failure, and grow on busy afternoons. Build an availability set, zonal VMs and a Flexible scale set across three zones with CPU autoscale.
Lab 13 · Intermediate · ⏱ 12 min · ⌨️ Cloud Shell
Containers: registry, instances and Container Apps
Contoso wants a private registry for its images, a nightly invoice job that runs once and stops, and an orders API that scales with traffic. Set up all three the way an administrator would, and pick the right size and scaling for each.
Lab 14 · Intermediate · ⏱ 12 min · ⌨️ Cloud Shell
App Service: plans, scaling and deployment slots
Contoso Shop runs on a small Basic plan. Black Friday is coming. Scale it by hand, find out what Basic can't do, then move to Standard for autoscale and a staging slot you can swap into production with no downtime.
Lab 15 · Intermediate · ⏱ 10 min · ⌨️ Cloud Shell
App Service: custom domain, certificate and TLS
The shop should answer on www.contoso-learn.com over HTTPS only. Prove you own the domain with DNS records, add a free managed certificate, bind it, and refuse old TLS versions.
Lab 16 · Intermediate · ⏱ 10 min · ⌨️ Cloud Shell
App Service: backups and networking
The finance portal must be backed up daily, call a database that only lives on a private network, and only accept traffic from the office. Set up backups, outbound VNet integration and inbound access restrictions.
Lab 17 · Intermediate · ⏱ 15 min · ⌨️ Cloud Shell
Build a hub and spoke network
Contoso wants one hub VNet for shared services and two spoke VNets for apps. Build the address plan, give the hub a static public IP and a VPN gateway, peer everything, then find out the hard way that spoke 1 can't talk to spoke 2 until you route it through a firewall in the hub.
Lab 18 · Intermediate · ⏱ 12 min · ⌨️ Cloud Shell
NSGs, ASGs and effective rules
The web tier must take HTTPS from the internet and nothing else. Write the subnet rule against an application security group instead of IP addresses, then watch a second NSG on the NIC quietly block it. Use IP flow verify and effective rules to prove what's happening, and fix it.
Lab 19 · Intermediate · ⏱ 15 min · ⌨️ Cloud Shell
Private access: endpoints, DNS and Bastion
Fabrikam's app VMs must reach a storage account without the public internet, and admins must reach the VMs without public IPs. Compare a service endpoint with a private endpoint, see why a private endpoint without private DNS does nothing, and stand up Azure Bastion (after a subnet that's too small).
Lab 20 · Intermediate · ⏱ 14 min · ⌨️ Cloud Shell
Public load balancer with DNS and a failing backend
Put two web servers behind a Standard public load balancer, give it a friendly name with an Azure DNS alias record, then troubleshoot when one server drops out of rotation because an NSG rule blocks the health probe.
Lab 21 · Intermediate · ⏱ 12 min · ⌨️ Cloud Shell
Metrics, diagnostic settings and KQL
Contoso's storage account is getting odd 403 errors and nobody can say who's calling it. Read the platform metrics you get for free, find out what a diagnostic setting can and can't collect, route the blob logs to a Log Analytics workspace and ask KQL who failed.
Lab 22 · Intermediate · ⏱ 14 min · ⌨️ Cloud Shell
Alerts, action groups, Insights and Connection monitor
The on-call team wants a text when the app VM runs hot, but not at 23:00 on a Saturday when patching reboots everything. Wire an alert to an action group, mute it with a processing rule, turn on VM insights and watch the app-to-SQL path with Connection monitor until someone breaks it.
Lab 23 · Intermediate · ⏱ 14 min · ⌨️ Cloud Shell
Back up and restore a VM with a Recovery Services vault
Contoso's ERP VM has no backup. Build a vault in the right region, give it a nightly policy with 60 days of retention, take the first backup, restore one file and a whole VM, send the vault's logs to a workspace for reports, then see how soft delete saves you when someone deletes the backups.
Lab 24 · Intermediate · ⏱ 14 min · ⌨️ Cloud Shell
Backup vault for blobs and Site Recovery failover
Two jobs for one afternoon. Protect the contracts storage account with a Backup vault (and find out what the vault's identity needs first), then replicate the ERP VM to West US 2, run a disaster recovery drill that doesn't touch production, and do a real failover, commit and re-protect.
Lab 25 · Beginner · ⏱ 6 min · ⌨️ Cloud Shell
The resource group that won’t die
Someone protected rg-legacy long ago and forgot. Find out what is blocking the delete, remove it the right way and finish the clean-up.
Lab 26 · Intermediate · ⏱ 8 min · ⌨️ Cloud Shell
The storage account that says no
The keys work, so this isn’t authentication. Somebody locked the account’s network down. Let the right callers back in without opening it to the whole internet.
Lab 27 · Beginner · ⏱ 5 min · ⌨️ Cloud Shell
The licence that won’t stick
The licence exists and there are seats. Something on Priya’s account is missing. Find it, fix it and assign the licence.
Lab 28 · Intermediate · ⏱ 5 min · ⌨️ Cloud Shell
Slow image pulls in Europe
Geo-replication would fix the latency, but the registry refuses it. Work out why and make the replica happen.
Lab 29 · Intermediate · ⏱ 7 min · ⌨️ Cloud Shell
The website that times out
The VM is healthy, so look at the network path. An NSG with no custom rules only allows traffic from inside the virtual network and from the load balancer probe.
Free sandbox
No tasks, no rules. Create anything, break anything, and explore the portal and Cloud Shell freely. Nothing here costs real money.
Hands-On Labs for every exam section
Pick the AZ-104 section you're studying and practise it straight away.
Domain 1: Identity & Governance
1.1 Manage Microsoft Entra users and groups
1.2 Manage access to Azure resources
1.3 Manage Azure subscriptions and governance
Domain 2: Storage
2.1 Configure access to storage
2.2 Configure and manage storage accounts
2.3 Configure Azure Files and Azure Blob Storage
Domain 3: Compute
3.1 Automate deployment of resources by using Azure Resource Manager (ARM) templates or Bicep files
3.2 Create and configure virtual machines
3.3 Provision and manage containers in the Azure portal
3.4 Create and configure Azure App Service
Domain 4: Networking
4.1 Configure and manage virtual networks in Azure
4.2 Configure secure access to virtual networks
4.3 Configure name resolution and load balancing
Domain 5: Monitor & Backup
5.1 Monitor resources in Azure
5.2 Implement backup and recovery
Ready for the real thing?
The simulator teaches the ideas and the clicks. When you want to try real Azure, Microsoft Learn's free AZ-104 training modules include hands-on exercises. Explore Microsoft Learn.