How a Shared Access Signature (SAS) Works

A Shared Access Signature (SAS) is a token added to the URI of an Azure Storage resource. This token includes query parameters, such as permissions and expiry time, with a signature generated using a key. Azure uses this signature to validate access requests.


Types of SAS and Their Authorization Methods

Type Authorization Method
User Delegation SAS Microsoft Entra ID
Service SAS Shared Key
Account SAS Shared Key

Microsoft recommends using User Delegation SAS for enhanced security.


User Delegation SAS

This SAS type uses Microsoft Entra credentials and permission settings for access. It supports Blob Storage and Data Lake Storage, allowing access to blob and dfs endpoints. It’s not available for Queue, Table Storage, or Azure Files.


Service SAS

A Service SAS is secured with the storage account key and provides access to a single storage service like Blob, Queue, Table, or Azure Files. It is suitable for resource-level access.


Account SAS

Also secured with the account key, an Account SAS can grant access across multiple services and includes broader capabilities such as service-level operations and advanced permissions not available with a Service SAS…


Best Practices When Using SAS

To minimize security and functionality risks, follow these practices: