Skip to main content
JOELEARNs / AZ-104 / PHASE 02 / COURSE

Azure Storage. Built for failure.

Storage isn't just where data lives. Configure secure Blob access, repair a lifecycle policy, troubleshoot Azure Files identity/ACLs, and explore what actually survives a failure.

02 / Implement & Manage Storage11 substantive sections5 interactive workbenchesNo Azure account required
00 / THE OBJECTIVE

Don't mistake durability for recoverability.

Implement and manage Azure Storage (15–20% of AZ-104). This lesson expands the official objectives into operational decisions: access, account configuration, Blob and Azure Files, replication and data protection.

  • Choose a storage service and account configuration from application needs.
  • Predict LRS/ZRS/GRS/GZRS behavior and explain geo-replication lag.
  • Separate storage firewall/network reachability from SAS, keys and identity-based data permissions.
  • Configure and validate a read-only Blob SAS, a lifecycle policy with previous-version recovery, and Azure Files SMB share/ACL access.
  • Compare access tiers, lifecycle actions, object replication, soft delete, versioning and file-share snapshots.
  • Recognize recoverability limits, choose tools for data movement and explain verification after change.
How to use this lesson: Read the worked explanations, predict each answer, explore the redundancy model, then complete four account-free configuration Build Labs and five *new* incidents in Phase 02 Practice. The graded incidents do not repeat these guided examples.
01 / CHOOSE THE RIGHT STORAGE SERVICE

Storage is more than capacity

Azure Storage describes several service models. A storage account can provide blob, file, queue and table endpoints when supported by its account type. Azure managed disks serve VM block storage, but should not be confused with Blob Storage containers or Azure Files shares. Start by asking what the application expects to consume, not how many terabytes it needs.

Blob Storage · object data

Azure Blob Storage holds objects in containers, accessed through HTTPS/SDK/API or supported tooling. Useful for logs, artifacts and unstructured content, but not a drop-in SMB file server.

Azure Files · managed shares

Expose managed SMB/NFS file shares subject to service, protocol and account configuration. Plan identity-based access and share-level plus file permissions where applicable.

Managed disks · VM block devices

A VM uses managed disks as block storage. Disk snapshots and the VM backup/recovery process are different from Blob versioning or Azure Files share snapshots.

Queue and Table

Queues enable asynchronous messaging; Table Storage provides key-based NoSQL data. Their access patterns and capabilities differ from Blob and Files.

Northstar example: Northstar migrates three assets: HTTPS application logs, a shared operations folder accessed over SMB, and VM OS disks. One generic storage solution is not sufficient for all three.
Would a Blob container automatically provide a Windows SMB file share? Reveal the explanation

No. Azure Files is the storage service for managed file shares. Blob Storage exposes object data and different access semantics.

02 / THE ACCOUNT DEFINES THE BOUNDARY

Create and configure a storage account intentionally

Before creating an account, check resource group, region, performance tier, storage account type, redundancy, network access, security defaults and naming. Standard general-purpose v2 (StorageV2) supports common Blob and File workloads. Specialized premium accounts have different service and redundancy support. A storage account name must be globally unique across Azure; choose a fictional name in the exercise without creating real infrastructure.

Endpoint and account type

A StorageV2 account may expose endpoints such as <account>.blob.core.windows.net and <account>.file.core.windows.net. Account type controls available services and feature combinations.

Region and replication

An account's primary region and redundancy choice define where replicas are kept. Support for converting redundancy and using specific options depends on type, service and region.

Secure defaults

Azure Storage encryption at rest is enabled by default with Microsoft-managed keys; supported accounts can use customer-managed keys backed by Key Vault or Managed HSM. Also require secure transfer/HTTPS, appropriate TLS settings, deliberate network exposure and data-plane authorization.

Operational baseline

Record ownership, tags, resource locks, diagnostic settings, cost scope, expected capacity and backup/recovery needs. 'Created successfully' is not a complete readiness check.

Northstar example: Northstar is deploying a shared service in eastus. An operator chooses an LRS account because its price is lower, then assumes the selection also protects against loss of the whole region.
Why is a storage account's redundancy setting a design decision rather than a cosmetic deployment preference? Reveal the explanation

It determines replica placement and disaster exposure. LRS protects against local hardware failures but does not replicate to another region.

