Skip to content

[Storage] `az storage account: New features for 2025-08-01#33423

Open
calvinhzy wants to merge 5 commits into
Azure:devfrom
calvinhzy:storage-feature-2025-08-01-new
Open

[Storage] `az storage account: New features for 2025-08-01#33423
calvinhzy wants to merge 5 commits into
Azure:devfrom
calvinhzy:storage-feature-2025-08-01-new

Conversation

@calvinhzy
Copy link
Copy Markdown
Member

@calvinhzy calvinhzy commented May 22, 2026

Related command

Description

Testing Guide

History Notes

[Storage] az storage account create/update: Support new value Smart for --access-tier
[Storage] az storage account create/update: Support --allowed-copy-scope
[Storage] az storage account blob-service-properties update: Add --enable-static-website, --index-document, --default-index-document-path, --error-document-404-path
[Storage] az storage account or-policy create/update: Add --tags-replication


This checklist is used to make sure that common guidelines for a pull request are followed.

@calvinhzy calvinhzy self-assigned this May 22, 2026
@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd Bot commented May 22, 2026

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.13
️✔️acs
️✔️latest
️✔️3.12
️✔️3.13
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.13
️✔️ams
️✔️latest
️✔️3.12
️✔️3.13
️✔️apim
️✔️latest
️✔️3.12
️✔️3.13
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.13
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️aro
️✔️latest
️✔️3.12
️✔️3.13
️✔️backup
️✔️latest
️✔️3.12
️✔️3.13
️✔️batch
️✔️latest
️✔️3.12
️✔️3.13
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.13
️✔️billing
️✔️latest
️✔️3.12
️✔️3.13
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.13
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.13
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.13
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.13
️✔️config
️✔️latest
️✔️3.12
️✔️3.13
️✔️configure
️✔️latest
️✔️3.12
️✔️3.13
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.13
️✔️container
️✔️latest
️✔️3.12
️✔️3.13
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.13
️✔️core
️✔️latest
️✔️3.12
️✔️3.13
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.13
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.13
️✔️dls
️✔️latest
️✔️3.12
️✔️3.13
️✔️dms
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.13
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.13
️✔️find
️✔️latest
️✔️3.12
️✔️3.13
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.13
️✔️identity
️✔️latest
️✔️3.12
️✔️3.13
️✔️iot
️✔️latest
️✔️3.12
️✔️3.13
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.13
️✔️lab
️✔️latest
️✔️3.12
️✔️3.13
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️maps
️✔️latest
️✔️3.12
️✔️3.13
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.13
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.13
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.13
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.13
️✔️network
️✔️latest
️✔️3.12
️✔️3.13
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.13
️✔️postgresql
️✔️latest
️✔️3.12
️✔️3.13
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.13
️✔️profile
️✔️latest
️✔️3.12
️✔️3.13
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.13
️✔️redis
️✔️latest
️✔️3.12
️✔️3.13
️✔️relay
️✔️latest
️✔️3.12
️✔️3.13
️✔️resource
️✔️latest
️✔️3.12
️✔️3.13
️✔️role
️✔️latest
️✔️3.12
️✔️3.13
️✔️search
️✔️latest
️✔️3.12
️✔️3.13
️✔️security
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.13
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.13
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.13
️✔️sql
️✔️latest
️✔️3.12
️✔️3.13
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.13
️✔️storage
️✔️latest
️✔️3.12
️✔️3.13
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.13
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.13
️✔️util
️✔️latest
️✔️3.12
️✔️3.13
️✔️vm
️✔️latest
️✔️3.12
️✔️3.13

@azure-client-tools-bot-prd
Copy link
Copy Markdown

Hi @calvinhzy,
Since the current milestone time is less than 7 days, this pr will be reviewed in the next milestone.

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd Bot commented May 22, 2026

