What an Azure Administrator Really Does

An Azure administrator keeps a company’s systems running on Microsoft Azure. You decide who can sign in and what they’re allowed to touch, you build the networks and servers, and you keep the data backed up and the bill in check, so when something breaks, you’re the person people ring first.

This first lesson shows what that job looks like on an ordinary day. You’ll see how every click in Azure passes through the same few pieces, and once you know them, troubleshooting gets a lot quicker.

After that you do a task admins get almost every week: “How much will this VM cost us per month, and is another region cheaper?” You answer it with PowerShell and Microsoft’s public price list, so there’s no need for an Azure account yet (you’ll create one safely in Lesson 2).

TimeYou needCostBy the end you can
About 30 minutesA Windows laptop with PowerShell and internetNothing (public price list, no account)Explain what an Azure admin does day to day and price a VM size in any region

What it is, in one line

An Azure administrator builds, secures, watches and fixes the company’s resources in Azure while keeping the cost sensible.

In Simple Words

The caretaker of a big apartment block

Picture Azure as a huge apartment block that Microsoft owns. Microsoft looks after the building itself, from the walls and lifts to the electricity and water pipes.

Your company rents a few floors, and you’re the caretaker for them. You hand out keys, decide which rooms each person can enter, fix the lights inside your flats and make sure nobody leaves the taps running all night.

When a tenant says “my door won’t open”, you don’t break the door down. You check the key, then the lock, then the visitor list, and that sort of patient checking is most of an Azure admin’s day.

Engineer's View

What the job really covers

Microsoft runs the physical data centres, the hosts and the network, and you run everything you create on top of them. On a normal day that usually covers:

  • Identity: users, groups and app identities in Microsoft Entra ID (the new name for Azure AD), plus MFA and Conditional Access.
  • Access: Azure role-based access control (RBAC). You give a role like Reader, Contributor or Owner to a person or group at a scope, which can be a management group, a subscription, a resource group or a single resource.
  • Networking: virtual networks, subnets, network security groups, NAT Gateway, private DNS, VPN and peering.
  • Compute and storage: virtual machines, managed disks, storage accounts, file shares and blob containers.
  • Operations: patching with Azure Update Manager, monitoring with Azure Monitor and KQL, backups with Azure Backup, and infrastructure as code with Bicep.
  • Cost: budgets, tags, right-sizing, and switching off things nobody uses.

Whether you work in the portal, the Azure CLI, PowerShell or Bicep, every change goes to the same front door: Azure Resource Manager (ARM) at management.azure.com. ARM checks your sign-in token, your RBAC role and any Azure Policy rules before it hands the request to the service that does the work, which is why a portal click and a CLI command behave the same way and fail with the same errors.

ARM writes each change to the subscription’s Activity log, which keeps 90 days by default. When something goes wrong, your first question is usually “who changed this, and when?”, and the Activity log has the answer. The job lines up with the Microsoft exam AZ-104: Azure Administrator, and this course covers it as we go.

How it works, step by step

Here’s roughly what a week looks like for an Azure administrator in a company of a few hundred people. The details change from week to week, but the same kinds of work keep coming back.

Azure administrator: a normal week of access, builds, patching, alerts, troubleshooting and cost

Under all that work, every request takes the same path. When you click “Create” in the portal or type an az command, here’s what happens:

  1. You sign in to Microsoft Entra ID and get a token that says who you are.
  2. Your request goes to Azure Resource Manager with that token, whether you used the portal, the CLI or a Bicep file.
  3. ARM checks your role (RBAC). If your role doesn’t allow that action at that scope, you get AuthorizationFailed.
  4. ARM checks Azure Policy. If a company rule blocks it (say, no VMs outside India), you get RequestDisallowedByPolicy.
  5. The resource provider does the work, which is Microsoft.Compute for a VM and Microsoft.Storage for a storage account.
  6. The Activity log records it, along with your name, the time and the result.

Once this path is in your head, error messages stop looking scary, because each one tells you which step stopped your request and so where to look.

Azure administrator view of the request path: Entra ID, Resource Manager, RBAC, Policy, provider

There’s one more thing behind almost every decision you make, and that’s cost. You pay for most things in Azure by the hour or by the gigabyte, and the price depends on the size you choose and the region you put it in. Before approving a new server, a manager will often ask you “what will this cost per month?”

In the lab below you answer that with real prices from Microsoft.

Hands-on lab: your first Azure administrator task

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.

Here’s a request Azure admins get all the time. The team wants a small Linux test server and wants to know the monthly cost, whether a bigger D-series or E-series VM costs a lot more, and whether another region would be cheaper.

Microsoft publishes all its prices at a public web address called the Azure Retail Prices API. You can read it without signing in, which makes it a nice first lab, and the prices come back in US dollars unless you ask otherwise.

1Make a lab folder

Open Windows PowerShell from the Start menu and run this:

New-Item -ItemType Directory -Path C:\azure-lab -Force | Out-Null
Set-Location C:\azure-lab
$PSVersionTable.PSVersion

You should see something like this:

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      26100  4202

Any 5.1 build will do. Every lab in this course uses C:\azure-lab as its folder.

2Ask Microsoft for the price of one VM size

Most lab VMs in this course use the size Standard_B2ats_v2, which has 2 vCPUs and 1 GiB of memory and is part of the Azure free account’s 12-month free services. We’ll check its price in Central India (Pune), whose short name is centralindia.

Run this:

$f = "armRegionName eq 'centralindia' and armSkuName eq 'Standard_B2ats_v2' and priceType eq 'Consumption'"
$url = 'https://prices.azure.com/api/retail/prices?$filter=' + [uri]::EscapeDataString($f)
$r = Invoke-RestMethod -Uri $url
$r.Count
$r.Items | Select-Object productName, skuName, retailPrice

You should see something like this (prices change from time to time):

8
productName                           skuName               retailPrice
-----------                           -------               -----------
Virtual Machines Basv2 Series Windows B2ats v2                   0.0154
Virtual Machines Basv2 Series         B2ats v2 Spot            0.005535
Virtual Machines Basv2 Series Windows B2ats v2 Low Priority     0.00614
Basv2 Series Cloud Services           B2ats v2                   0.0154
Virtual Machines Basv2 Series         B2ats v2                  0.00615
Virtual Machines Basv2 Series         B2ats v2 Low Priority     0.00123
Virtual Machines Basv2 Series Windows B2ats v2 Spot             0.01386
Basv2 Series Cloud Services           B2ats v2 Low Priority     0.00614

Eight prices for one size? Each row is a different way of running it. The normal pay-as-you-go prices are the two plain “B2ats v2” rows: 0.00615 USD an hour for Linux and 0.0154 USD for Windows.

Windows costs more because the Windows Server licence is built into the price. Spot and Low Priority are cheap, but Azure can take those VMs back at short notice, and “Cloud Services” is an older product you won’t be using.

Look at the single quotes around $filter. PowerShell leaves the dollar sign alone inside single quotes, and in “Break It” you’ll see what happens when you forget them.

3Turn it into a reusable price checker

Paste this whole block:

function Get-VmPrice {
    param([Parameter(Mandatory)][string]$Size, [string]$Region = 'centralindia')
    $f = "armRegionName eq '$Region' and armSkuName eq '$Size' and priceType eq 'Consumption'"
    $url = 'https://prices.azure.com/api/retail/prices?$filter=' + [uri]::EscapeDataString($f)
    $items = (Invoke-RestMethod -Uri $url).Items | Where-Object {
        $_.serviceName -eq 'Virtual Machines' -and
        $_.productName -notmatch 'Cloud Services' -and
        $_.skuName -notmatch 'Spot|Low Priority' }
    $linux = ($items | Where-Object productName -notmatch 'Windows').retailPrice
    $win   = ($items | Where-Object productName -match 'Windows').retailPrice
    [pscustomobject]@{
        Size = $Size; Region = $Region
        LinuxHour = $linux; LinuxMonth = [math]::Round($linux * 730, 2)
        WindowsHour = $win; WindowsMonth = [math]::Round($win * 730, 2)
    }
}
'Standard_B2ats_v2','Standard_D2s_v5','Standard_E2s_v5','Standard_F2s_v2' |
    ForEach-Object { Get-VmPrice -Size $_ } |
    Format-Table Size, LinuxHour, LinuxMonth, WindowsHour, WindowsMonth

