Set Up Your Azure Free Account Safely
-
Phase 0: Before you start
-
Phase 1: The foundation
-
Phase 2: Day-to-day operations
-
Phase 3: Enterprise architecture
-
Phase 4: Troubleshooting step by step
-
Phase 5: Final project and career
A careful Azure free account setup takes about an hour, and it decides whether your learning month goes calmly or turns stressful. You create the account, protect the sign-in with MFA and set a budget alert, all before you build anything.
Most people skip those last two steps, and then a VM gets left running over a weekend or a password leaks, and nobody notices until the credit has gone.
Here you’ll create the account the safe way, check what kind of subscription you’ve been given and set up a budget that emails you early. You’ll also see what happens when the credit or the 30 days run out, so nothing catches you off guard later in the course.
| Time | You need | Cost | By the end you can |
|---|---|---|---|
| About 60 minutes | A personal email address, a phone, and a debit or credit card for identity checks | Nothing (no resources are created) | Sign in with MFA, read your subscription type and spending limit, and get budget emails before you spend real money |
What it is, in one line
A safe Azure free account needs MFA to sign in, you know your credit and limits, and a budget emails you well before any money is lost.
In Simple Words
A prepaid phone card with a warning beep
Think of the Azure free account as a prepaid phone card your parents give you for a month. It has 200 dollars on it, and some calls stay free for the whole year.
The card has a lock (MFA), so even if someone learns your PIN they can’t use it, and it has a warning beep (the budget alert) that tells you “you have used 80 percent” before it runs out.
When the month is over or the money’s used up, the card stops working. If you want to keep calling you move to a normal monthly plan, and from then on the warning beep matters even more, because it’s real money now.
Engineer's View
What you actually get, and the rules that come with it
- USD 200 credit for 30 days. You can spend it on most services, and whatever’s left after 30 days disappears.
- 12 months of free amounts for popular services. The ones this course uses most: 750 hours a month each of
B2ats v2andB2pts v2VMs (Linux and Windows), two 64 GB Premium SSD (P6) managed disks, 5 GB of hot LRS blob storage, 100 GB of Azure Files and 15 GB of outbound data. - Always-free services, for example Azure Policy and 500 minutes a month of Azure Automation jobs.
- Spending limit: On. The free account can’t charge your card, so when the credit runs out or the 30 days pass, your resources are stopped and the subscription is disabled.
- Upgrading to pay-as-you-go takes the spending limit away. You keep the 12-month free amounts and pay only for usage above them, but Microsoft’s terms say you have to move to pay-as-you-go within 30 days to hold on to those 12-month amounts.
Behind the scenes, signing up creates three things: a Microsoft Entra tenant (normally called “Default Directory”), a subscription (normally “Azure subscription 1”) and a billing account. Inside the subscription the offer appears as FreeTrial_2014-09-01 with spendingLimit: On, and you’ll read those values yourself in the lab.
Two more things catch people out:
- MFA is mandatory. Microsoft has required MFA for the Azure portal since October 2024, and since 1 October 2025 create, update and delete actions from the Azure CLI, PowerShell and other tools need it as well. Normal users can’t opt out.
- Cost data is late. On pay-as-you-go and free accounts, cost data can take up to 72 hours to appear in Cost Management. Treat a budget alert as an early warning and not a brake, because it never stops or deletes anything.
How it works, step by step
This is the order to work in during your first hour, and it matters: protect the sign-in first, then find out what you have, then keep an eye on the money.
The free account changes once, either at the 30-day mark or when the credit is used up, whichever comes first, and what happens next depends on one choice:
- You do nothing. The subscription is disabled, your VMs stop and you can’t create anything new. Your wallet is safe, but your labs are on hold.
- You upgrade to pay-as-you-go. The spending limit is removed. The 12-month free amounts carry on, and anything above them is charged to your card each month.
Most labs in this course are designed to fit inside the free amounts or cost a few cents. The handful that cost more (Azure Firewall, Application Gateway, VPN Gateway, Ultra Disk) say so at the top along with the hourly price, so do those within your first 30 days or after you’ve upgraded with your budget alerts in place.
One rule runs through the whole course: tag and delete. Every lab tags what it creates with course=saatvedha-azure and lesson=NN and finishes with a cleanup step, and if you stick to that, the budget alert should never go off.
Hands-on lab: create and protect your Azure account
Before you run any command, double-check it
Read every command twice before you press Enter. Check the target: the system or account, the IDs, the names and the sizes. These commands are for learning and were tested in our lab, not on your system. At work, run the read-only list commands first, follow your change process, make sure a backup exists, and ask a second person to check anything that changes or deletes data. You run them at your own risk.
You’ll create the account, lock down the sign-in, read what Microsoft has given you and set up a budget. Steps 1 to 3 happen in the browser, and steps 4 to 6 use Cloud Shell, a command line that runs inside the Azure portal, so there’s nothing to install yet.
1Create the Azure free account
- Go to azure.microsoft.com/free and start the sign-up for the Azure free account.
- Sign in with a Microsoft account or create one, using a personal email you’ll keep for years. Avoid your work email, because your company may already have its own Azure tenant and you’d land in the wrong place.
- Verify your phone number and add a debit or credit card. Microsoft only uses the card to confirm who you are, and with the spending limit on, the free account can’t charge it.
- Accept the agreement and wait for the portal to open at
portal.azure.com.