03 / REDUNDANCY IS NOT RECOVERY

Trace LRS, ZRS, GRS and GZRS

Redundancy describes replica placement, not an automatic guarantee that an application can continue unchanged during every outage. LRS replicates within one physical location. ZRS synchronously spans availability zones. GRS replicates from a primary LRS configuration asynchronously to a secondary region. GZRS combines primary-region ZRS with asynchronous cross-region replication. Read-access variants expose a secondary read endpoint for supported services; they do not make it writable before failover.

LRS: hardware resilience

Three synchronous copies in one physical location. It is appropriate for some workloads, but it has no zone or secondary-region disaster tolerance.

ZRS: primary-region zone continuity

Synchronous replication across multiple availability zones in a region. Zone resilience is not protection from loss of the entire region.

GRS / RA-GRS: geographical durability

LRS primary plus asynchronous LRS secondary. RA-GRS adds pre-failover read access to the secondary endpoint for supported services. Replication lag means data loss is possible.

GZRS / RA-GZRS: zonal + geographical

ZRS primary plus asynchronous LRS secondary. RA-GZRS adds a secondary read endpoint. Availability and account/service support must be verified.

Northstar example: Northstar's team wants a storage account that handles a primary-zone outage and retains a secondary-region copy. The design may favor GZRS; if read-only secondary access is also required for a supported blob workload, evaluate RA-GZRS.
Does GRS guarantee that the latest write has already arrived at the secondary region? Reveal the explanation

No. Cross-region replication is asynchronous, so last-sync status and potential data loss must be considered before failover.

04 / EXPLORE THE FAILURE DOMAIN

Compare replica locations against an actual incident

Change the failure type instead of treating every redundancy acronym as a bigger version of LRS. A zone outage, region outage and accidental deletion have different root causes and recovery paths.

Region outage

Geo redundancy maintains a secondary copy; GRS/GZRS normally require failover for access if the primary is unavailable. RA modes enable secondary reads where supported, but no normal writes.

Accidental deletion

Replication can carry a valid delete operation. Use soft delete, versioning, snapshots, immutable retention or backup as appropriate to the service and event.

Northstar example: The operations report says, 'The storage account is geo-redundant, so all our data will always be available and unchanged.' Validate this statement with both a region outage and a deleted blob.
INTERACTIVE / STORAGE DESIGN REVIEW

Which failure does this configuration actually survive?

Choose a workload, redundancy, and failure. Inspect the resulting evidence, then challenge the assumptions. No Azure storage is created.

CONFIGURATION / GZRS
Zonal replicasAsynchronous secondary regionNo direct secondary read

ZRS in the primary region; asynchronous replication to an LRS secondary.

Primary-region zonal resilience

ZRS-backed configurations synchronously replicate across availability zones, so the storage service is designed to continue access through a zone outage.

Next evidence: Verify client connectivity, endpoints, and actual operations. Zonal resilience does not eliminate application dependencies.
Try these edge cases before moving on
  1. Switch from ZRS to GRS while a zone is unavailable. Does a secondary copy guarantee uninterrupted primary-region reads?
  2. Choose GZRS during a region outage, then switch to RA-GZRS. What changes before any failover?
  3. Select accidental deletion while keeping geo redundancy. What protects the content now?
  4. Choose Azure Files. Why are read-access geo modes unavailable in this model?

Teaching model, not a live SLA test. Availability, failover eligibility, replication lag, service/type/region support and recovery controls vary. Azure Files does not support RA-GRS/RA-GZRS; blob access tiers and archive support depend on redundancy/account type. For region-wide disasters, investigate last-sync time and potential data loss.

What additional evidence is essential before claiming recovery success after a geo-region failover? Reveal the explanation

Check account failover eligibility, last-sync/replication status, DNS and client behavior, the recovered data set and the acceptable data-loss/recovery objectives.

05 / NETWORK RULES ARE INDEPENDENT OF RBAC

Control where storage can be reached

Azure Storage firewalls, selected virtual networks and private connectivity govern network reachability; Azure RBAC and data-plane authentication govern authorization. Allowing a subnet does not grant a user read rights. Conversely, a perfectly valid SAS or data role does not bypass a storage firewall rule. Understand supported trusted-service exceptions, firewall scope and private endpoint DNS before changing network controls.

