az-storage-blob
Verified for current stable LTS
Az Storage Blob Command: Generate Sas For Blob
Use for generate sas for blob with Az Storage Blob. Exact CLI syntax to generate sas for blob using Az Storage Blob.
When to use this: Use for generate sas for blob with Az Storage Blob.
Command Syntax
az storage blob generate-sas --account-name <account_name> --account-key <account_key> -c <container_name> -n <blob_name> --permissions <permission_set> --expiry {Y-m-d'T'H:M'Z'} --https-only az storage blob generate-sas --account-name <account_name> --account-key <account_key> -c <container_name> -n <blob_name> --permissions <permission_set> --expiry `{Y-m-d'T'H:M'Z'`} --https-only Command Breakdown
--account-name- Command Option
- Tool-specific option used by this command invocation.
--account-key- Command Option
- Tool-specific option used by this command invocation.
-c- Command Option
- Tool-specific option used by this command invocation.
-n- Command Option
- Tool-specific option used by this command invocation.
--permissions- Command Option
- Tool-specific option used by this command invocation.
--expiry- Command Option
- Tool-specific option used by this command invocation.
--https-only- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to generate sas for blob using Az Storage Blob.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Az Storage Blob Command: Download Blob
az storage blob download --account-name <account_name> --account-key <account_key> -c <container_name> -n <blob_name> -f <path/to/file> Az Storage Blob Command: Download Blobs Batch az storage blob download-batch --account-name <account_name> --account-key <account_key> -s <container_name> --pattern <filename_regex> -d <path/to/destination> Az Storage Blob Command: Upload Blob az storage blob upload --account-name <account_name> --account-key <account_key> -c <container_name> -n <blob_name> -f <path/to/file> Az Storage Blob Command: Delete Blob az storage blob delete --account-name <account_name> --account-key <account_key> -c <container_name> -n <blob_name> Az Storage Container Command: Create Container az storage container create --account-name <storage_account_name> -n <container_name> --public-access <access_level> --fail-on-exist