⚠️AzureCLI-BreakingChangeTest
⚠️storage
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd storage account blob-service-properties update cmd storage account blob-service-properties update added parameter default_index_document_path
⚠️ 1006 - ParaAdd storage account blob-service-properties update cmd storage account blob-service-properties update added parameter enable_static_website
⚠️ 1006 - ParaAdd storage account blob-service-properties update cmd storage account blob-service-properties update added parameter error_document_404_path
⚠️ 1006 - ParaAdd storage account blob-service-properties update cmd storage account blob-service-properties update added parameter index_document
⚠️ 1006 - ParaAdd storage account create cmd storage account create added parameter allowed_copy_scope
⚠️ 1006 - ParaAdd storage account or-policy create cmd storage account or-policy create added parameter tags_replication
⚠️ 1006 - ParaAdd storage account or-policy update cmd storage account or-policy update added parameter tags_replication
⚠️ 1006 - ParaAdd storage account update cmd storage account update added parameter allowed_copy_scope

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented May 22, 2026

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link
Copy Markdown

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@calvinhzy calvinhzy changed the title [Storage] az storage account create/update: New features for 2025-08-01 [Storage] `az storage account: New features for 2025-08-01 May 22, 2026
calvinhzy added 2 commits May 22, 2026 14:15
…atic-website`, `--index-document`, `--default-index-document-path`, `--error-document-404-path`
@calvinhzy calvinhzy marked this pull request as ready for review May 22, 2026 07:39
Copilot AI review requested due to automatic review settings May 22, 2026 07:39
@calvinhzy calvinhzy requested a review from jsntcy as a code owner May 22, 2026 07:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Azure Storage Account command support for new 2025-08-01-era features and updates scenario coverage/recordings accordingly.

Changes:

  • Add --allowed-copy-scope to az storage account create/update.
  • Extend storage account blob-service-properties update with static website parameters.
  • Add --tags-replication support to storage account or-policy create/update and update scenario tests/recordings (including new Smart access tier coverage).

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/azure-cli/azure/cli/command_modules/storage/operations/account.py Implements allowed_copy_scope, static website updates for blob service properties, and tags replication for OR policy create/update.
src/azure-cli/azure/cli/command_modules/storage/_params.py Wires new CLI arguments for allowed copy scope, static website options, and tags replication.
src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_account_scenarios.py Adds/updates scenario tests for Smart tier, allowed copy scope, static website, and tags replication; updates ORS test region.
src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_account_static_website.yaml New recording for static website scenario test.
src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_account_smart_tier.yaml New recording for Smart access tier scenario test.
src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_account_allowed_copy_scope.yaml New recording for allowed copy scope scenario test.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 1137 to +1144
or_policy = ObjectReplicationPolicy(source_account=properties.get('sourceAccount'),
destination_account=properties.get('destinationAccount'),
rules=rules,
metrics=ObjectReplicationPolicyPropertiesMetrics(enabled=properties.get('metrics').get('enabled')),
priority_replication=ObjectReplicationPolicyPropertiesPriorityReplication(
enabled=properties.get('priorityReplication').get('enabled')))
enabled=properties.get('priorityReplication').get('enabled')),
tags_replication=ObjectReplicationPolicyPropertiesTagsReplication(
enabled=properties.get('tagsReplication').get('enabled')))
Comment on lines 1185 to +1193
parameters = ObjectReplicationPolicy(source_account=properties.get('sourceAccount'),
destination_account=properties.get('destinationAccount'),
rules=rules,
metrics=ObjectReplicationPolicyPropertiesMetrics(
enabled=properties.get('metrics').get('enabled')),
priority_replication=ObjectReplicationPolicyPropertiesPriorityReplication(
enabled=properties.get('priorityReplication').get('enabled')))
enabled=properties.get('priorityReplication').get('enabled')),
tags_replication=ObjectReplicationPolicyPropertiesTagsReplication(
enabled=properties.get('tagsReplication').get('enabled')))
Comment on lines +972 to +977
if enable_static_website is not None or index_document or default_index_document_path or error_document_404_path:
StaticWebsite = cmd.get_models('StaticWebsite')
instance.static_website = StaticWebsite(enabled=enable_static_website,
index_document=index_document,
default_index_document_path=default_index_document_path,
error_document404_path=error_document_404_path)
Comment on lines +737 to +744
c.argument('index_document', arg_group='Static Website',
help='The webpage that Azure Storage serves for requests to the root of a website or any subfolder '
'(for example, index.html).')
c.argument('default_index_document_path', arg_group='Static Website',
options_list=['--default-index-document-path', '--default-index'],
help='The absolute path where the default index file is present. This absolute path is mutually '
'exclusive to "indexDocument" and it is case-sensitive.')
c.argument('error_document_404_path', arg_group='Static Website',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants