Azure Storage
Storing Snips data in the cloud·50 minutes
Storing Snips data in the cloud
The Contractor Document Portal VM is running. Now you need to decide where the files actually live. The portal stores contractor-submitted documents, and Snips also needs somewhere for VM backups, diagnostic logs and long-term compliance archives.
Azure Storage is one of the most versatile services in Azure. Understanding the different storage types, access tiers and security options is essential for any Azure Administrator.
What you will learn
Storage account types
A storage account is the top-level container for all Azure Storage services. The account type determines which services are available and which redundancy options you can choose.
Standard general-purpose v2 (StorageV2)
The recommended account type for most scenarios. Supports blobs, files, queues, tables and all redundancy options.
Premium block blobs
SSD-backed storage for scenarios requiring low latency and high transaction rates. Supports LRS and ZRS only.
Premium file shares
SSD-backed Azure Files for enterprise file share scenarios requiring high IOPS.
Premium page blobs
Used for Azure VM managed disks and scenarios requiring random read/write access.
Redundancy options
LRS — Locally redundant storage
Three synchronous copies within a single data centre. Lowest cost. No protection against data centre failure.
ZRS — Zone-redundant storage
Three synchronous copies across three availability zones in the same region. Protects against data centre failure.
GRS — Geo-redundant storage
LRS in the primary region plus asynchronous replication to a secondary region. Protects against regional failure.
RA-GRS — Read-access geo-redundant storage
Same as GRS but you can read from the secondary region endpoint. Useful for read-heavy disaster recovery scenarios.
Blob access tiers
Blob storage offers four access tiers. The right tier depends on how frequently data is accessed. Click a row to see the recommended use case.
| Tier | Storage cost | Access cost |
|---|---|---|
| Hot | High | Low |
| Cool | Lower | Higher |
| Cold | Lower still | Higher still |
| Archive | Lowest | Highest + rehydration delay |
Azure Files
Azure Files provides fully managed file shares accessible via the SMB and NFS protocols. VMs and on-premises machines can mount Azure file shares just like a traditional network drive.
SMB file shares
Accessible from Windows, Linux and macOS. Can replace on-premises file servers. Supports Azure AD authentication.
Azure File Sync
Synchronises on-premises Windows Server file shares with Azure Files, providing cloud tiering and centralised management.
Access control and SAS tokens
Storage accounts have two access keys that grant full control. These should be treated like passwords — rotated regularly and never shared. For delegated access, use Shared Access Signatures (SAS) or Azure RBAC.
Account SAS
Grants access to one or more storage services. Signed with the account key. Broad scope — use sparingly.
Service SAS
Grants access to a specific service (blob, file, queue or table). More granular than account SAS.
User delegation SAS
Signed with Entra ID credentials rather than the account key. More secure — the recommended approach for user-facing scenarios.
Working with storage using Azure CLI
# Create a storage account
az storage account create \
--name stsnipsdocsprod001 \
--resource-group rg-storage-prod-uks-001 \
--location uksouth \
--sku Standard_GRS \
--kind StorageV2 \
--access-tier Hot
# Create a blob container
az storage container create \
--name contractor-documents \
--account-name stsnipsdocsprod001 \
--public-access off
# Generate a SAS token (read-only, 1 hour)
az storage container generate-sas \
--account-name stsnipsdocsprod001 \
--name contractor-documents \
--permissions r \
--expiry "$(date -u -d "1 hour" +%Y-%m-%dT%H:%MZ)"
# Restrict storage to a VNet subnet
az storage account network-rule add \
--account-name stsnipsdocsprod001 \
--vnet-name vnet-snips-prod-uks-001 \
--subnet snet-app-prod-uks-001Lifecycle management
Lifecycle management policies automatically move blobs between tiers or delete them based on rules you define. This is essential for cost management in environments with large amounts of data that ages over time.
- 1.Create a StorageV2 storage account with GRS redundancy in UK South.
- 2.Create a blob container called
contractor-documentswith private access. - 3.Upload a test file and generate a read-only SAS token that expires in 1 hour.
- 4.Create a lifecycle management policy that moves blobs to Cool after 30 days.
- 5.Restrict the storage account to accept connections only from the production VNet subnet.
1.Snips needs to store contractor documents that are accessed daily. Which blob access tier is most appropriate?
2.What is the minimum redundancy option that replicates Snips data across two Azure regions?
3.A developer needs temporary access to a specific blob container without sharing the storage account key. What should you provide?
4.Snips wants old contractor documents to move automatically to the Cool tier after 90 days and be deleted after 365 days. Which feature handles this?
5.You need to restrict the Snips storage account so it only accepts connections from the production VNet subnet. Which feature do you use?
Module summary
Snips now has a properly configured storage account for contractor documents, with GRS redundancy, network restrictions and a lifecycle policy to manage costs as data ages. You understand the full range of Azure Storage options and when to use each one.
Ready to mark this module complete?
Mark complete when you have read all sections, attempted the lab and completed the knowledge check.
- Implement and manage storage