Disk Storage in Azure: Where Your Virtual Machines Keep Their Memories

Disk Storage in Azure: Where Your Virtual Machines Keep Their Memories

A beginner-friendly guide to Azure managed disks: what they are, the five disk types, how performance is measured, how data stays safe, and how to pick the right disk without overspending.

Imagine you move into a new apartment. The apartment itself is your computer: it has rooms, lights and a front door. But an apartment with no cupboards, no shelves and no wardrobe is not very useful, because you have nowhere to put your clothes, books and kitchen things. In the cloud, a virtual machine is the apartment, and the disk is every cupboard and shelf inside it. Without a disk, a virtual machine cannot even start, because it has nowhere to keep its operating system, its programs or your files.

In this guide we will learn about disk storage in Microsoft Azure from the very beginning. You do not need any earlier knowledge. Every new word will be explained the first time it appears, and we will use everyday examples so that each idea feels familiar. By the end you will know what the different Azure disks are, how fast each one is, how they protect your data, and how to choose the right one for a real project.

1What Is Disk Storage in Azure?

Azure disk storage is the permanent, block-level storage that virtual machines use to keep their data.

Let us start with the basic words. Azure is Microsoft’s cloud platform, a giant collection of computers in buildings called data centers, which you can rent by the hour instead of buying your own. A virtual machine, often shortened to VM, is a computer that exists as software on one of those big computers. You can start it, stop it, and resize it whenever you like.

A disk is a place where a computer saves information so that the information is still there after the computer is switched off. In your laptop, the disk is a physical part inside the case. In Azure, the disk is a virtual disk: Microsoft stores the data across many physical drives in its data centers and shows it to your VM as if it were one ordinary drive. This service is officially called Azure Disk Storage, and the disks themselves are called Azure managed disks.

Azure disks are block storage. Block storage splits data into equal-sized pieces called blocks and gives each piece an address, much like numbered boxes in a warehouse. The operating system of your VM puts a file system on top of those blocks, and from then on you see folders and files like you would on any computer. This is different from object storage (such as Azure Blob Storage) where you save whole files through a web address, and from file storage (such as Azure Files) where many computers share folders over a network.

Simple Analogy

Think of a disk as a large wardrobe with thousands of identical drawers, each with a number. The VM is the person using the wardrobe. The person does not care which factory built the wardrobe or where it stands; they only care that drawer 4,512 always holds what they put in it. Azure builds and looks after the wardrobe so you only worry about what goes inside.

5
disk types from budget to ultra-fast
64 TiB
largest size for the top disk types
3 copies
of your data kept automatically in the basic setup

2Why Virtual Machines Need Disks

Every Azure VM can use up to three kinds of disk, and each one has a different job.

When you create a VM, Azure quietly attaches at least one disk. Understanding the three roles will save you from many beginner mistakes, so let us look at them one at a time.

Role 1

OS Disk

Holds the operating system, such as Windows Server or Linux. Every VM has exactly one, and the VM cannot start without it.

Role 2

Data Disk

Holds your applications, databases and files. You can attach several, and the number allowed depends on the VM size you choose.

Role 3

Temporary Disk

A fast scratch space on the physical host. It is not permanent: its contents can disappear when the VM moves or restarts on new hardware.

The OS disk

The OS disk is where the computer’s brain lives. When the VM boots, it reads the operating system from this disk. Because it is so important, many teams keep the OS disk small and clean, and they never store business data on it. If you ever need to replace the operating system, a clean OS disk makes that job easy.

The data disks

Data disks are extra drives that you attach to the VM. A database server might have one data disk for its main files and another for its logs. Keeping them separate lets you give each disk the performance it needs and protect each in the way that suits it. You can add more data disks later without rebuilding the VM, which is one of the great advantages of the cloud.

The temporary disk