2Turn on MFA for your sign-in
Azure will ask for MFA anyway, but take a minute now to set it up properly with an app instead of SMS.
- Personal Microsoft account (outlook.com, hotmail, or another email you registered with Microsoft): open account.microsoft.com/security, turn on two-step verification, and add the Microsoft Authenticator app.
- Work or school style account (it ends in
.onmicrosoft.com): open mysignins.microsoft.com/security-info and add Microsoft Authenticator.
Then store the recovery code Microsoft gives you somewhere safe and offline, because if you lose your phone, that code is how you get back in.
✅ Checkpoint: Sign out of the portal and sign back in. Microsoft Authenticator asks you for a number match or a code.
3Create a budget that emails you early
- Type Budgets in the portal search bar and open it. Make sure the scope at the top is your subscription (for example “Azure subscription 1”).
- Choose Add. Name:
budget-lab-monthly. Reset period: Monthly. Start date: the first day of this month. Amount: 5 (USD). - On the alerts page, add two conditions: Actual, 80 % and Forecasted, 100 %.
- Under Alert recipients (email), type your email address and check the spelling twice (the “Break It” section shows why).
- Create the budget.

Why only 5 dollars when you’ve got 200? Cost Management shows your usage before credits are taken off, so a 5 dollar budget tells you as soon as the labs start costing more than a few cents, while the credit is still there to protect you.
4Open Cloud Shell in PowerShell mode
Click the Cloud Shell icon (a small >_ in the top bar) and choose PowerShell. When it asks about storage, pick No storage account required and select your subscription.
The full toolkit gets set up in Lesson 3.
Run this:
az account show --query "{name:name, state:state, tenant:tenantDisplayName, user:user.name}" -o tableYou should see something like this:
Name State Tenant User
-------------------- ------- ----------------- ---------------------------
Azure subscription 1 Enabled Default Directory live.com#priya.k@outlook.comEnabled means the subscription is active, and the live.com# part shows you signed in with a personal Microsoft account.
5Read your offer and spending limit
Run this:
$sub = az account show --query id -o tsv
az rest --method get --url "https://management.azure.com/subscriptions/$($sub)?api-version=2022-12-01" --query subscriptionPoliciesYou should see something like this:
{
"locationPlacementId": "Public_2014-09-01",
"quotaId": "FreeTrial_2014-09-01",
"spendingLimit": "On"
}az rest sends a raw request to Azure Resource Manager, the same front door from Lesson 1. FreeTrial_2014-09-01 is the free account offer, and spendingLimit On confirms nobody can charge your card. Once you upgrade to pay-as-you-go you’d see a different quota ID and the spending limit set to Off.
6Check the budget from the command line
Run this:
az consumption budget show --budget-name budget-lab-monthly --query "{amount:amount, period:timeGrain, emails:notifications.*.contactEmails}"You should see something like this:
{
"amount": "5.0",
"emails": [
[
"priya.k@outlook.com"
],
[
"priya.k@outlook.com"
]
],
"period": "Monthly"
}You should see two alert conditions, each with your email. Finally, type Free services in the portal search bar and open that page, which lists every 12-month free service and how much of it you’ve used.
Have a look at it once a week while you’re studying.

✅ Checkpoint: MFA works at sign-in, spendingLimit shows On, and budget-lab-monthly has your correct email on both alert conditions.
Break It, Then Fix It
Here are two mistakes that cost people money or time. The first one gives you a clear error, while the second gives you nothing at all.
1Break it: pick a subscription by a name that isn’t quite right
Run this in Cloud Shell:
az account set --subscription "Azure subscription"You’ll get this error:
ERROR: The subscription of 'Azure subscription' doesn't exist in cloud 'AzureCloud'.The real name is “Azure subscription 1”, and because the CLI matches the full name or ID exactly, a near miss fails. At work you’ll often have lots of subscriptions with similar names, so this one comes up a lot.
To fix it, list what you can see and then use the ID, which never changes:
az account list --query "[].{name:name, id:id, state:state}" -o table
$sub = az account list --query "[?name=='Azure subscription 1'].id" -o tsv
az account set --subscription $sub
az account show --query name -o tsvYou should see something like this:
Name Id State
-------------------- ------------------------------------ -------
Azure subscription 1 6f1c2d3e-4a5b-4c6d-8e9f-0a1b2c3d4e5f Enabled
Azure subscription 1In scripts, always pick the subscription by ID, since anyone with the right role can rename a subscription but nobody can change its ID.
2Break it: a typo in the alert email
Open the budget in the portal, choose Edit and change one alert email to a typo, say priya.k@outlok.com. Save it, then run step 6 again.
You should see something like this:
{
"amount": "5.0",
"emails": [
[
"priya.k@outlok.com"
],
[
"priya.k@outlook.com"
]
],
"period": "Monthly"
}Azure took it without complaint, because it doesn’t check whether the mailbox exists. If that were your only recipient, the 80 % alert would go nowhere and you’d find out about the cost from your card statement.
To fix it, edit the budget, correct the address, save and run step 6 again. Both lists should show the right email.
Make it a habit: whenever you set up an alert, read it back and check where it goes. Later in the course you’ll send alerts to an action group with more than one person in it, so one typo can’t silence them.