Public access and firewall

A storage account can be configured to allow selected networks or disable public network access. 'Public endpoint exists' is not the same thing as 'anonymous blob access is allowed'.

Service endpoints

Supported virtual-network service endpoints can allow a selected subnet to access the storage public service endpoint using Azure backbone paths, with matching storage network rules.

Private endpoints

A private endpoint provides a private IP-based connection to a specific storage subresource. Client DNS must resolve the intended endpoint correctly; Blob and File endpoints differ.

Confirm both gates

For a 403, inspect request path, network policy, identity, data role or SAS scope, expiration and operation. Avoid disabling the firewall as a first reaction.

Northstar example: A backup process previously connected to a storage account using a public endpoint. After private endpoint rollout, some clients still resolve the public IP. A valid identity token alone cannot fix incorrect endpoint DNS and path selection.
If a service principal is assigned Storage Blob Data Contributor, can it ignore a storage account firewall? Reveal the explanation

No. Authentication/authorization and network reachability are separate controls; the client still needs an allowed network path.

06 / A TOKEN HAS LIMITS

Choose Entra roles, SAS, stored access policies and keys

For identity-aware access, prefer Microsoft Entra and narrowly scoped Azure roles when feasible. Shared access signatures (SAS) delegate specific capabilities and often include time and permission constraints; possession of a valid SAS is authorization, so treat it as a secret. Account keys grant expansive authority and require protection and rotation. Stored access policies apply to service SAS where supported, not every SAS type.

Azure roles for data access

Storage Blob Data Reader and related data roles authorize specific blob data actions at assigned scopes. Management-plane Reader does not itself grant blob content reads.

User-delegation SAS

A user-delegation SAS for Blob Storage is authorized by Microsoft Entra credentials, reducing reliance on account keys. Scope expiry and operation permissions deliberately.

Service SAS and stored policies

A service SAS may reference a stored access policy for supported Blob/File/Queue/Table resources to help manage permission/expiry and revoke access. An account SAS and user-delegation SAS do not use stored access policies in the same way.

Account keys

Keys can authorize broad access, including generation of signed requests. Prefer least privilege, secure storage and key rotation; avoid emailing keys to fix an application issue.

Northstar example: A third-party downloader only needs short-lived read access to one report container, but the team proposes sending the storage account key. Design a narrower alternative and confirm storage network restrictions still permit the downloader.
Can a stored access policy revoke every account SAS or user-delegation SAS? Reveal the explanation

No. Stored access policy associations are for supported service SAS patterns. Do not assume account SAS or user-delegation SAS can be revoked through a stored access policy.

BUILD LAB 01 / AZ-104 STORAGE

Issue a least-privilege Blob download

Northstar needs to provide a single confidential report to an approved vendor for 30 minutes. Design access without exposing the storage account key or opening the whole container.

NS-STO-018 / Limited download

Approved resource: reports/2026-11/vendor-summary.csv. The issuer is allowed to create a user-delegation key and read the report. Storage is reachable only through the approved client network path.

Choose or edit the configuration, then select Validate. Nothing is deployed or connected to Azure.

Why not just share an account key?

Microsoft recommends Entra identity-based access and a user-delegation SAS when SAS is needed. Shared Key access can be disabled for Blob requests, but doing so affects other key-based consumers and must be evaluated before rollout. A valid SAS does not bypass storage firewall rules, and the SAS itself is a bearer secret.

Microsoft: SAS types and safe delegation ↗Microsoft: Shared Key restrictions ↗

Educational simulation: selected settings and JSON structure are checked locally. This does not generate real SAS tokens, configure Azure RBAC/NTFS ACLs, execute lifecycle policies, or prove access to live Azure resources. Verify permissions, service capabilities, client connectivity, costs, and restore behavior in an authorized test tenant.

BUILD LAB 04 / AZ-104 CONFIGURATION

Configure and revoke a service SAS stored access policy

Set the container, signed identifier, read-only permissions and expiry, then test the revocation process without weakening network security.

NORTHSTAR / CHANGE REQUEST A vendor needs temporary read access to one blob in the reports container. The storage account permits the authorized Shared Key signed service SAS method. The token must be revocable without rotating broad account credentials.