Many VM sizes also include a temporary disk. It sits on the same physical machine as your VM, so it is very fast and, for most sizes, costs nothing extra. The catch is in its name: it is temporary. If the VM is redeployed, resized, or moved because of maintenance, the data on it is lost. Use it only for things you can easily recreate, such as caches or swap files. Some VM sizes have no temporary disk at all.

!
Common Mistake

Saving important files on the temporary disk because it looks like just another drive. When the VM is moved to new hardware, those files are gone and cannot be recovered. Always put real data on a data disk.

3Managed Disks: Azure Does the Heavy Lifting

Managed disks remove the need to look after storage accounts yourself.

In the early days of Azure, a virtual disk was a file saved inside a storage account that you created and watched over yourself. You had to worry about how many disks you put in one account, because the account had performance limits that all its disks shared. If you packed too many in, they slowed each other down. These older disks are called unmanaged disks, and Microsoft has retired them in favor of managed disks.

With managed disks, you only say what kind of disk you want and how big it should be. Azure chooses where to place it, spreads the load, and keeps it healthy. You are never asked to create or count storage accounts for disks. The disk becomes a normal Azure resource, like a VM or a network, which you can tag, secure with permissions, and manage with the same tools you use for everything else.

Simple Analogy

Unmanaged disks were like renting an empty warehouse and arranging every shelf yourself, being careful not to overload any floor. Managed disks are like using a professional storage company: you tell them the size and type of box you need, and they find the right shelf, check the building, and handle the paperwork.

What managed disks give you

Advantages

  • No storage accounts to plan or monitor
  • Strong durability with built-in copies of data
  • Easy resizing, snapshots and backups
  • Works with role-based access control and Azure Policy
  • Supports availability zones for resilience

Disadvantages / Trade-offs

  • You pay for the size you provision, even if the disk is half empty
  • Less low-level control over where data is placed
  • Each disk belongs to one region, so moving it takes planning

4The Five Types of Azure Disks

Azure offers five disk types so that you can match speed and price to your real needs.

Not every job needs the fastest storage. A website that stores a few pictures does not need the same disk as a bank’s transaction database. Azure therefore sells five types, arranged from the most powerful at the top to the most economical at the bottom.

Fastest

Ultra Disk

Built for the most demanding data-heavy workloads, with very low delay and settings you can change while the disk is running.

Flexible

Premium SSD v2

High performance where you choose size, speed and throughput separately, so you pay only for what you need.

Production

Premium SSD

The popular choice for production servers, with steady high performance in fixed size steps.

Everyday

Standard SSD

Consistent, moderate performance for web servers, light applications and development and testing.

Budget

Standard HDD

The cheapest option, suited for backups and data that is rarely used.

Disk TypeBuilt OnBest ForRelative Cost
Ultra DiskSSDLarge databases, heavy transaction systemsHighest
Premium SSD v2SSDDatabases and apps needing tunable speedHigh, but fine-tuned
Premium SSDSSDProduction and business-critical VMsMedium-high
Standard SSDSSDWeb servers, dev and testMedium-low
Standard HDDSpinning hard driveBackups, rarely used dataLowest
i
What do SSD and HDD mean?

An SSD (solid-state drive) stores data on chips with no moving parts, so it is very quick. An HDD (hard disk drive) stores data on spinning metal plates with a moving arm, which is slower but cheaper for each gigabyte.

5How Disk Speed Is Measured

Three numbers describe a disk’s speed: IOPS, throughput and latency.

Before comparing disks, you need to read the numbers on the price list. Beginners often see these words and feel lost, but each one has a simple meaning.

1

IOPS: How many tasks per second

IOPS means input and output operations per second. Each read or write request is one operation. A disk with 5,000 IOPS can handle five thousand small requests every second.

2

Throughput: How much data per second

Throughput, measured in megabytes per second (MB/s), is the total amount of data that moves in a second. It matters most for large files such as video, backups and big data reports.

3

Latency: How long one request waits

Latency is the delay between asking for data and getting it, measured in milliseconds. Lower is better, and it matters when each user action waits on a single disk read.

Simple Analogy

Picture a motorway. IOPS is how many cars pass a point each second. Throughput is how many people are carried in total per second, which depends on whether the cars are small cars or large buses. Latency is how long a single car takes to travel from start to finish. A road can have lots of cars yet still be slow for each one, which is why you need all three numbers.

Two limits at once

A disk has its own limits, and so does the VM it is attached to. Each VM size can only push a certain amount of IOPS and throughput to all its disks combined. If you buy a very fast disk but attach it to a small VM, the VM becomes the bottleneck and you waste money. Always check both numbers together.

!
Common Misconception

Believing that a faster disk always means a faster application. If the VM size, the network or the software itself is the slow part, a better disk will not help. Measure first, then upgrade.

6Ultra Disk and Premium SSD v2: The High-Performance Pair

These two disk types let you tune performance separately from size.

With older disk types, performance came attached to size. If you wanted more speed, you had to buy a bigger disk, even if you did not need the space. Ultra Disk and Premium SSD v2 break that link. You decide the size, the IOPS and the throughput on their own, like choosing the engine and the fuel tank of a car separately.

Ultra Disk

Ultra Disk is the top of the range. It can be as large as 64 TiB (a tebibyte is a little more than a terabyte), and it can reach hundreds of thousands of IOPS and many thousands of MB/s on a single disk, with delay measured in fractions of a millisecond. You can change its speed settings while the VM keeps running. It suits workloads such as large transaction databases, where every millisecond counts. Ultra Disk cannot be used as an OS disk and does not support host caching.

Premium SSD v2

Premium SSD v2 sits just below. Every disk comes with a free baseline of 3,000 IOPS and 125 MB/s, no matter how small it is. If you need more, you raise IOPS and throughput in small steps and pay only for the extra. It can grow to 64 TiB and reach tens of thousands of IOPS. Like Ultra Disk, it is for data disks only and does not support host caching. For many database and application workloads, it offers the best balance of power and price.

When to choose Ultra Disk

A very busy financial system needs the lowest possible delay and huge numbers of transactions per second, and the team wants to raise performance during peak hours without stopping the VM.

When to choose Premium SSD v2

A growing online shop has a database that needs lots of IOPS but only a medium amount of space. Instead of buying a huge disk just for speed, the team keeps the disk small and raises only the IOPS.

i
Good to Know

Both of these types are available only in certain regions and, in many cases, only in specific availability zones. Always check regional support before you design around them.

7Premium SSD, Standard SSD and Standard HDD

These three types come in fixed size steps, and performance grows with the size you pick.

Premium SSD

Premium SSD is the classic production disk. Sizes come in named steps starting with P1 for a few gigabytes and rising through P10, P20, P30 and so on, up to P80 at roughly 32 TiB. Each step has a fixed number of IOPS and throughput, topping out at around 20,000 IOPS and 900 MB/s per disk. Premium SSD is also the type you will most often use for OS disks of important servers. It is the safe, familiar option when you want steady performance without much tuning.

Standard SSD

Standard SSD is made for workloads that need dependable but modest speed. Its sizes follow a similar ladder, named E1 to E80, with limits of up to about 6,000 IOPS and 750 MB/s. Think of web servers, small business applications and development or test machines. It costs less than Premium SSD and is far more consistent than a hard drive.

Standard HDD

Standard HDD uses spinning drives and is named S4 to S80. Its limits reach about 2,000 IOPS and 500 MB/s. Its low price makes it good for backups, archives and data that is read only occasionally. It is not a good home for an application that users wait on, because the delay between requests can vary.

Simple Analogy

Choosing among these three is like choosing a delivery service. Premium SSD is the express courier that always arrives on time. Standard SSD is the reliable regular post. Standard HDD is the slow freight service that is cheap and perfect for things that are not urgent.

