CmdID

CmdID / az / az storage / az storage file

az storage file generate-sas

Generate a shared access signature for the file. Azure CLI reference

12 options Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Options

12 in the Azure CLI reference
--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.
--disallow-trailing-dotIf true, the trailing dot will be trimmed from the target URI.
--permissions
--policy-nameThe name of a stored access policy within the file share's ACL.
--share-name, -sThe file share name.
--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.