Select a configuration and validate it. Incorrect choices reveal the missing control.

Reveal an approved operator workflow and documentation

Service SAS can reference a container-level signed identifier. User-delegation SAS and account SAS do not use this stored policy mechanism. A container can have at most five signed identifiers. For a specific blob, the issued service SAS should also limit the blob resource and carry the policy identifier.

# Illustrative operator steps; use UTC times and an authorized account.
# Set/create container stored policy with ID report-read and read-only scope.
az storage container policy create --account-name ACCOUNT --container-name reports --name report-read --permissions r --start UTC-START --expiry UTC-EXPIRY --auth-mode key
# Then create a SERVICE SAS for the exact blob using --policy-name report-read.
# Test allowed GET, denied write, and after approved stored-policy deletion, denied GET.

Policy changes can take about 30 seconds to propagate. A service SAS relying on Shared Key may be inappropriate when the storage account disables Shared Key access; choose another approved delegation architecture rather than opening the account.

Browser-only educational scenario; these selections and commands do not contact Azure, access accounts or validate live RBAC, identity, recovery points or network paths. Examples use fictional Northstar assets and must be verified against current Microsoft guidance in an authorized environment before use.

07 / OBJECT ACCESS PATTERNS

Configure Blob containers and lifecycle

Containers organize blobs within a storage account. Public access settings, role assignments and SAS permissions determine data exposure. Hot, cool, cold and archive tiers have different storage costs, access frequencies, retrieval charges and limitations. Lifecycle policies can transition or delete eligible blobs based on configured conditions; they should be reviewed with retention, legal holds, versioning and access requirements.

Container access

Keep containers private unless anonymous access is explicitly required and permitted. Use a scoped data role or time-limited access rather than opening a whole container publicly.

Tiering isn't free

Cool/cold/archive access tiers trade lower capacity charges for varying access and retrieval costs or latency. Archive blobs must generally be rehydrated before normal reads, and supported tiers vary by account/redundancy.

Lifecycle rules

A policy may move qualifying blobs between supported tiers or delete them after an age threshold. Test prefix, tags, last access and version conditions against real retention policy.

Object replication

Blob object replication asynchronously copies eligible block blobs between compatible storage accounts. It is a distinct feature from account geo redundancy; it has prerequisites and limitations.

Northstar example: A compliance archive is used once a year. The team wants to transition old blobs automatically, but the application must still read a recent 90-day report immediately. Separate access-tier goals by age and retrieval requirement.
Would changing a current production blob to Archive preserve immediate reads with no rehydration delay? Reveal the explanation

No. Archive is offline storage for supported block blobs; rehydration is needed before ordinary access and can take time.

BUILD LAB 02 / AZ-104 STORAGE

Repair a Blob lifecycle rule and recovery plan

The reports container needs immediate access to recent files, lower-cost Cool tier after 120 days, and retained previous versions for 400 days. Correct the JSON rule and the independent recovery safeguards.

NS-STO-027 / Lifecycle and accidental overwrite

Scope reports/ block blobs only. Existing policy tiers at 30 days and purges previous versions at 90—too early. Preserve all current reports (no base-blob deletion) and test recovery of an overwritten blob. An access-tier transition is asynchronous, not a scheduled job with an exact execution time.

Validator checks actual JSON structure, not keywords. Lifecycle rule age conditions must match the specified property and units.

Choose or edit the configuration, then select Validate. Nothing is deployed or connected to Azure.

Show a verified sample policy and restore considerations
{
  "rules": [
    {
      "enabled": true,
      "name": "northstarReports",
      "type": "Lifecycle",
      "definition": {
        "filters": {
          "blobTypes": [
            "blockBlob"
          ],
          "prefixMatch": [
            "reports/"
          ]
        },
        "actions": {
          "baseBlob": {
            "tierToCool": {
              "daysAfterModificationGreaterThan": 120
            }
          },
          "version": {
            "delete": {
              "daysAfterCreationGreaterThan": 400
            }
          }
        }
      }
    }
  ]
}

Lifecycle is not a backup. A soft-deleted object and a previous blob version have different recovery semantics. Blob versioning must be enabled before the overwrite; undelete does not selectively promote an old version to current. When previous versions or snapshots exist, lifecycle deletion of the current blob has additional constraints.

