Configure Azure Files and Azure Blob Storage (AZ-104)
Azure Files and Azure Blob Storage are the two data services you configure most as an Azure administrator, and the AZ-104 exam tests the practical settings that keep data available, recoverable, and cheap. Azure Files gives you fully managed SMB and NFS file shares you can mount from Windows, Linux, and macOS, protect with share snapshots and soft delete, and extend to on-premises servers with Azure File Sync and cloud tiering. Azure Blob Storage gives you containers of block, append, and page blobs, a public access level you set per container, and access tiers — hot, cool, cold, and archive — that trade retrieval speed for lower storage cost. This lesson shows you how to create and configure a file share and a container, choose the right storage tier (and why archive data must be rehydrated before you can read it), turn on soft delete and blob versioning to survive accidental deletion and overwrites, and write blob lifecycle management rules that move and delete data automatically as it ages.
On this page8 sections
- Azure Files versus Azure Blob Storage: what each is for
- Create and configure a file share in Azure Files
- Snapshots and soft delete for Azure Files
- Azure File Sync: extend file shares to on-premises servers
- Create and configure a container in Azure Blob Storage
- Storage access tiers and rehydrating archived blobs
- Soft delete and blob versioning
- Blob lifecycle management and a real scenario
- Create and configure an Azure Files SMB or NFS share with a quota and mount it from a client
- Protect file shares with share snapshots and soft delete, and sync on-premises servers with Azure File Sync
- Create a blob container and set its public access level to private, blob, or container
- Choose between the hot, cool, cold, and archive access tiers and rehydrate archived blobs
- Enable soft delete for blobs and containers and turn on blob versioning to keep previous versions
- Author blob lifecycle management rules that transition blobs to cooler tiers and delete them over time
Azure Files versus Azure Blob Storage: what each is for
Azure Files and Azure Blob Storage are two services inside a storage account, and choosing the right one is the first decision the exam tests. Azure Files provides fully managed file shares that behave like a traditional network drive: they expose the SMB and NFS protocols, present a folder hierarchy, and can be mounted with a drive letter or mount point by many clients at once. Choose Azure Files when applications or users need a shared file system they can lift and shift without rewriting, or when you want to replace an on-premises file server.
Azure Blob Storage is object storage built for massive amounts of unstructured data — images, video, backups, logs, and documents — addressed over HTTP(S) rather than a file-share protocol. Data lives in containers (similar to top-level folders) as blobs, and blobs come in three types: block blobs for most files and streaming content, append blobs optimized for logging where you only add to the end, and page blobs that back Azure virtual machine disks. Choose Blob Storage for scalable object data, static website content, and archival.
Both services live in the same storage account, so they share its name, redundancy, and access keys — but their features differ. Files has share snapshots and Azure File Sync; Blob has access tiers, versioning, and lifecycle management. Knowing which feature belongs to which service is a recurring exam theme, so keep the two mental models distinct as you read the rest of this lesson.
Snapshots and soft delete for Azure Files
Azure Files gives you two independent layers of data protection. A share snapshot is a read-only, point-in-time copy of an entire file share. You take one from File shares > the share > Snapshots > + Add snapshot, and snapshots are incremental — each stores only the blocks that changed since the previous one, so they are storage-efficient. When a user deletes or corrupts a file, you browse the relevant snapshot and restore just that file, or you restore the whole share. On Windows clients, snapshots surface through the familiar Previous Versions tab, letting users self-serve recovery.
Soft delete for Azure Files protects against deleting the entire share. When enabled at the storage-account level, a deleted file share is not removed immediately but retained for a retention period you set (from 1 to 365 days), during which you can restore it in full. Without soft delete, deleting a share is permanent and unrecoverable — with it, an accidental deletion is a quick undo within the window.
The two features solve different problems: snapshots recover individual files and folders to an earlier state, while soft delete recovers a whole share you deleted. Together they cover both accidental file edits and accidental share deletion. For the exam, remember that share snapshots are incremental point-in-time copies and that soft delete for Azure Files is a share-level recycle bin with a configurable retention window.
Create and configure a container in Azure Blob Storage
Blobs live in containers, which you create under Data storage > Containers > + Container. You give the container a name and, critically, set its public access level, which controls whether anonymous callers can read its contents without a credential. There are three levels, and choosing the right one is a frequent exam and security question.
| Access level | Who can read anonymously | Typical use |
|---|---|---|
| Private (no anonymous access) | Nobody — every request needs a key, SAS, or Entra identity | The secure default for business data |
| Blob | Anonymous read of individual blobs by direct URL, but the container cannot be listed | Public downloads where you share exact URLs |
| Container | Anonymous read and list of every blob in the container | Fully public content such as a static website |
Anonymous access only works if the storage account also permits it — a modern account has Allow Blob anonymous access disabled by default, which overrides any container setting until an administrator turns it on. Keep containers private unless there is a clear reason to publish, and use SAS tokens (covered in the access-control topic) for scoped, temporary sharing instead of opening a container.
You do not choose the blob type when you create the container; the type — block, append, or page — is determined when each blob is uploaded. For the exam, know that private requires a credential for every read, blob allows anonymous read of known blob URLs, and container additionally allows anonymous listing.
Storage access tiers and rehydrating archived blobs
Azure Blob Storage lets you match cost to how often data is read by choosing an access tier. Tiers trade storage cost against access cost and retrieval latency: hotter tiers cost more to store but less to read and are instantly available, while cooler tiers cost less to store but charge more per read and impose minimum retention periods and, for archive, a wait before you can read at all.
| Tier | Best for | Storage cost | Access cost | Availability / retrieval | Min. retention |
|---|---|---|---|---|---|
| Hot | Data accessed frequently | Highest | Lowest | Online — instant | None |
| Cool | Infrequently accessed, kept 30+ days | Lower | Higher | Online — instant | 30 days |
| Cold | Rarely accessed, kept 90+ days | Lower still | Higher still | Online — instant | 90 days |
| Archive | Rarely accessed, long-term retention | Lowest | Highest | Offline — must rehydrate first | 180 days |
The critical distinction is that hot, cool, and cold are all online tiers you can read immediately, whereas archive is offline: the blob's data is not readable until you rehydrate it. You can set the tier at two scopes — a default account-level tier (hot or cool) that new blobs inherit, and a per-blob tier you set explicitly, including cold and archive, which are only settable per blob or by a lifecycle rule. On the exam, wording like rarely accessed, must rehydrate before reading is the archive tier, while removing a blob from a cool or cold tier before its minimum retention period incurs an early-deletion charge.
Rehydrating archived blobs
Because the archive tier stores data offline, you cannot read, copy, snapshot, or overwrite an archived blob directly — attempting to read it fails. To bring it back online you must rehydrate it, and rehydration is not instantaneous, which is the single most important operational fact about archive. There are two ways to do it: change the blob's tier from archive to an online tier (hot, cool, or cold), which rehydrates it in place; or copy the archived blob to a new blob in an online tier, leaving the original in archive. Either way you choose a rehydration priority — Standard, which can take up to about 15 hours, or High, which is faster (often under an hour for smaller blobs) but costs more.
A practical example: a compliance team asks for a report archived two years ago. You submit a rehydration by setting the blob's access tier to hot with Standard priority, wait for the operation to complete, then download it. If they needed it within the hour, you would pay for High priority instead. The lesson administrators must internalize is that archive is cheap to store but slow to read, so reserve it for data you are confident you will rarely, if ever, need quickly — backups you must retain for years, not files you might open next week.
Soft delete and blob versioning
Two account-level features protect blob data from mistakes, and the exam expects you to tell them apart. Soft delete is a recycle bin: when enabled, a deleted blob (or an overwritten one) is retained for a retention period you configure — typically 1 to 365 days — during which you can undelete it and recover the data. There are two flavors: blob soft delete recovers individual deleted blobs, and container soft delete recovers a whole deleted container. Enable both to survive both an accidental blob deletion and an accidental container deletion. Once the retention window passes, the data is permanently gone.
Blob versioning solves a related but different problem: keeping history when a blob is overwritten. With versioning on, every time you modify or overwrite a blob, Azure automatically preserves the previous state as a version with its own version ID, and the newest write becomes the current version. You can list every version of a blob and restore or read any earlier one, giving you a full change history without managing it yourself. Versioning also works hand-in-hand with lifecycle management, which can clean up old versions on a schedule.
For the exam, keep the trigger words straight: recover accidentally deleted blobs means soft delete, while automatically keep previous versions on overwrite means blob versioning. They are complementary — soft delete undoes deletions, versioning undoes overwrites — and administrators typically enable both together on important data.
Blob lifecycle management and a real scenario
Blob lifecycle management is the automation you configure so blobs move to cheaper tiers and eventually delete themselves without anyone touching them. You author a policy made of rules; each rule targets a set of blobs (by container prefix or blob index tags) and defines actions that fire based on age — days since the blob was last modified or last accessed. Available actions include tierToCool, tierToCold, tierToArchive, and delete, and rules can also manage previous versions and snapshots separately from current blobs. Lifecycle management is the exam answer whenever a scenario asks to automatically move blobs to cooler tiers over time or purge stale data on a schedule.
Concrete scenario. Your team stores log files that are read heavily for a month, occasionally for a quarter, rarely after that, and must be kept one year for compliance. You create a single lifecycle rule on the logs container: after 30 days since last modification, tier to cool; after 90 days, tier to archive; after 365 days, delete. Azure evaluates the policy once per day and applies each action as blobs cross those age thresholds — no scripts, no scheduled jobs, and the cost drops automatically as data cools.
To make that pipeline safe against mistakes, you pair it with the recovery features from the previous section: enable blob soft delete and container soft delete (say a 30-day window) so an accidental deletion is recoverable, and turn on blob versioning so an overwrite never loses the prior copy. The lifecycle policy handles cost over time; soft delete and versioning handle human error. For the exam, that combination — lifecycle rules for tiering and cleanup, soft delete and versioning for accidental-deletion protection — is the model configuration for managing blob data at scale.
Tip. Expect scenario questions that reward matching the trigger words to the feature. "Rarely accessed and must rehydrate before reading" is the archive tier; "automatically move blobs to cooler tiers over time" is blob lifecycle management; "recover accidentally deleted blobs" is soft delete; "keep previous versions on overwrite" is blob versioning; and "sync an on-premises file server to Azure" is Azure File Sync. You may also be asked to pick a container public access level (private, blob, or container) or read a three-step lifecycle rule.
- Azure Files provides managed SMB and NFS file shares you mount like a network drive; Azure Blob Storage provides containers of block, append, and page blobs for object data.
- Create a file share with a protocol and quota, mount SMB over port 445, and use a premium FileStorage account for NFS or low-latency workloads.
- Protect Azure Files with incremental share snapshots (recover individual files) and soft delete (recover a whole deleted share within a 1–365 day retention window).
- Azure File Sync keeps an on-premises Windows Server in sync with an Azure file share, and cloud tiering caches hot files locally while tiering cold files to Azure.
- A blob container's public access level is private (credential required), blob (anonymous read of known URLs), or container (anonymous read and list) — keep it private by default.
- Hot, cool, and cold are online tiers read instantly; archive is offline and cheapest to store but must be rehydrated (Standard up to ~15 hours, or High) before you can read it.
- Soft delete recovers accidentally deleted blobs and containers within a retention window; blob versioning automatically keeps previous versions when a blob is overwritten.
- Blob lifecycle management rules act on blob age to auto-transition to cooler tiers and delete data — e.g. cool at 30 days, archive at 90, delete at 365.
Frequently asked questions
What is the difference between the cool and archive storage tiers in Azure Blob Storage?
Both cool and archive are for data you access infrequently, but the cool tier is online and readable instantly, whereas the archive tier is offline. Cool costs less to store than hot and suits data kept at least 30 days that you may still need on demand. Archive is the cheapest storage tier and is meant for long-term retention with a 180-day minimum, but you cannot read an archived blob directly — you must first rehydrate it, which can take up to about 15 hours at Standard priority. Choose cool for occasionally accessed data and archive only for data you are confident you will rarely need quickly.
What is blob lifecycle management?
Blob lifecycle management is a policy of rules that automatically transitions blobs to cooler access tiers or deletes them based on their age. Each rule targets blobs by container prefix or index tag and runs actions — tier to cool, tier to cold, tier to archive, or delete — when a blob reaches a set number of days since it was last modified or accessed. For example, a single rule can move log files to cool after 30 days, to archive after 90 days, and delete them after 365 days. Azure evaluates the policy once a day, so cost drops as data ages without any scripts or scheduled jobs.
How do I recover an accidentally deleted blob in Azure?
Enable soft delete for blobs on the storage account. Soft delete acts as a recycle bin: a deleted or overwritten blob is retained for the retention period you set (from 1 to 365 days), during which you can undelete it and recover the data. Turn on container soft delete as well to recover an entire deleted container. If the retention window has already passed, the data is permanently gone, so set a retention period long enough to catch mistakes. Pair soft delete with blob versioning to also protect against unwanted overwrites.
What is the difference between soft delete and blob versioning?
Soft delete and blob versioning are complementary protections. Soft delete undoes deletions — when a blob or container is deleted, it is retained for a configurable window so you can undelete it. Blob versioning undoes overwrites — every time you modify or overwrite a blob, Azure automatically saves the previous state as a distinct version you can list and restore. Soft delete protects against losing data you deleted; versioning protects against losing data you overwrote. On important data, administrators commonly enable both together.
What is Azure File Sync and when should I use it?
Azure File Sync keeps an Azure file share synchronized with one or more on-premises Windows Servers so each server acts as a fast local cache of a share hosted in the cloud. You use it to centralize or back up on-premises file servers, or to give branch offices local-speed access to shared files. Its cloud tiering feature keeps frequently used files on the local server while moving cold files up to Azure and leaving a pointer behind, so a small server disk can front a much larger share. Use it whenever a scenario asks to sync an on-premises file server to an Azure file share.
What is a share snapshot in Azure Files?
A share snapshot is a read-only, point-in-time copy of an entire Azure file share. Snapshots are incremental, so each one stores only the blocks that changed since the previous snapshot, keeping them storage-efficient. If a file is deleted or corrupted, you browse the relevant snapshot and restore just that file, or restore the whole share. On Windows clients, snapshots appear in the Previous Versions tab so users can recover files themselves. Snapshots recover individual files to an earlier state, while soft delete recovers a whole share that was deleted.
Sign up free to mark lessons complete, bookmark topics and track your exam readiness.