FeaturePremium SSDStandard SSDStandard HDD
Size namesP1 to P80E1 to E80S4 to S80
Rough top IOPS20,0006,0002,000
Rough top throughput900 MB/s750 MB/s500 MB/s
Typical useProduction serversWeb, dev and testBackups, cold data
PredictabilityVery highHighModerate
i
Check the Latest Numbers

Azure updates disk limits from time to time. Treat the figures above as a guide for learning, and always confirm exact values in the official Azure documentation before you finalize a design.

8Bursting and Host Caching: Getting Extra Speed

Two features can make a disk feel faster without changing its type.

Bursting

Most servers are not busy all the time. They have quiet periods and short, sudden rushes, such as a computer starting up in the morning. Bursting lets a disk temporarily go faster than its normal limit during those rushes. There are two styles. Credit-based bursting works like a savings account: the disk saves unused speed while it is quiet and spends it during a spike, for a limited time. On-demand bursting is a paid option for larger Premium SSD disks that lets them exceed their normal limits whenever required, and you pay for the extra use.

Simple Analogy

Credit-based bursting is like a phone data plan that lets you carry unused data over. In a quiet month you save it up, and in a busy month you have extra to spend. When the savings run out, you are back to the normal speed.

Host caching

The physical computer that runs your VM, called the host, has its own memory and local drives. Host caching uses part of that fast local space to remember data recently read from or written to a disk. If your application asks for the same data again, it can be served from the nearby cache instead of travelling to the remote disk. There are three settings:

Setting 1

None

No caching. Best for disks that are mostly written to, such as database log files.

Setting 2

ReadOnly

Keeps recent reads in the cache. A good fit for data that is read far more often than it is changed.

Setting 3

ReadWrite

Caches reads and writes. Faster, but a sudden failure could lose recent writes, so use it with care.

!
Be Careful

Turning on ReadWrite caching for a database data disk without understanding how the database handles its writes can risk losing data after a crash. When in doubt, choose ReadOnly or None for data disks.

9Durability and Redundancy: Keeping Data Safe

Azure keeps several copies of every disk so a single hardware failure does not lose your data.

A physical drive can break. Azure plans for this by storing extra copies of your disk’s data. The words you need here are durability, which means how unlikely it is that data is lost forever, and redundancy, which means how many copies exist and where they are kept. Managed disks come in two redundancy options.

Locally redundant storage (LRS)

Three copies of your disk are kept inside a single data center building in one zone. This protects against a failed drive or server rack, and it is the most common and cheapest choice. If the whole building is lost, for example in a major fire or flood, the disk would be affected.

Zone-redundant storage (ZRS)

Copies are spread across three separate availability zones in the same region. An availability zone is a physically separate data center with its own power, cooling and network. With ZRS, even the loss of an entire zone does not lose your disk. It is available for some disk types and costs more than LRS.

flowchart LR
    VM["Virtual Machine"] --> D["Managed Disk"]
    D --> L["LRS: 3 copies in one zone"]
    D --> Z["ZRS: copies across 3 zones"]
    Z --> Z1["Zone 1"]
    Z --> Z2["Zone 2"]
    Z --> Z3["Zone 3"]
        
FIG 1 — Where copies of a managed disk are kept with LRS and ZRS

The diagram shows the VM talking to one disk. Behind that single disk, Azure quietly places the copies according to the redundancy you selected. Your VM never sees this; it simply keeps reading and writing as normal.

i
Redundancy Is Not a Backup

Redundancy protects you from hardware failure. It does not protect you if you delete a file by mistake, if a virus encrypts your data, or if a bad update corrupts it. Those mistakes get copied to every copy too. For that you need snapshots and backups, which we cover soon.

10Encryption and Security for Disks

Azure scrambles your disk data automatically, and you can add stronger layers when rules demand it.

Encryption means turning readable data into scrambled data that can only be read with a secret key. If someone stole a physical drive from a data center, encryption would make its contents useless to them. Azure offers several layers, and understanding each one helps you pass security reviews.