Microsoft: lifecycle JSON structure ↗Microsoft: soft delete and versioning ↗

Educational simulation: selected settings and JSON structure are checked locally. This does not generate real SAS tokens, configure Azure RBAC/NTFS ACLs, execute lifecycle policies, or prove access to live Azure resources. Verify permissions, service capabilities, client connectivity, costs, and restore behavior in an authorized test tenant.

08 / RESTORE THE RIGHT THING

Plan blob versions, soft delete and recovery

Soft delete retains eligible deleted blobs or containers during a configured retention period. Blob versioning retains previous blob versions when enabled. Snapshots can capture versions of blob content, while point-in-time restore for supported block blob scenarios has prerequisites such as soft delete, change feed and versioning. Those mechanisms have different scopes and costs. They are not interchangeable with cross-region replication or independent backup.

Soft delete

Check whether the deletion affected a blob, a container or a share; enable and verify the appropriate service-specific protection before relying on retention.

Versioning

Enabled blob versioning can preserve earlier versions during overwrites or changes. Restoring the correct version requires object history and permission to perform the operation.

Snapshots and PITR

Blob snapshots and point-in-time restore provide different recovery approaches. A PITR plan must account for compatible account type, retention and feature prerequisites.

Cost and immutability

Old versions and snapshots consume storage. Legal holds and immutability settings may constrain lifecycle or restoration operations—verify protection before deleting historical data.

Northstar example: Northstar loses a current policy configuration object. The data team has enabled blob versioning, but has never tested how to identify the correct previous version. A valid version history is only the start of a safe restore procedure.
Does enabling versioning after a destructive overwrite guarantee that the prior object can be restored? Reveal the explanation

No. Features must have been enabled and applicable before the event; verify version availability rather than assuming protection is retroactive.

09 / CLOUD SHARES STILL HAVE PERMISSIONS

Configure Azure Files, identity-based access and snapshots

Azure Files provides managed SMB/NFS shares with service-specific support for storage account type, redundancy and authentication. SMB identity-based access can integrate with supported Active Directory or Microsoft Entra arrangements; permission to mount or open files may depend on both share-level role and file/directory ACLs. Azure Files share snapshots offer recovery points, while share soft delete protects eligible deleted shares for the retention period. These are different from blob versioning.

Plan share and protocol

Confirm SMB versus NFS, account tier, region and client access path. Some protocol and identity options are not available for every account/service combination.

Two permission layers

For SMB identity-based access, both share-level authorization and NTFS-style file/directory ACLs can affect access. A successful share connection doesn't prove every file is readable.

File-share snapshots

Share snapshots capture read-only point-in-time versions of a file share for recovery workflows. Test which files and permissions are required to restore.

Share soft delete

A deleted share may be recovered during its configured soft-delete retention. Share soft delete is not a complete solution for each file overwrite/deletion.

Northstar example: Northstar migrates a legacy operations share to Azure Files. The engineer can authenticate to the share, but a specific folder still returns Access Denied. Investigate share permissions and directory ACLs separately.
If a user can authenticate to an Azure Files SMB share, must they be able to read every file in it? Reveal the explanation

No. File/directory ACLs and share-level permissions can both apply. Access to the share is not blanket access to each file.

BUILD LAB 03 / AZ-104 STORAGE

Restore authorized Azure Files access

An operations group can authenticate to Azure Files, but the target folder denies writes from hybrid domain-joined Windows devices. Reconcile the identity source, SMB share role, Windows ACL and network path without issuing account keys.

NS-STO-031 / Operations share access

Northstar's SMB share operations uses its approved on-premises AD DS integration and a File private endpoint. Group NS-Operations needs read/write access to \\operations\\handoffs, but must not change other folders.

Choose or edit the configuration, then select Validate. Nothing is deployed or connected to Azure.

Show the troubleshooting order
  1. Confirm the storage account's chosen SMB identity source is configured and clients can obtain Kerberos credentials.
  2. Check group membership and share-level Storage File Data SMB Share Contributor at the intended share scope.
  3. Inspect inherited and explicit Windows file/directory ACLs on the handoffs folder.
  4. Validate File private endpoint DNS, routing, firewall and TCP 445—not just a successful mount.
  5. Exercise a permitted write and a denied write outside scope using the non-admin user.
