Azure Regions, Availability Zones and Billing

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.

Choosing Azure regions and availability zones is one of the first decisions on any project and one of the hardest to undo. It decides how close you are to your users, what you pay, which services you can use and what keeps running when a data centre has a bad day.

You’ll list the regions in India, see which have availability zones and which region each one is paired with, and find out why “zone 1” in your subscription might be a different building from “zone 1” in someone else’s.

After that comes the money side: how Azure meters what you use, why a stopped VM can still cost you, and how to ask Cost Management “what did each lesson cost me?” using tags.

TimeYou needCostBy the end you can
About 40 minutesThe Azure CLI from Lesson 3, signed inNothing (only queries and an empty resource group)Pick a region and zone for a workload with reasons, and report cost by tag

What it is, in one line

A region is a city full of Azure data centres, and an availability zone is one separate building in that city with its own power and cooling.

In Simple Words

Three school buildings in one town

Imagine your school has three buildings in the same town, each with its own electricity and its own water tank, so if one loses power, classes move to the other two and the day carries on.

The town is the region and each building is an availability zone. A second town far away, where the school keeps copies of its important records, is the paired region.

Put every class in one building and a single power cut stops the whole school. Spreading them out takes a bit more effort, but it’s what keeps the day going.

Engineer's View

Regions, zones, pairs and meters

  • Region: a group of data centres in one area, linked by a low-latency network. You pick one by names like centralindia (Pune), southindia (Chennai) and westindia (Mumbai).
  • Availability zones: physically separate locations inside a region, each with its own power, cooling and networking, and a region with zones has three of them. In India, only Central India has zones today, while South India and West India don’t.
  • Zone numbers are logical. Your subscription’s zone 1 maps to one physical zone, and another subscription’s zone 1 might map to a different one. You can see the mapping through the API as availabilityZoneMappings.
  • Paired regions: Central India pairs with South India, and so does West India. Microsoft rolls out platform updates to one region of a pair at a time, and geo-redundant storage (GRS) copies your data to the paired region.
  • Not every service is in every region, and some VM sizes are restricted on new or trial subscriptions, so check before you design anything.

Billing runs on meters. A VM’s compute is charged while it’s running and allocated, rounded to the minute, and its disks are charged by size for every hour they exist, even while the VM is off.

A public IP is charged by the hour, and data leaving Azure or going between regions is charged per GB, while data coming in is free.

Which brings you to the billing rule admins most need to know: “Stopped” is not “Stopped (deallocated)”. If you shut down Windows or Linux from inside the VM, it stays allocated and you keep paying for compute. Stopping it from the portal or with az vm deallocate releases the hardware and stops the compute meter.

How it works, step by step

When you’re deciding where something should run, work through these questions in order:

Azure regions and availability zones: five questions before you pick a region
  1. Where are the users, and what do the data rules say? If customer data has to stay in India, only Indian regions are an option.
  2. Do you need zones? If the app has to survive a data centre failure, you need a region with zones, such as Central India, with copies placed in different zones.
  3. Is every service you need available there? Check VM sizes, Bastion, NetApp Files and anything else in the design.
  4. What does it cost there? In Lesson 1 you saw the same VM cost twice as much in a nearby region.
  5. Where does the disaster recovery copy go? Normally the paired region, unless data rules or missing services point elsewhere.

Once things are running, the money side goes round in a loop. You tag every resource, Cost Management collects the meters (up to 72 hours late on pay-as-you-go), and then you group the cost by tag to see who and what is spending.

Azure regions and availability zones billing: running, stopped in the OS and deallocated VMs

The lab goes in the same order: regions and zones first, and then you ask Cost Management for your spend grouped by the lesson tag you’ve been adding since Lesson 3.

Hands-on lab: regions, zones and cost by tag

Apart from one empty resource group everything here is read-only, so it costs nothing. Open Windows PowerShell, go to C:\azure-lab and check that az account show shows your subscription.

1List the regions in India and their pairs

Run this:

az account list-locations --query "[?contains(name,'india') && metadata.regionType=='Physical'].{name:name, display:displayName, paired:metadata.pairedRegion[0].name}" -o table

You should see something like this:

