Interview Prep/Azure/Storage, Key Vault and Monitoring

What is a SAS token and what are the types?

IntermediateConceptStorage, Key Vault and Monitoring
Answer

A Shared Access Signature is a signed URL query string granting scoped, time-limited access.

  • User delegation SAS: signed with an Entra-issued user delegation key. Preferred: auditable, revocable by revoking the key, no account key involved.
  • Service SAS: signed with the account key, scoped to one service resource; can reference a stored access policy to allow revocation.
  • Account SAS: account key, multiple services. Broadest; avoid.
az storage blob generate-sas --account-name stshop -c reports -n q3.pdf \
  --permissions r --expiry 2026-11-10T12:00Z --auth-mode login --as-user --https-only --full-uri
Azure All Azure questions Roadmap: Azure core services

More on Storage, Key Vault and Monitoring