1

Server-side encryption with platform-managed keys

Switched on by default for every managed disk, at no extra cost. Azure creates and looks after the keys, and the data is encrypted when it is written to the storage servers.

2

Server-side encryption with customer-managed keys

You keep the keys in Azure Key Vault and connect them to your disks. This gives you control over rotating or revoking the keys, which many companies need for compliance.

3

Encryption at host

Encrypts data right on the physical host, including the temporary disk and caches, before it travels to storage. This covers gaps that the first two options leave.

4

Azure Disk Encryption

Uses the operating system’s own tools, such as BitLocker on Windows and the DM-Crypt feature on Linux, to encrypt inside the VM, with keys held in Key Vault.

Controlling who can touch a disk

Encryption protects data at rest, but you must also control who can manage the disk. Azure role-based access control lets you give each person only the permissions they need, for example allowing a support engineer to view a disk but not delete it. You can also use private networking options so that disk exports and uploads happen only over private connections instead of the public internet.

i
Best Habit

Use resource locks on important disks. A delete lock stops anyone, even an administrator, from removing the disk by accident until the lock is deliberately removed.

11Snapshots, Backups and Disaster Recovery

Snapshots and backups let you travel back in time, and disaster recovery lets you survive a regional outage.

Snapshots

A snapshot is a read-only picture of a disk at one moment. Think of taking a photo of your wardrobe: you can bring everything back to how it looked in the photo. Azure supports two styles. A full snapshot copies the whole disk. An incremental snapshot stores only the changes since the previous snapshot, which saves a great deal of space and money. Snapshots are not tied to the VM, so you can create a brand-new disk from one at any time, for example to clone a server or to recover from a bad change.

Azure Backup

Snapshots are manual tools. Azure Backup automates the work: you set a schedule and a retention period, such as daily backups kept for thirty days, and the service handles the rest. It is the recommended way to protect production VMs because it keeps recovery points organized and lets you restore a whole VM or a single disk.

Disaster recovery

If an entire Azure region has a serious problem, even backups in that region may be unreachable. Azure Site Recovery continuously copies your VM’s disks to a second region, so you can start the VM there when needed. The plan to follow in such an event is your disaster recovery plan, and it should be tested regularly so that nobody learns how it works in the middle of a crisis.

flowchart TD
    A["Managed Disk in use"] --> B["Snapshot: quick restore point"]
    A --> C["Azure Backup: scheduled restore points"]
    A --> D["Site Recovery: copy in another region"]
    B --> E["Restore to a new disk"]
    C --> F["Restore a disk or a full VM"]
    D --> G["Fail over to the second region"]
        
FIG 2 — Three ways to protect and recover a disk
!
Common Mistake

Taking backups but never testing a restore. A backup that has never been restored is only a hope. Practice restoring on a small scale so you know the steps and the time needed.

12Shared Disks: One Disk, Many Servers

Shared disks let several VMs read and write the same disk at the same time, for clustered applications.

Normally a disk belongs to one VM at a time. A shared disk can be attached to several VMs together. This is important for clusters, which are groups of servers that work as a team so that if one server fails, another takes over immediately. In such a cluster, all the servers need access to the same storage, and a shared disk provides it.

Shared disks do not magically coordinate the servers. The cluster software running on the VMs, such as Windows Server Failover Clustering, must decide which server may write at a given moment. Azure supports this through a standard feature called persistent reservations, which acts like a polite “I am using this right now” sign that servers can place on the disk. Shared disks are available on several disk types, and the number of VMs that can share one disk depends on the disk’s size and type.

Simple Analogy

Imagine two cashiers sharing one cash drawer. It works only if they follow a rule about who may open it at any moment. The shared disk is the drawer, and the cluster software is the rule that keeps the cashiers from colliding.

Typical use: clustered databases and file servers

A company runs two SQL servers in a failover cluster. Both attach to the same shared disk. When the first server stops, the second takes control of the disk and keeps the database running with very little interruption.