Name             Display            Paired
---------------  -----------------  ---------------
centralindia     Central India      southindia
southindia       South India        centralindia
westindia        West India         southindia
jioindiawest     Jio India West     jioindiacentral
jioindiacentral  Jio India Central  jioindiawest

The Jio regions are meant for specific customers, so most subscriptions can’t create anything there, which leaves Central, South and West India as the three you’ll use. You’ll also see that South India is the pair for both of the others.

2Check which regions have zones for your VM size

Run this:

foreach ($r in 'centralindia','southindia','westindia') {
    $z = az vm list-skus --location $r --size Standard_B2ats_v2 --query "[0].locationInfo[0].zones" -o tsv
    "{0,-13} zones: {1}" -f $r, ($z -join ' ')
}

You should see something like this (the order of the numbers may differ):

centralindia  zones: 1 2 3
southindia    zones:
westindia     zones:

Only Central India offers zones for this size. So if a design says “spread the VMs across three zones” and someone picks West India because it’s in Mumbai, the design won’t work there.

3See how your zone numbers map to physical zones

Run this:

$sub = az account show --query id -o tsv
az rest --method get --url "https://management.azure.com/subscriptions/$($sub)/locations?api-version=2022-12-01" --query "value[?name=='centralindia'].availabilityZoneMappings[]" -o table

You should see something like this:

LogicalZone    PhysicalZone
-------------  ----------------
1              centralindia-az2
2              centralindia-az3
3              centralindia-az1

Here your zone 1 is physical zone az2, while a partner company’s zone 1 could be az1, so when two companies say “we’re both in zone 1”, they might be in different buildings.

It matters when you connect to a partner’s service or plan something with a vendor across subscriptions.

4Create a tagged group and ask for cost by lesson

Run this:

az group create --name rg-saat-l04 --tags course=saatvedha-azure lesson=04 -o none
@'
{
  "type": "ActualCost",
  "timeframe": "MonthToDate",
  "dataset": {
    "granularity": "None",
    "aggregation": { "totalCost": { "name": "Cost", "function": "Sum" } },
    "grouping": [ { "type": "TagKey", "name": "lesson" } ]
  }
}
'@ | Set-Content C:\azure-lab\cost-by-lesson.json
az rest --method post --url "https://management.azure.com/subscriptions/$($sub)/providers/Microsoft.CostManagement/query?api-version=2023-03-01" --body "@C:\azure-lab\cost-by-lesson.json" --query "properties.rows"

You should see something like this:

[
  [
    0.0,
    "lesson",
    "",
    "USD"
  ]
]

Each row holds the cost, the tag name, the tag value and the currency. So far you’ve only created free things, so there’s one row with zero cost and an empty tag value, but once labs start creating VMs and disks you’ll see rows like [0.12, "lesson", "15", "USD"] turn up a day or so later.

Writing the JSON to a file and passing it with --body "@file" gets around PowerShell’s quoting trouble with JSON on the command line. Hold on to the file, because you’ll run it again in Lesson 44.

Azure regions and availability zones lab: zones per Indian region and logical zone mapping
Example output. Your zone mapping will differ.

5Clean up

Run this:

az group delete --name rg-saat-l04 --yes
C:\azure-lab\Find-LabResources.ps1

You should see this:

Nothing tagged course=saatvedha-azure is left.

✅ Checkpoint: You can name Central India’s paired region and the Indian region that has zones, and cost-by-lesson.json is saved in C:\azure-lab.

Break It, Then Fix It

One of these mistakes comes from Azure and the other from PowerShell, and on real projects you’ll see both every week.

1Break it: a typo in the region name

Run this:

az group create --name rg-saat-l04 --location centralinda --tags course=saatvedha-azure lesson=04

You’ll get an error like this:

(LocationNotAvailableForResourceGroup) The provided location 'centralinda' is not available for resource group.
List of available regions is 'eastasia,southeastasia,australiaeast,...,centralindia,southindia,westindia,...'.
Code: LocationNotAvailableForResourceGroup

The CLI hands your text straight to Azure Resource Manager, which rejects it and helpfully lists the names it accepts. One small detail: if you type the display name with a space, like "Central India", the CLI converts it to centralindia for you, but it can’t do anything with a typo.

To fix it, copy the exact name from the list in step 1, or use your default:

