Storage Security & Access
Securing Azure Storage is about controlling who can access your data and how they can access it. Azure provides multiple security layers including keys, shared access signatures (SAS), firewalls, and private endpoints.
1. Storage Account Keys
- Each storage account has two keys (key1 and key2).
- Keys provide full administrative access to the account.
- You should avoid giving keys to users/apps directly — rotate them regularly.
2. Shared Access Signatures (SAS)
- Grant temporary, limited access to resources.
- You can specify:
- Permissions (read, write, delete, list).
- Time window (start time, expiry time).
- Scope (account-level, service-level, or resource-level).
- Used to share data securely without giving full account keys.
3. Azure AD-based Authentication
- Instead of using keys/SAS, you can authenticate with Entra ID + RBAC.
- Recommended for enterprise security (centralized identity + least privilege).
4. Firewalls & Virtual Networks
- You can restrict access to specific IP addresses or virtual networks.
- By default, storage is accessible over the public internet — you should lock it down.
5. Private Endpoints
- Provide secure, private connectivity to storage via Azure Private Link.
- The storage account gets a private IP in your VNet, making it inaccessible from the public internet.
Confusion Buster 🚨
SAS vs Storage Keys
– Storage Keys = full control over everything.
– SAS = scoped, time-limited, permission-specific access.
Exam trick: If the requirement is temporary access for a partner, the answer is SAS, not keys.
Simple Example
A media company stores videos in Blob Storage. Instead of giving developers the account keys, they generate a SAS token valid for 2 hours with read-only permissions. For internal workloads, they secure access using private endpoints and RBAC-based authentication.
Exam Tip
Look for these keywords: – “Temporary access” → SAS.
– “Restrict access to corporate network only” → Firewalls + VNets.
– “No public internet exposure” → Private Endpoint.
– “Centralized identity control” → Entra ID + RBAC.
What to Expect in the Exam
- Direct Q: “Which feature provides time-limited access without giving account keys?” → SAS.
- Scenario: “Storage must only be accessible from the internal VNet.” → Private Endpoint.
- Trick Q: “Firewalls block access from specific tenants.” (False, they block IPs/networks, not tenants).