✅ Checkpoint: Both alert conditions show your correct email again, and you’ve set the subscription by ID.
This happened at work
The weekend the shop went offline
A small online shop began life on its founder’s Azure free account, “just to try things”. It worked well, so the developers kept adding to it, and three weeks later the live website, its database and a test VM with a GPU were all sitting in that one subscription.
Nobody had set a budget. One Saturday the GPU VM, which someone had forgotten to stop after a test, burned through the last of the 200 dollars, and the spending limit did what it says on the tin: it stopped everything, the live website included.
Orders were failing for most of the weekend, until the founder saw the email, upgraded the account and started the VMs again.
What they changed: production moved to its own pay-as-you-go subscription, away from test. Every subscription got a budget whose alerts go to a shared team mailbox instead of one person’s inbox, and test VMs got auto-shutdown at 7 p.m.
They also removed the founder’s personal account as the only Owner and added two named admins with MFA.
Common mistakes and troubleshooting
| Mistake | What you see | What to do |
|---|---|---|
| Signing up with a work email | You land in the company tenant, or sign-up is blocked | Use a personal Microsoft account for your own lab. |
| No MFA, or SMS only | Sign-in prompts you can’t complete, or a stolen account | Use Microsoft Authenticator and keep the recovery code somewhere offline. |
| Expecting a budget to stop spending | The alert arrives, but resources keep running | Budgets only send email. You have to stop or delete resources yourself (later on you’ll automate this). |
| Waiting for today’s cost to show | Cost analysis looks too low | Cost data can take up to 72 hours, so watch what’s running and not only the bill. |
| Not knowing the 30-day rule | Labs suddenly stop working | Check the days left on the subscription page, and either upgrade or plan the expensive labs inside the 30 days. |
| Using production and lab in one subscription | A lab mistake breaks something real | Keep your learning subscription apart from anything real. |
Interview questions
Click a question to open it. Each one is phrased the way an interviewer would ask it, and underneath you’ll find why they ask it and one way to answer in your own words.
Fresher level
1. Can you explain what you get with the Azure free account?
Why they ask this: They want to hear that you know the limits as well as the credit amount.
How you might answer: A new account gets 200 US dollars of credit for 30 days, plus 12 months of free amounts on popular services, like B2ats v2 VMs and two 64 GB P6 disks, and a few services that are always free.
Because the spending limit is on, the subscription gets disabled once the credit or the 30 days run out, unless you upgrade to pay-as-you-go.
2. Does an Azure budget stop resources when you go over it?
Why they ask this: Lots of people get this wrong, and they want to see you don’t treat a budget as a brake.
How you might answer: No, a budget only sends alerts when the actual or forecasted cost crosses a threshold, and nothing gets stopped or deleted.
If I need something to happen automatically, I hook the budget alert to an action group that runs it, for example a runbook that shuts down the test VMs.
3. Why should MFA be on for an Azure admin account?
Why they ask this: They’re checking your basic security awareness and whether you know MFA is now required.
How you might answer: An admin account can create, change or delete anything, so a stolen password on its own shouldn’t be enough to get in. Microsoft now enforces MFA for the portal, and for create, update and delete actions from the CLI and PowerShell too.
I use an authenticator app rather than SMS and keep a recovery method somewhere safe.
2–5 years experience
4. Your budget alert didn’t fire, but the bill was high. What could have gone wrong?
Why they ask this: They want to see you check things in a set order instead of guessing.
How you might answer: I’d look at the alert recipients first, since a typo there fails silently, and then at the thresholds and the budget’s scope. It could also be timing, because cost data can lag by up to 72 hours, so the spike may not have reached the budget when I checked.
Last, I’d check whether the cost landed in another subscription that the budget didn’t cover.
5. How do you check which subscription a script will run against?
Why they ask this: They want to see safe CLI habits before you change anything.
How you might answer: I run az account show first thing, and in scripts I set the subscription explicitly with az account set --subscription and the ID rather than the name.
Names can be duplicated or changed, while the ID is unique and never changes.
6. How would you set up cost alerts for a team of ten developers sharing one subscription?
Why they ask this: They want to see you think further than one person’s inbox.
How you might answer: I’d put a budget on the subscription and smaller ones on each team’s resource group, alerting at actual 80 percent and forecasted 100 percent. The alerts would go to an action group with a shared mailbox and the team chat, so they don’t get missed when someone’s on leave.
I’d also switch on cost anomaly alerts and set auto-shutdown on the dev VMs.
Senior level
7. A company wants to give each new trainee their own Azure free account for practice. What advice would you give?
Why they ask this: They’re checking that you see the governance and data risks as well as the cost.
How you might answer: It’s fine for learning, but trainees shouldn’t use their work identity, and company data or real systems should never go into those accounts. If the company wants control and visibility, I’d suggest a sandbox subscription under the company’s management groups instead, with budgets, Azure Policy and automatic deletion of old resources.
That way the security team can see what’s in there, and nothing hangs off someone’s personal account.
8. How would you design emergency access for a tenant now that MFA is mandatory everywhere?
Why they ask this: They want to hear that you know break-glass accounts still need strong authentication.
How you might answer: I’d keep two cloud-only emergency accounts with Global Administrator. They’d be left out of the normal Conditional Access policies but protected with passkeys or FIDO2 keys, since mandatory MFA applies to them as well.
The keys would sit in separate safes, every sign-in on those accounts would trigger an alert, and we’d test them a few times a year.
9. Someone says “it’s only a test subscription, we don’t need budgets.” How do you respond?
Why they ask this: They want to see you can explain risk in terms of money and suggest a light process.
How you might answer: I’d tell them test subscriptions are where most surprise costs come from, like forgotten VMs, big disks and public IPs that nobody owns. Setting a budget takes two minutes and costs nothing.
I’d suggest a small budget for each test subscription, auto-shutdown on the VMs and a weekly look at untagged resources.
Quick quiz
Q1. How long can you use the USD 200 credit?
- 7 days
- 30 days
- 90 days
- 12 months
Show answer
B — The credit is for the first 30 days. Unused credit is lost.
Q2. What does the spending limit do on the free account?
- Deletes your data at 50 %
- Stops resources and disables the subscription when credit or time runs out
- Charges your card automatically
- Turns off MFA
Show answer
B — With the spending limit on, Azure can’t charge your card, so it stops instead.
Q3. A budget alert fires at 80 %. What happens to your VMs?
- They stop
- They are deleted
- Nothing; you only get an email
- They are resized
Show answer
C — Budgets only send alerts. They never stop or delete anything.
Q4. Which value in subscriptionPolicies shows it is a free account?
- locationPlacementId
- quotaId FreeTrial_2014-09-01
- state Enabled
- tenantId
Show answer
B — The quota ID names the offer. FreeTrial_2014-09-01 is the free account.
Q5. Why set the subscription by ID in scripts?
- IDs are shorter
- Names can be similar or renamed; the ID is unique and fixed
- The CLI only accepts IDs
- IDs are secret
Show answer
B — Names can be duplicated or changed, which leads to running a script in the wrong place.
Quick recap
You now have an Azure account that’s locked with MFA and watched by a budget, and you know what you’ve got and what happens on day 30.
- Free account: USD 200 for 30 days, 12 months of free amounts and a few always-free services.
- With the spending limit On, Azure stops your resources rather than charging your card.
- MFA is mandatory for the portal and for changes from the CLI and PowerShell.
- Budgets send email but never stop anything, and cost data can be up to 72 hours late.
- Check the alert recipients once you’ve set them, and set subscriptions by ID in scripts.
Next lesson
Lesson 3: Your Azure lab toolkit: Azure CLI, PowerShell, Cloud Shell → You’ll install the Azure CLI and Az PowerShell on your laptop and learn the commands that come up in every lab.
Further reading: Azure free account setup
If you want to go further with Azure free account setup, Microsoft covers the limits and how to avoid charges in Avoid charges with your Azure free account, and budgets in Create and manage budgets. The full plan for this course is on the Azure Cloud Administration course page.
