CmdID / az / az storage / az storage share
az storage share generate-sas
Generate a shared access signature for the share. Azure CLI reference
11 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.--name, -nThe file share name.--permissions--policy-nameThe name of a stored access policy within the share's ACL.--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.