You should see something like this:

Size              LinuxHour LinuxMonth WindowsHour WindowsMonth
----              --------- ---------- ----------- ------------
Standard_B2ats_v2   0.00615       4.49      0.0154        11.24
Standard_D2s_v5       0.101      73.73       0.193       140.89
Standard_E2s_v5        0.13       94.9       0.222       162.06
Standard_F2s_v2       0.085      62.05       0.177       129.21

On PowerShell 7? Its tables may round the hourly prices to two decimals, like 0.01, but the function still holds the full price, and adding | Format-List shows it.

Azure counts a month as 730 hours, so the function multiplies the hourly price by 730. That gives you a one-line answer for the team: the small B-series Linux VM comes to about 4.49 USD a month, while a D2s_v5 with the same 2 vCPUs is about 74 USD.

The gap is big because the B-series is burstable, which means it runs at a low baseline and saves up credits for short bursts, while the D-series is general purpose with full-time CPU and 8 GiB of memory.

The E-series also has 2 vCPUs but with 16 GiB of memory for databases and caches, and the F-series is compute-optimised. Choosing sizes properly comes in Lesson 17.

4Is another region cheaper?

Run this:

$regions = 'centralindia','southindia','westindia','eastus','southeastasia','westeurope'
$cmp = $regions | ForEach-Object { Get-VmPrice -Size 'Standard_B2ats_v2' -Region $_ }
$cmp | Sort-Object LinuxMonth | Format-Table Region, LinuxHour, LinuxMonth

You should see something like this:

Region        LinuxHour LinuxMonth
------        --------- ----------
centralindia    0.00615       4.49
eastus           0.0094       6.86
westeurope       0.0108       7.88
southeastasia    0.0118       8.61
westindia         0.012       8.76
southindia       0.0133       9.71

For this size, Central India is the cheapest region on the list, at less than half the price of South India even though both are in India. Each region has its own prices, so don’t assume the nearest or the biggest one is the cheapest.

Always check.

Price isn’t the only thing that decides the region, though. You also think about where your users are, data rules (some data has to stay in India), and which services and availability zones the region offers. Lesson 4 goes into that.

Azure administrator lab: Get-VmPrice table by VM size and by region
Example output. Prices change now and then, so your numbers may be slightly different.

5Save the answer for the team

Run this:

$cmp | Export-Csv C:\azure-lab\b2ats-prices.csv -NoTypeInformation
(Import-Csv C:\azure-lab\b2ats-prices.csv).Count

You should see this:

6

✅ Checkpoint: C:\azure-lab\b2ats-prices.csv exists with 6 rows, and you can say what a Standard_B2ats_v2 Linux VM costs per month in Central India.

Hang on to the Get-VmPrice function. Later in the course, before you build anything expensive, you can run it to check the hourly price first.

Break It, Then Fix It

People make two mistakes with this kind of script all the time. The first one throws a strange error, and the second throws no error at all, which is worse.

1Break it: double quotes around $filter

Run this:

$url = "https://prices.azure.com/api/retail/prices?$filter=" + [uri]::EscapeDataString($f)
$url
$r = Invoke-RestMethod -Uri $url

You’ll get this error (something like this):

