CmdID / az / az storage / az storage blob
az storage blob generate-sas
Generate a shared access signature for the blob. Azure CLI reference
13 options Its page in the Azure CLI reference
Options
--as-userIndicates that this command return the SAS signed with the user delegation key.--cache-controlResponse header value for Cache-Control when resource is accessed using this shared access signature.--content-dispositionResponse header value for Content-Disposition when resource is accessed using this shared access signature.--content-encodingResponse header value for Content-Encoding when resource is accessed using this shared access signature.--content-languageResponse header value for Content-Language when resource is accessed using this shared access signature.--content-typeResponse header value for Content-Type when resource is accessed using this shared access signature.--encryption-scopeA predefined encryption scope used to encrypt the data on the service.--full-uriIndicates that this command return the full blob URI and the shared access signature token.--permissions--policy-nameThe name of a stored access policy within the container's ACL.--snapshotAn optional blob snapshot ID.--user-delegation-oidSpecifies the Entra ID of the user that is authorized to use the resulting SAS URL.--user-delegation-tidThe delegated user tenant id in Azure AD.