az storage account blob-service-properties update adds static website options
Introduced 2026-06-02 · score 0.95
HOW TO USE IT
When configuring static website behavior for a storage account, run `az storage account blob-service-properties update` with the needed website options. Enable static website support and set the index and/or custom 404 page as required.
az storage account blob-service-properties update --account-name <storage-account> --resource-group <resource-group> --enable-static-website true --index-document <index-file> --error-document-404-path <absolute-404-page>WHY THIS HELPS
Update a storage account's blob service properties to configure static website behavior.
REQUIREMENTS AND LIMITATIONS
- Version: 2.87.0
- --account-name (-n) (required): Storage account name.
- --resource-group (-g): Resource group name; may be needed depending on context.
- --enable-static-website: Whether static website support is enabled; accepts `false` or `true`.
- --index-document: Webpage served for requests to the website root or a subfolder, such as `index.html`.
- --default-index-document-path (--default-index): Absolute path to the default index file; case-sensitive and mutually exclusive with `--index-document`.
- --error-document-404-path (--404-document): Absolute path to the custom webpage served for requests that do not match an existing file; only one custom 404 page is supported per static website.
FIRST-PARTY EVIDENCE
- https://learn.microsoft.com/en-us/cli/azure/release-notes-azure-cli#june-02-2026
- https://learn.microsoft.com/en-us/cli/azure/storage/account/blob-service-properties?view=azure-cli-latest
Check the installed version and the source before using it. Entry JSON