https://prices.azure.com/api/retail/prices?=armRegionName%20eq%20%27centralindia%27%20and%20...
Invoke-RestMethod : {"Error":{"Code":"InternalServerError","Message":"ExchangeRate ARMREGIONNAME EQ
CENTRALINDIA AND ARMSKUNAME EQ STANDARD_B2ATS_V2 AND PRICETYPE EQ CONSUMPTION_2026-09-01 not found"}}
At line:3 char:6
+ $r = Invoke-RestMethod -Uri $url
+      ~~~~~~~~~~~~~~~~~~~~~~~~~~~

Look at the address $url printed: the word $filter has disappeared. Inside double quotes PowerShell treats $filter as a variable, and since that variable doesn’t exist, it turned into nothing. The API received a parameter with no name and tried to read your filter as a currency name, which is where the odd “ExchangeRate … not found” message comes from.

Fix it: use single quotes for the part with the dollar sign, as in the lab:

$url = 'https://prices.azure.com/api/retail/prices?$filter=' + [uri]::EscapeDataString($f)
(Invoke-RestMethod -Uri $url).Count

You should see this:

8

Remember this for later: when an error message makes no sense, print the exact request you sent, because half the time it isn’t what you think it is.

2Break it: the region name in the wrong case

Run this:

Get-VmPrice -Size 'Standard_B2ats_v2' -Region 'CentralIndia'

You should see something like this:

Size         : Standard_B2ats_v2
Region       : CentralIndia
LinuxHour    :
LinuxMonth   : 0
WindowsHour  :
WindowsMonth : 0

There’s no error, and the monthly cost shows as 0, which someone could easily paste into a cost plan. The price list compares names exactly, so CentralIndia matches nothing and the API sends back an empty list. $null times 730 is 0, and the function cheerfully reports a zero price.

To fix it, make the function tidy up the input and refuse to answer when it finds nothing. Paste this:

function Get-VmPrice {
    param([Parameter(Mandatory)][string]$Size, [string]$Region = 'centralindia')
    $Region = $Region.ToLower()
    $f = "armRegionName eq '$Region' and armSkuName eq '$Size' and priceType eq 'Consumption'"
    $url = 'https://prices.azure.com/api/retail/prices?$filter=' + [uri]::EscapeDataString($f)
    $items = (Invoke-RestMethod -Uri $url).Items | Where-Object {
        $_.serviceName -eq 'Virtual Machines' -and
        $_.productName -notmatch 'Cloud Services' -and
        $_.skuName -notmatch 'Spot|Low Priority' }
    if (-not $items) { throw "No price found for $Size in $Region. Check the size and region names." }
    $linux = ($items | Where-Object productName -notmatch 'Windows').retailPrice
    $win   = ($items | Where-Object productName -match 'Windows').retailPrice
    [pscustomobject]@{
        Size = $Size; Region = $Region
        LinuxHour = $linux; LinuxMonth = [math]::Round($linux * 730, 2)
        WindowsHour = $win; WindowsMonth = [math]::Round($win * 730, 2)
    }
}
(Get-VmPrice -Size 'Standard_B2ats_v2' -Region 'CentralIndia').LinuxMonth
Get-VmPrice -Size 'B2ats_v2'

You should see something like this:

4.49
No price found for B2ats_v2 in centralindia. Check the size and region names.
At line:10 char:21

Now the mixed-case region works, and a wrong size name (it needs the Standard_ prefix) stops with a clear message instead of a fake zero. Lots of Azure names are lowercase with no spaces, like centralindia rather than “Central India”. The portal shows you the friendly name, but scripts, the CLI and Bicep all use the short one.

Azure administrator lab errors: missing $filter and a fake zero price
Example output of both mistakes. The date in your error message will be different.

✅ Checkpoint: You’ve reproduced and fixed both mistakes, and Get-VmPrice now throws an error instead of returning 0.

This happened at work

The VM that “disappeared” on a Monday morning

A logistics company ran its warehouse app on a single Azure VM. At 8:15 a.m. one Monday the app was down, and when the on-call engineer opened the portal, the VM wasn’t in the list. He told his manager someone had deleted the server and started building a new VM from the previous night’s backup.

Forty minutes in, a senior admin joined the call. She glanced at the portal’s top bar and noticed he was signed in to the company’s test directory, with only the test subscription selected. She switched directory and the VM was right there, running, with its disk full of logs.

Clearing the logs brought the app back in five minutes. The half-built restore was another story: it had to be deleted carefully, because it was about to start a second copy of the warehouse app.

What they changed: the runbook now opens with “Which tenant and which subscription am I in?” (in the CLI, az account show). Production and test subscriptions were given clear names and tags, the portal’s default subscription filter was set to show everything the engineer has access to, and nobody starts a restore any more without first checking the Activity log for a delete.

Common mistakes and troubleshooting

MistakeWhat you seeWhat to do
Looking in the wrong directory or subscriptionResources seem to be “gone”Look at the account menu (top right) and the subscription filter. In the CLI, run az account show before anything else.
Using friendly names in scriptsEmpty results, “not found” or a fake 0Use the short lowercase names, such as centralindia and Standard_B2ats_v2.
Picking a region only because it is closeHigher bills than planned, or a service you need is missingCompare price, data rules, available services and zones (Lesson 4 covers this).
Reading the wrong price rowA plan based on Spot or Windows pricesUse the plain pay-as-you-go row for the right OS, and remember Azure can take Spot VMs away.
Treating the portal as the only toolSlow, error-prone repeat workGet comfortable with the Azure CLI and PowerShell early (Lesson 3), so you can check and fix lots of things in one go.
Guessing during an outageRestores and rebuilds that weren’t neededAsk “what changed?” before anything else. The Activity log shows who changed what, and when.

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. In simple words, what does an Azure administrator do all day?

Why they ask this: They want to hear that the job is mostly running and fixing things, and not only creating them once.

How you might answer: I look after everything the company runs in Azure. That means managing who can sign in and what they can do, building and maintaining networks, VMs and storage, keeping backups and patching on track, watching alerts and keeping an eye on cost.

When something breaks I’m usually the first to look, so a big part of the job is going through logs and settings one step at a time.

2. What is the difference between Microsoft’s job and your job in Azure?

Why they ask this: It checks whether you understand the shared responsibility model in plain language.

How you might answer: Microsoft runs the physical side, meaning the data centres, hosts, network and platform services. I’m responsible for what we build on top, like who has access, how our networks and NSGs are set up, patching the OS inside our VMs, and our data and backups.

With managed services Microsoft takes on more of the work, but access and data always stay with us.

3. A colleague says a VM has vanished from the portal. What’s the first thing you check?

Why they ask this: They want a calm, simple first step, not panic and not a restore.

How you might answer: I’d check which directory and subscription they’re looking at, because the portal only shows what’s selected in the filter. I’d run az account show or check the account menu.

If the VM really has gone, the subscription’s Activity log will show a delete operation along with who did it and when.

2–5 years experience

4. Walk me through what happens when you create a VM, from your click to the VM running.

Why they ask this: They want to know you understand Azure Resource Manager, since that explains most of the errors you’ll run into.

How you might answer: Whether I use the portal or the CLI, the request goes to Azure Resource Manager with my Entra ID token. ARM checks my RBAC role at that scope and any Azure Policy assignments, and then passes the request to the Microsoft.Compute resource provider, which builds the VM, the disk and the network card.

The operation is recorded in the Activity log. That’s why an AuthorizationFailed error sends me to RBAC, and RequestDisallowedByPolicy sends me to a policy.

5. Your manager asks what a new server will cost per month. How do you answer quickly and correctly?

Why they ask this: They’re checking that you treat cost as part of the job and know where real prices come from.

How you might answer: I’d confirm the size, OS, region and how many hours it’ll run, and then look up the price in the Azure pricing calculator or the Retail Prices API. In my lab I wrote a small PowerShell function that pulls the pay-as-you-go hourly price and multiplies it by 730 hours.

I’d also bring up the disk, backup and data transfer costs, and whether the server could be shut down at night to save money.

6. Why do you prefer the Azure CLI or PowerShell over the portal for some tasks?

Why they ask this: They want to see that you can work at scale and repeat things without making mistakes.

How you might answer: The portal’s great for looking around, but with a script I can run the same check across fifty VMs in seconds and get the same result every time. I can also keep the script in a repo where the team can review it.

For changes we make again and again, like building environments, I’d go a step further and use Bicep templates.

Senior level

7. You join a team with ten subscriptions and nobody knows what runs where. What would you do in your first month?

Why they ask this: They want to see how you bring order to a mess, covering inventory, ownership, access and cost in a sensible order.

How you might answer: I’d start with a full inventory from Azure Resource Graph, grouped by subscription, resource group and type, and find out who owns each workload. Next I’d review who has Owner and Contributor access, and set up owner, app and environment tags with an Azure Policy that makes them mandatory on new resources.

After that I’d add budgets and cost alerts for each subscription, and do a basic monitoring and backup check on anything that’s clearly production.

8. How would you explain to a new team member why an outage runbook starts with “what changed?”

Why they ask this: They want to see that you work from evidence and pass good habits on.

How you might answer: I’d explain that most outages come from a change, like a new NSG rule, an expired secret, a deleted route or a resized disk. The Activity log and change history show those within minutes, so looking there first beats guessing.

I’d also tell them to confirm the tenant and subscription before anything else, so they don’t end up investigating the wrong place.

9. A team wants every developer to have Owner on the production subscription “to move faster”. How do you respond?

Why they ask this: They’re testing your judgement on security versus speed, and whether you can offer something that works for the team.

How you might answer: I wouldn’t give anyone standing Owner, but I’d find out what they need. Usually it’s Contributor on their own resource groups, Reader on production and a quick, approved way to get higher access when needed, like Privileged Identity Management with time-limited roles.

I’d back it up with a real example: with Owner, one wrong delete or one leaked token can take down every app in the subscription.

Quick quiz

Q1. What does an Azure administrator mainly do?

  1. Build the physical data centres
  2. Build, secure, monitor and fix the company’s resources in Azure
  3. Write the Azure portal’s code
  4. Only reset user passwords
Show answer

B — Microsoft runs the physical side. You run what the company builds on top.

Q2. Every portal click, CLI command and Bicep deployment goes through which service first?

  1. Azure Monitor
  2. Azure Resource Manager
  3. Azure Backup
  4. Microsoft Defender for Cloud
Show answer

B — Azure Resource Manager is the front door. It checks RBAC and Azure Policy, then calls the resource provider.

Q3. Which error tells you that your role doesn’t allow an action?

  1. RequestDisallowedByPolicy
  2. AuthorizationFailed
  3. QuotaExceeded
  4. ResourceNotFound
Show answer

B — AuthorizationFailed comes from RBAC. RequestDisallowedByPolicy comes from Azure Policy.

Q4. In the lab, why did the double-quoted URL fail?

  1. The API was down
  2. PowerShell replaced $filter with an empty variable
  3. The region doesn’t exist
  4. You need an Azure account
Show answer

B — Inside double quotes PowerShell expands variables, so $filter became nothing.

Q5. How many hours does Azure use for one month when it shows monthly prices?

  1. 720
  2. 730
  3. 744
  4. 768
Show answer

B — Azure uses 730 hours, about the average month.

Quick recap

An Azure administrator looks after identity, access, networks, VMs, storage, monitoring, backups and cost. Since every change takes the same path, an error tells you where to look.

  • Microsoft runs the physical platform, and you run what your company builds on it.
  • Every request goes through Entra ID (who you are), Azure Resource Manager, RBAC, Azure Policy, then the resource provider.
  • The Activity log answers “who changed what, and when?” for 90 days.
  • Prices depend on size, OS and region, and Azure counts a month as 730 hours.
  • In scripts, use short names like centralindia and Standard_B2ats_v2, and treat an empty result as a problem instead of trusting a 0.

Next lesson

Lesson 2: Set up your Azure free account safely → You’ll create your own Azure account, protect it with MFA and add a budget alert before building anything.

Further reading: Azure administrator

If you want to go further as an Azure administrator, Microsoft describes the role and the exam on the Azure Administrator Associate certification page, and the price list you used is documented in the Azure Retail Prices API reference. The full plan for this course is on the Azure Cloud Administration course page.

Scroll to Top

This website uses cookies

We use a few cookies to keep this site working. If you allow it, we also use Google Analytics to count visits so we can improve our lessons. You can accept all, deny the optional ones, or choose what to allow.