13How a Disk Works Behind the Scenes

Your VM and its disk live on different machines and talk to each other over a very fast network.

Here is something that surprises many beginners: the disk is not inside the same machine as your VM. The VM runs on a compute server, while the disk’s data lives on a separate storage cluster. They are joined by a high-speed internal network. When your application asks to read a file, the operating system converts that request into a block request, the host sends it across the network, the storage cluster finds the blocks, and the answer travels back.

This design has big advantages. Because storage is separate, your disk survives even if the compute server fails: Azure can restart your VM on another server and attach the same disk. It also lets Azure keep multiple copies of your data on separate drives.

sequenceDiagram
    participant App as Application
    participant OS as Operating System
    participant Host as Azure Host
    participant Store as Storage Cluster
    App->>OS: Read a file
    OS->>Host: Block request
    Host->>Host: Check host cache
    Host->>Store: Fetch blocks over network
    Store-->>Host: Return data
    Host-->>OS: Deliver blocks
    OS-->>App: File contents
        
FIG 3 — The journey of one read request from the application to the disk

The life of a disk

1

Create

You choose a type, size and region, and Azure provisions the disk. It can be empty, or created from an image or a snapshot.

2

Attach and use

You attach it to a VM, create a file system on it, and your applications start saving data.

3

Protect and grow

You take snapshots, schedule backups, and increase the size or performance as the needs of the workload grow.

4

Detach and delete

When the work is finished, you detach the disk, keep a snapshot if the data matters, and delete the disk so that you stop paying for it.

!
Hidden Cost

Deleting a VM does not always delete its disks. Unattached disks keep existing and keep costing money until you remove them. Review your disks regularly for forgotten ones.

14Choosing the Right Disk for Your Workload

The right choice depends on how important the workload is and how much speed it truly needs.

The most common beginner error is to pick the most expensive disk “to be safe”. The second most common error is the opposite, choosing the cheapest disk for a system that users depend on. A short list of questions will guide you to a sensible answer.

flowchart TD
    S["Start: what is the workload?"] --> Q1{"Is it business critical with very high speed needs?"}
    Q1 -- Yes --> Q2{"Need to change speed live or lowest delay?"}
    Q2 -- Yes --> U["Ultra Disk"]
    Q2 -- No --> P2["Premium SSD v2"]
    Q1 -- No --> Q3{"Is it a production system?"}
    Q3 -- Yes --> P["Premium SSD"]
    Q3 -- No --> Q4{"Is it accessed often?"}
    Q4 -- Yes --> SS["Standard SSD"]
    Q4 -- No --> H["Standard HDD"]
        
FIG 4 — A simple decision path for choosing a disk type

Matching disks to common workloads

WorkloadSuggested DiskWhy
Large transactional databaseUltra Disk or Premium SSD v2Needs high IOPS and low delay
Medium production databasePremium SSD v2 or Premium SSDSteady speed with flexible tuning
Application serverPremium SSDReliable performance for users
Web server or test machineStandard SSDGood enough and cheaper
Backup and archive storageStandard HDDLowest price per gigabyte
i
Split Your Disks

Use different disks for different jobs on the same VM. A database often performs best when data files and log files sit on separate disks, each with the caching and speed settings that suit it.

15Understanding the Cost of Disks

You are billed for what you provision, so smart sizing is the biggest money saver.

Disk pricing follows a few simple ideas. For Premium SSD and Standard SSD, you pay a fixed monthly price for the size step you chose, such as P10 or E20, whether the disk is empty or full. If you need 100 GiB, you are billed for the next size step that fits it. Standard disks may also add a small charge per batch of read and write operations. For Premium SSD v2 and Ultra Disk, the bill has several parts: you pay for the capacity, and separately for the IOPS and throughput you configured above the free baseline.

Snapshots, backups, extra redundancy such as ZRS, and moving data between regions all add to the bill as well. None of these are large on their own, but together they can surprise a team that did not plan for them.