az group create --name rg-saat-l04 --tags course=saatvedha-azure lesson=04 --query location -o tsv

You should see this:

centralindia

2Break it: backticks inside a PowerShell query

Lots of CLI examples online are written for bash and put text values in backticks in JMESPath. Try one of them in PowerShell:

az account list-locations --query "[?metadata.geographyGroup==`Asia Pacific`].name" -o tsv

You’ll get this error:

ERROR: argument --query: invalid jmespath_type value: '[?metadata.geographyGroup==Asia Pacific].name'
To learn more about --query, please visit: 'https://learn.microsoft.com/cli/azure/query-azure-cli'

Look at what the CLI received and you’ll see the backticks have gone. The backtick is PowerShell’s escape character, so inside double quotes it swallowed them and the query stopped being valid.

To fix it, put text values inside the query in single quotes, as this course does everywhere:

az account list-locations --query "[?metadata.geographyGroup=='Asia Pacific'].name" -o tsv | Select-Object -First 3

You should see something like this:

eastasia
southeastasia
australiaeast

Clean up:

az group delete --name rg-saat-l04 --yes
C:\azure-lab\Find-LabResources.ps1
Azure regions and availability zones errors: location typo and backticks in a PowerShell query
Example output of both mistakes. In the first error the real region list is much longer.

✅ Checkpoint: You’ve reproduced and fixed both errors, and nothing tagged for the course is left.

This happened at work

Two VMs “for high availability”, both in zone 1

A ticket-booking company in Pune ran its web front end on two VMs in Central India behind a load balancer, and the design document said “highly available across zones”. But the Bicep file that built them had been copied from an old project, and it had zones: [ '1' ] hard-coded for every VM.

Then one physical zone had a cooling problem, and Azure moved and restarted the VMs in it. Both web VMs were in that zone, so they went down together, right in the middle of ticket sales for a cricket match, and the site was down for about half an hour while the other two zones were perfectly healthy.

What they changed: the template now takes the zone from the VM’s index, so VM 1 lands in zone 1, VM 2 in zone 2 and so on, and a pipeline check fails any pull request where all instances share a zone. They also started a monthly review that lists VM zones with Azure Resource Graph, so drift gets caught early.

Common mistakes and troubleshooting

MistakeWhat you seeWhat to do
Assuming every region has zonesZone settings fail or are ignoredCheck with az vm list-skus. In India, only Central India has zones right now.
Thinking zone 1 is the same for everyoneCross-subscription designs that aren’t really spread outCheck availabilityZoneMappings in each subscription.
Shutting down the OS to save moneyThe compute meter keeps runningStop it from the portal or with az vm deallocate.
Picking a region for one service onlyA later service isn’t available thereCheck every service in the design before you choose.
Ignoring data leaving the regionEgress charges on the billKeep the chatty parts of an app in the same region, since data coming in is free and data going out is charged.
Bash examples in PowerShellinvalid jmespath_type valuePut text inside the query in single quotes.

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. What is the difference between a region and an availability zone?

Why they ask this: It’s a core concept, and they want a clear, simple answer.

How you might answer: A region is a geographic area with several data centres, like Central India in Pune. Availability zones are separate locations inside that region, each with its own power, cooling and network, so one can fail and the others keep going.

2. Which Azure regions in India would you consider, and why?

Why they ask this: They want some local knowledge and practical reasons.

How you might answer: Central India, South India and West India. Central India has availability zones, so that’s where I’d put anything needing zone redundancy, with South India, its paired region, for disaster recovery.

I’d still compare prices and make sure every service we need is there.

3. A VM was shut down from inside Windows, but we’re still paying for it. Why?

Why they ask this: Lots of people get this billing point wrong.

How you might answer: Shutting down the OS leaves the VM allocated on the host, so the compute meter keeps ticking. To release the hardware you have to stop it from Azure, in the portal or with az vm deallocate.

Either way the disks are still charged, because they still exist.

2–5 years experience

4. Why might “zone 1” not mean the same place for two different subscriptions?

Why they ask this: They want to know you understand zones are logical per subscription, which matters once designs span several subscriptions.

How you might answer: Azure maps each subscription’s logical zones to physical zones on its own, so my zone 1 could be another subscription’s zone 2. The mapping is in the locations API under availabilityZoneMappings.