Microsoft: Azure Files SMB identity ↗Microsoft: share-level permissions ↗

Educational simulation: selected settings and JSON structure are checked locally. This does not generate real SAS tokens, configure Azure RBAC/NTFS ACLs, execute lifecycle policies, or prove access to live Azure resources. Verify permissions, service capabilities, client connectivity, costs, and restore behavior in an authorized test tenant.

10 / MOVE DATA WITHOUT LOSING THE EVIDENCE

Select Azure Storage Explorer and AzCopy appropriately

Azure Storage Explorer is a graphical management and data-browsing tool for supported storage workloads; AzCopy is a command-line utility optimized for copying supported data into, out of and between storage endpoints. Both require the correct authentication and network path. Data movement needs explicit source/destination validation, retry behavior, metadata checks and a plan for what happens if the copy is interrupted.

Storage Explorer

Use a graphical view to inspect accounts, containers, blobs, queues and supported services with appropriate identity or SAS permissions.

AzCopy

Use an authenticated command-line transfer workflow for bulk data. Validate supported operations, destination behavior, wildcards and whether overwrites are allowed before execution.

Data movement scope

Replication and migration are not synonyms. Copy tooling transfers chosen data; object replication and account redundancy have different scope, prerequisites and recovery characteristics.

Transfer verification

Inspect logs, failure counts, destination inventory, permissions and expected objects. 'Command finished' is not a guarantee that every required item was preserved.

Northstar example: The ops team must copy an approved subset of reports to a new archive account. The runbook specifies source prefix, destination, expected file count and retention requirements. A bulk tool is useful only if those conditions are checked.
What should be verified after an AzCopy transfer before marking a migration complete? Reveal the explanation

Validate transfer logs and failures, expected destination inventory, critical sample integrity/metadata, access and business acceptance—not just the command exit status.

11 / BRING THE CONTROLS TOGETHER

Complete the storage readiness review

A storage design is ready only when the service, data permissions, network reachability, durability, retention and operational ownership have all been checked. For each requirement, separate what is an account property from what must be deliberately enabled or tested. If you cannot describe the first recovery action after a failed upload or deleted object, the deployment isn't finished.

Workload → account choice

Select Blob versus Files, account type and region from application requirements. Check supported redundancy and feature combinations.

Identity → data plane

Verify role or SAS authorization, scope, expiry and network rules. Avoid broad account keys and public access as troubleshooting shortcuts.

Failure → recovery path

Test a node/zone/region outage separately from accidental deletion or overwrite. Check replication lag, backups, versions and retention.

Handoff → evidence

Record resource IDs, client endpoints, access tests, expected latency, alarms, restore steps and ownership of follow-up.

Northstar example: Northstar's storage reviewer receives a form marked 'GRS + budget + role assignment.' The form is incomplete until someone demonstrates client access, proves expected data protection and documents an actual restoration test.
Which three separate questions should every Azure Storage change answer? Reveal the explanation

Can the right clients reach and authenticate? Which failures or deletions are protected, and through what recovery mechanism? How will the result be verified and operated after the change?

12 / INDEPENDENT PRACTICE

New evidence. New tickets. No repeated challenges.

After the four configuration Build Labs and redundancy explorer, apply the principles to different evidence without repeating the guided solutions. Phase 02 Practice presents five separate Northstar storage incidents with investigation choices, operational tradeoffs and final validation.

1 · Investigate

Separate symptoms from storage tier, DNS, firewall or data-plane evidence.

2 · Authorize

Choose a narrow correction that respects retention, security and impact boundaries.

3 · Validate

Confirm both data access and non-regression after the change.

13 / TECHNICAL REFERENCES

Verify the live service behavior.

Aligned with Microsoft's AZ-104 skills measured as of April 17, 2026. Availability by Azure region, account type, protocol and access tier can change. Consult Microsoft guidance before operational changes.

CONTINUE YOUR LEARNING PATH · AZ-104: AZURE ADMINISTRATOR

Complete the Practice milestone

You've reached the end of this written lesson. Your next step is practice: Storage · Independent Practice. Complete that milestone before moving to the following lesson. You can revisit the explanation whenever you need it. Next: milestone 4 of 11.

Your completion marks are saved in this browser only.