Saver 1

Right-size

Look at actual usage and shrink your plans to match, rather than guessing high.

Saver 2

Delete the forgotten

Remove unattached disks and old snapshots that nobody needs.

Saver 3

Use incremental snapshots

They store only changes, so keeping many restore points costs far less.

Saver 4

Tune, don’t oversize

On Premium SSD v2, raise only the IOPS you need instead of buying capacity you will never fill.

Size
fixed step billing for most disk types
IOPS
billed separately on the flexible types
Extras
snapshots, backups and zones add up

Watching a few key numbers will warn you about trouble long before users complain.

A disk that is quietly running out of speed or space can slow down a whole application. Azure Monitor collects metrics about your disks and VMs, and you can draw charts or set alerts on them. A metric is simply a number measured over time. Here are the ones that matter most for beginners.

Metric

IOPS consumed percentage

Shows how close the disk is to its operation limit. A figure near the top means requests are being held back.

Metric

Throughput consumed percentage

Shows how close the disk is to its data-per-second limit, which matters for large file work.

Metric

Queue depth

The number of requests waiting in line. A long queue means the disk cannot keep up.

Metric

Free space

Measured from inside the operating system. A full disk can stop an application suddenly.

Set alerts at sensible thresholds, such as eighty percent of the limit, so that you have time to react. Also remember the VM-level limits we discussed earlier: a VM can be capped even when the disk itself looks relaxed. Good monitoring looks at both.

i
Habit Worth Building

Review disk charts after every major release or traffic event. Changes in user behavior often show up first as a change in disk activity.

17Best Practices and Mistakes to Avoid

Learn from the mistakes that many teams make so that you do not have to repeat them.

1

Keep the OS disk for the OS only

Put applications and data on separate data disks so you can resize, back up and replace each part on its own.

2

Plan for zones

For important systems, place VMs and disks in availability zones, and choose ZRS where the disk type supports it.

3

Automate protection

Use Azure Backup with a clear schedule and retention rule instead of relying on people to remember snapshots.

4

Tag everything

Add tags such as owner, project and environment so forgotten disks can be traced and cleaned up.

5

Test your recovery

Practice restoring from backups and failing over to a second region before you ever need to do it for real.

ANTI-PATTERN-01 Avoid
Problem

A team stores an important database on the temporary disk of a VM because it is fast and free.

Why It’s Harmful

The temporary disk is wiped when the VM moves to new hardware, so the database can disappear without warning.

Correct Approach

Keep the database on a managed data disk with backups, and use the temporary disk only for caches and scratch files.

ANTI-PATTERN-02 Avoid
Problem

A team buys the biggest, fastest disk for every server without measuring real needs.

Why It’s Harmful

Money is wasted every month, and the VM size may still limit the speed so there is no benefit at all.

Correct Approach

Measure real IOPS and throughput, pick the smallest disk type that comfortably meets them, and review the choice regularly.

ANTI-PATTERN-03 Avoid
Problem

A team treats ZRS or LRS redundancy as if it were a backup.

Why It’s Harmful

Accidental deletes, corruption and malicious changes are copied across all replicas, leaving nothing to restore from.

Correct Approach

Combine redundancy with scheduled backups and, for critical systems, cross-region disaster recovery.

18Real-World Examples

Seeing how disks fit real projects makes the choices easier to remember.

A small company website

A bakery runs its website on one VM. It uses a Standard SSD for the OS disk and a small Standard SSD for website files. Daily backups run through Azure Backup. The cost is low, and the performance is more than enough for a few hundred visitors a day.

An online retail platform

A shop expecting heavy traffic on sale days uses Premium SSD for application servers and Premium SSD v2 for its database. Before a big sale, the team raises the database’s IOPS for a few days, then lowers it afterwards, paying for extra speed only when it is needed.

A financial trading system