If two subscriptions have to line up, for example for latency to a partner, I’d check the mappings instead of trusting the numbers.

5. How would you show a manager which project is spending the most in Azure?

Why they ask this: They want practical cost reporting, and “look at the bill” isn’t enough.

How you might answer: I’d make sure resources are tagged by project and then group the cost by that tag in Cost analysis, or query the Cost Management API from a script. In my lab I post a query that groups month-to-date actual cost by tag.

I’d also point out that cost data can be a few days behind, and that untagged resources show up with an empty tag value, which tells us what still needs fixing.

6. What would you check before choosing a region for a new workload?

Why they ask this: They’re checking whether you think about more than distance.

How you might answer: Data rules come first. Then I’d check the region has zones if we need them, that every service and VM size we need is there, what it costs, and where the disaster recovery copy will live, which is usually the paired region.

Senior level

7. Design a simple setup in India that survives both a zone failure and a full region outage.

Why they ask this: They want an answer in layers, with the trade-offs.

How you might answer: I’d run the app in Central India across three zones behind a zone-redundant load balancer, keeping data on zone-redundant storage or a database with zone redundancy. To cover a region outage I’d replicate to South India with Azure Site Recovery or geo-replication, and have DNS ready to switch, say with Traffic Manager.

Before any of that I’d agree the recovery time and data loss targets with the business, because a hot standby costs a lot more than a cold one.

8. A developer hard-coded zone 1 for all VMs in a template. How do you stop this happening again?

Why they ask this: They want to hear about process and guardrails, not blame.

How you might answer: I’d fix the template so it spreads instances by index, and add a check to the pull request pipeline that fails when every instance shares a zone. A regular Resource Graph report of VM zones would then catch anything built outside the pipeline.

9. Finance asks you to cut the Azure bill by 20 percent. Where do you start?

Why they ask this: They want a plan built on data.

How you might answer: I’d open Cost analysis grouped by service and tag to find the biggest items, and then go for the quick wins: deallocate or delete idle VMs, remove unattached disks and unused public IPs, add auto-shutdown to dev and test, and right-size the busy VMs.

For steady workloads I’d look at reservations or savings plans, and I’d check data transfer between regions, since that’s often a hidden cost.

Quick quiz

Q1. Which Indian region has availability zones today?

  1. West India
  2. South India
  3. Central India
  4. All three
Show answer

C — Central India has three zones. South and West India have none.

Q2. What is Central India’s paired region?

  1. West India
  2. South India
  3. Southeast Asia
  4. Jio India West
Show answer

B — Central India is paired with South India.

Q3. You shut down a VM from inside Linux. What still costs money?

  1. Nothing
  2. Only the disks
  3. Compute and disks, because it is still allocated
  4. Only the public IP
Show answer

C — It stays allocated, so compute is charged. Deallocate it from Azure to stop that.

Q4. Why can’t you trust “zone 1” to be the same building for two subscriptions?

  1. Zones move every day
  2. Logical zones are mapped to physical zones per subscription
  3. Zones are only labels in the portal
  4. Zone 1 is always the oldest
Show answer

B — Each subscription has its own logical-to-physical mapping.

Q5. In PowerShell, what breaks a JMESPath query that uses backticks?

  1. The CLI version
  2. PowerShell treats the backtick as an escape and removes it
  3. JMESPath doesn’t support text
  4. The region name
Show answer

B — Use single quotes for text values inside the query instead.

Quick recap

You can now place a workload for proper reasons instead of guessing, and you know how Azure turns what you run into a bill.

  • A region is an area and a zone is a separate building inside it. In India only Central India has zones.
  • Central India and West India are paired with South India.
  • Zone numbers are logical and mapped per subscription.
  • Disks, IPs and outgoing data cost money even while a VM is off, so deallocate it to stop the compute charges.
  • Tag everything and group cost by tag, remembering the data can be up to 72 hours late.

Next lesson

Lesson 5: Microsoft Entra ID basics: tenant, users, groups → Phase 1 starts with identity: users, groups and how Entra ID works out who you are.

Further reading: Azure regions and availability zones

If you want to go further with Azure regions and availability zones, Microsoft’s region table, with zones and pairs, is in Azure regions list, and the zone concepts are in What are availability zones?. 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.