You can build a useful Azure home lab on a free account at no cost if you stay inside the credit and free-service limits, set a budget alert on day one, turn on auto-shutdown for every virtual machine, and delete lab resources when you finish. The free account gives you 200 USD of credit for 30 days plus a limited quantity of free services for 12 months, and a spending limit that stops you overspending the credit until you choose to upgrade.
Who this is for
This guide is for students, career changers and IT staff who want hands-on Azure practice for certifications or interviews without risking a surprise bill. By the end you will understand what the free account includes, what ends when, how the spending limit behaves, how to configure alerts and shutdowns, and what lab projects fit within the limits. If you are choosing exams, read AWS Cloud Practitioner vs AZ-900 as well.
The figures below are from Microsoft's documentation, checked on 25 October 2026. Offers vary by country and change, so confirm them on the sign-up page.
What the free account includes
| Component | What Microsoft states |
|---|---|
| Credit | 200 USD in your billing currency for the first 30 days |
| 12-month services | A limited quantity of free services for 12 months, such as 750 hours each of B1s, B2pts v2 and B2ats v2 burstable VMs, Azure Database for PostgreSQL and MySQL Flexible Server, and Azure Container Registry |
| Always-free services | Free monthly amounts of a set of services; examples include Cosmos DB (1,000 RU/s with 25 GB), Azure SQL Database (100,000 vCore seconds per month with 32 GB) and Azure Functions (1 million requests) |
| Eligibility | New customers only, one free account per customer, not available in every country; you need a phone number, a non-prepaid credit or debit card and a Microsoft or GitHub account |
| Card check | You are not charged at sign-up; a temporary one-dollar (or equivalent) verification hold may appear and is removed |
Microsoft's guidance on charges has several rules worth memorising:
- The credit expires after 30 days or when it is used up. Your subscription and services are then disabled until you upgrade your account.
- To keep the 12-month free services, switch to pay-as-you-go within 30 days. After you upgrade you keep the free services for 12 months and pay only for usage beyond the free quantities.
- Free monthly amounts do not roll over. If you get 5 GB of file storage per month and use 2 GB, the other 3 GB does not carry over.
- Only certain tiers within a service are free. Using a larger or different tier is charged.
- Free services apply only to the subscription created when you signed up. If you cannot see the free services table on the subscription overview page, the subscription does not get them.
- Marketplace offers cannot use the credit.
Prerequisites
- A Microsoft or GitHub account you control, ideally one tied to a personal email, since a lab does not need an organisational tenant.
- A non-prepaid card and a phone number for verification.
- A clear rule for yourself: this lab is for practice, so nothing in it holds real data.
- A time budget. Cost controls only work if you check them, so put a weekly reminder in your calendar.
Step 1: Understand the spending limit
New free accounts have a spending limit turned on by default, equal to the credit. You cannot change the amount, for example from 200 USD to 500 USD. You can only remove it entirely.
When your usage exhausts the limit, resources you deployed are removed from production and your virtual machines are stopped and de-allocated. Data in storage accounts remains available as read-only. Azure sends email notifications when you reach it. For a free account, you upgrade to pay-as-you-go to remove the spending limit and re-enable the subscription.
Two cautions:
- The spending limit does not block every charge. Some external services published in the Azure Marketplace can't be used with your credits and can incur separate charges. Microsoft lists examples such as Visual Studio licenses, Microsoft Entra ID P1 or P2, support plans and most third-party branded services.
- Deploying third-party images or services such as Azure DevOps Services can exhaust the limit almost immediately and disable the subscription.
Keep the spending limit on while you learn. It is the one control that stops spending on its own.
Step 2: Set a budget alert on day one
Budgets send alerts, not shutdowns. Microsoft states that when a threshold is exceeded, notifications are triggered but resources are not affected and consumption is not stopped.
- In the Azure portal, open Subscriptions and select your free-account subscription.
- Select Budgets in the menu, then Add.
- Confirm the scope, name the budget, and choose a monthly reset period.
- Set the amount. For a lab, pick a small figure so the first alert arrives early.
- On the alerts page, add at least one threshold (percentage of budget) and an email address. You can add up to five thresholds and five email addresses.
- Optionally add a forecasted alert, which warns when the projected cost will exceed the threshold.
- Add
[email protected]to your approved senders so alerts do not go to junk.
Limitations to remember:
- A new subscription can take up to 48 hours before you can use all Cost Management features, so you may need to come back to create the budget.
- Cost and usage data typically arrives within 8 to 24 hours, and budgets are evaluated every 24 hours. Alerts normally follow within about an hour of the evaluation.
- Action groups can be attached to a budget at subscription or resource group scope for push notifications or automation.
Step 3: Check free-service usage
- In the Azure portal, search for Subscriptions.
- Select the subscription created when you signed up.
- Open the free services area and select View all free services to see the Free services for 12 months table.
The table shows the meter, usage against limit for the current month, and a status: Not in use, Unlikely to Exceed, Exceeds on a date, or Exceeded on a date. Usage appears only after you start using resources and lags by one to two days. You can find the date your free services expire under the free services grid tooltip on the same page, and Microsoft sends email when it is time to upgrade.
Step 4: Build cheap, useful labs
Pick projects that teach concepts exam and interview questions use, and that stay inside the free quantities or use little credit.
| Lab | What you learn | Cost notes |
|---|---|---|
| Virtual network with two subnets, one small VM and a network security group | NSG priority, default rules, effective rules | VM compute is the cost; use a size covered by the 12-month free services |
| Two virtual networks with peering | Peering, effective routes showing next hop type Virtual network peering | Peering traffic carries a nominal charge |
| Storage account with a lifecycle rule | Redundancy, tiers, access | Watch the free quantities |
| Azure Functions app | Serverless basics | Free monthly amount includes 1 million requests |
| Role assignments in a resource group | Azure RBAC at different scopes | No resource cost |
The Azure engineer interview guide on networking and identity lists what to test in the first two labs. For architecture ideas, see Azure hub-spoke network with a firewall, but check pricing before deploying firewalls or gateways, because they are not part of the free quantities described above.
One limit from Microsoft's networking documentation affects lab design: outbound port 25 communication is blocked from all resources on Free trial subscriptions, and requests to remove the restriction are not granted. Do not plan a mail-server lab on a free subscription; Microsoft recommends an authenticated SMTP relay service instead.
Step 5: Auto-shutdown for every VM
A VM that runs overnight uses compute you may not have meant to spend.
- Open the VM in the portal.
- Under Operations, select Auto-shutdown.
- Switch it On and set the shutdown time.
- Optionally choose Yes for Send notification before shutdown and add an email address or webhook URL.
- Select Save.
Time zone defaults to Coordinated Universal Time, so change it to match yours. The Azure CLI equivalent is az vm auto-shutdown -g <resource group> -n <vm name> --time 18:00, which is the form Microsoft's article uses. Our Azure cost optimization checklist explains the difference between a stopped and a deallocated VM, which matters for billing.
Step 6: Clean up after every session
- Delete lab resources you will not use again. Microsoft's own guidance for the end of the free period says to use the portal to delete resources for services you do not use, and to cancel the subscription if you do not intend to use any Azure service.
- Group each lab in its own resource group so removal is one action.
- Check Cost analysis for the subscription once a week.
- Before the 30-day credit window closes, decide: upgrade to pay-as-you-go to keep the 12-month free services (and accept pay-as-you-go rates beyond the free quantities), or let the subscription lapse.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Resources vanished and VMs are stopped | Credit used up or 30 days passed, or spending limit reached | Upgrade to pay-as-you-go to re-enable, or let it go |
| Cannot create a budget | Subscription is new | Wait up to 48 hours |
| Free services table is missing | You are looking at a different subscription | Use the subscription created at sign-up |
| Usage shows Not in use | Meter has not reached billing yet | Wait one to two days |
| Unexpected charge | Non-free tier, Marketplace item, or usage beyond free quantity | Check cost by resource and the free services table |
| Cannot send email from a VM | Outbound port 25 is blocked on free trial subscriptions | Use an authenticated SMTP relay service |
Checklist
- You know the credit amount, the 30-day window and the 12-month free-service rules.
- The spending limit is on, and you know that it is not a complete guard against Marketplace charges.
- A budget with an alert at a low threshold exists.
- Every VM has auto-shutdown and a time zone you chose.
- Labs live in their own resource groups and are deleted after use.
- You check free-service usage weekly.
References
- Avoid charges with your Azure free account: https://learn.microsoft.com/en-us/azure/cost-management-billing/manage/avoid-charges-free-account
- Azure spending limit: https://learn.microsoft.com/en-us/azure/cost-management-billing/manage/spending-limit
- Monitor and track Azure free service usage: https://learn.microsoft.com/en-us/azure/cost-management-billing/manage/check-free-service-usage
- Tutorial: Create and manage budgets: https://learn.microsoft.com/en-us/azure/cost-management-billing/costs/tutorial-acm-create-budgets
- Auto-shutdown a VM: https://learn.microsoft.com/en-us/azure/virtual-machines/auto-shutdown-vm
- Azure free account: https://azure.microsoft.com/en-us/pricing/purchase-options/azure-account
- Azure network security groups overview: https://learn.microsoft.com/en-us/azure/virtual-network/network-security-groups-overview
Comments
Questions and tips are welcome. Comments are checked by the EpiFive team before they appear; please do not share passwords, phone numbers or other private details.