Skip to content

Access Models

Azure Storage provides several options for authenticating and authorizing access to your data resources.

Method Scope Expiration Security Level Use Case
Shared Key Account level No Low Simple apps, legacy systems.
SAS Varies by SAS type (blob/container/share/queue/table/account) Custom Medium Granting limited-time access.
RBAC Resource level N/A High Identity-based permissioning.
Managed ID Identity level Dynamic Highest Secure service-to-service auth.

mermaid graph TD Start{Request Access} --> ID[Managed Identity?] ID -- Yes --> RBAC[Azure RBAC] ID -- No --> Key[Shared Key?] Key -- Yes --> Full[Full Account Access] Key -- No --> SAS[Shared Access Signature] SAS --> Limited[Limited Scope/Time]

Warning

Minimize the use of Shared Keys. If a key is compromised, the attacker has full access to the entire storage account. Prefer Azure AD (RBAC) and Managed Identities where possible.

Auth Options

  • Azure AD (Entra ID): Best for fine-grained, identity-based control.
  • Shared Access Signature (SAS): Best for giving third parties limited access.
  • Storage Account Keys: Root access, used as a last resort.

See Also

Sources