A trading firm needs the least possible delay and huge transaction counts. It chooses Ultra Disk for the main database, places VMs across availability zones, and uses cross-region replication for disaster recovery.

A clustered file service

A hospital runs a failover cluster for an internal records application. Two VMs share a disk so that if one server fails during the night, the other takes over before staff notice.

A development and test environment

A software team creates many short-lived VMs. They use Standard SSD, tag every disk with the project name, and run a monthly cleanup to delete unattached disks, which keeps the testing bill small.

“Pay for the performance you need, protect the data you cannot lose, and delete what you no longer use.”

19Frequently Asked Questions

Q1What is the difference between Azure disks, Azure Blob Storage and Azure Files?

Azure disks are block storage attached to virtual machines, like a drive inside a computer. Blob Storage keeps whole files as objects reachable over the web, and Azure Files provides shared folders that many computers can open at once. Pick the one that matches how your application reads its data.

Q2Can I change a disk’s type after I create it?

In many cases yes. You can often switch between supported disk types, for example from Standard SSD to Premium SSD, usually after stopping or deallocating the VM. Some types, such as Ultra Disk and Premium SSD v2, have special rules, so check the official guidance first.

Q3Can I make a disk bigger later?

Yes, you can increase a disk’s size, but you cannot shrink it. After growing the disk in Azure, you also need to extend the partition and file system inside the operating system. Because shrinking is impossible, avoid starting with a size far bigger than needed.

Q4What happens to my data if the VM is deleted?

That depends on the delete settings chosen when the disk was attached. Disks can be kept or deleted along with the VM. Always check this setting for disks that hold important data, and keep a snapshot before deleting anything.

Q5How many disks can I attach to one VM?

The limit is set by the VM size. Larger VM sizes allow more data disks and also higher combined IOPS and throughput. Check your VM size’s specifications before planning a design with many disks.

Q6Is my disk data encrypted by default?

Yes. Every managed disk is encrypted at rest using platform-managed keys without any action on your part. You can add customer-managed keys, encryption at host, or Azure Disk Encryption if your company’s rules require more control.

Q7Are snapshots the same as backups?

Not exactly. A snapshot is a single point-in-time copy that you create and manage yourself. Azure Backup is a managed service that automates schedules, retention and restores. For production systems, backups are the more complete protection.

Q8Do I need a premium disk for a test environment?

Usually not. Standard SSD is normally sufficient for development and test work, unless you are specifically testing performance against production-like conditions.

20Summary and Key Takeaways

Azure disk storage is the foundation under almost every virtual machine you will ever run. It stores the operating system, your applications and your data as blocks, managed for you by Azure so you do not have to worry about the hardware beneath. You now know the three disk roles, the five disk types from Ultra Disk down to Standard HDD, and the three numbers that describe speed. You have also seen how bursting and caching add speed, how LRS and ZRS protect against failure, how encryption keeps data private, and how snapshots, backups and Site Recovery let you recover from mistakes and outages.

The best disk strategy is never about buying the most powerful option. It is about understanding your workload, choosing the smallest suitable disk type, protecting data with real backups, and cleaning up what you no longer need. With these habits, you will build storage that is fast enough, safe enough and affordable.

Key Takeaways

  • Disks are block storage for VMs — every VM has an OS disk, may have data disks, and may have a temporary disk that is not permanent.
  • Use managed disks — Azure handles placement, durability and health, so you focus on size and type.
  • Pick the type by workload — Ultra Disk and Premium SSD v2 for demanding databases, Premium SSD for production, Standard SSD for everyday use, Standard HDD for cold data.
  • Read IOPS, throughput and latency together — and remember that the VM size has limits of its own.
  • Redundancy is not a backup — combine LRS or ZRS with Azure Backup and, when needed, Site Recovery.
  • Encryption is on by default — add customer-managed keys or host encryption when rules require them.
  • Control cost by sizing and cleaning — right-size disks, remove unattached ones, and prefer incremental snapshots.