Skip to content

[Storage] az storage account task-assignment create: Support MockRun as new triggerType#9898

Open
calvinhzy wants to merge 3 commits into
Azure:mainfrom
calvinhzy:storage-task-assignment-mockrun
Open

[Storage] az storage account task-assignment create: Support MockRun as new triggerType#9898
calvinhzy wants to merge 3 commits into
Azure:mainfrom
calvinhzy:storage-task-assignment-mockrun

Conversation

@calvinhzy
Copy link
Copy Markdown
Member

@calvinhzy calvinhzy commented May 25, 2026


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

Related command

aaz Azure/aaz#1016

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

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

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

️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented May 25, 2026

Storage

@yonzhan yonzhan requested review from jsntcy and removed request for evelyn-ys May 25, 2026 07:45
@calvinhzy calvinhzy marked this pull request as ready for review May 25, 2026 08:21
Copilot AI review requested due to automatic review settings May 25, 2026 08:21
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

This PR updates the storage-preview extension’s Storage Task Assignment commands to align with a newer Storage ARM API version and adds support for the new MockRun trigger type on az storage account task-assignment create/update.

Changes:

  • Add MockRun to the allowed trigger types for Storage Task Assignments and extend scenario coverage.
  • Bump Storage Task Assignment AAZ command generation to API version 2025-08-01 (including schema/error-format updates and systemData).
  • Update extension version/metadata and refresh a test recording to match the newer API version.

Reviewed changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
src/storage-preview/setup.py Bumps the extension version to 1.0.0b8.
src/storage-preview/HISTORY.rst Adds release notes entry for MockRun support.
src/storage-preview/azext_storage_preview/tests/latest/test_storage_account_scenarios.py Extends task-assignment scenario test to create a MockRun assignment and adjusts expectations.
src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_file_trailing_dot_scenario.yaml Updates a recorded request to use the newer Storage ARM API version.
src/storage-preview/azext_storage_preview/azext_metadata.json Raises minimum CLI core version to 2.75.0.
src/storage-preview/azext_storage_preview/aaz/latest/storage/account/task_assignment/_create.py Adds MockRun enum option; updates API version/schema; request/arg schema adjustments.
src/storage-preview/azext_storage_preview/aaz/latest/storage/account/task_assignment/_update.py Adds MockRun enum option; updates API version/schema and date-time formatting.
src/storage-preview/azext_storage_preview/aaz/latest/storage/account/task_assignment/_show.py Updates API version/schema and name pattern.
src/storage-preview/azext_storage_preview/aaz/latest/storage/account/task_assignment/_list.py Updates API version/schema; adjusts list query paging parameter usage.
src/storage-preview/azext_storage_preview/aaz/latest/storage/account/task_assignment/_list_report.py Updates API version/schema and name pattern.
src/storage-preview/azext_storage_preview/aaz/latest/storage/account/task_assignment/_delete.py Updates API version/name pattern; adjusts LRO final-state handling.
src/storage-preview/azext_storage_preview/aaz/latest/storage/account/task_assignment/_wait.py Updates API version/schema and name pattern.

Comment thread src/storage-preview/HISTORY.rst Outdated

1.0.0b8
+++++++
* `az storage account task-assignment`: Add `MockRun` to as a triggerType
Comment on lines 75 to 79
_args_schema.description = AAZStrArg(
options=["--description"],
arg_group="Properties",
help="Text that describes the purpose of the storage task assignment",
required=True,
)
@@ -63,7 +63,7 @@
help="The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.",
id_part="child_name_1",
fmt=AAZStrArgFormat(
pattern="^[a-z0-9]{3,24}$",
pattern="^[a-z][a-z0-9]{2,23}$",
@@ -63,7 +63,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
help="The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.",
id_part="child_name_1",
fmt=AAZStrArgFormat(
pattern="^[a-z0-9]{3,24}$",
pattern="^[a-z][a-z0-9]{2,23}$",
id_part="child_name_1",
fmt=AAZStrArgFormat(
pattern="^[a-z0-9]{3,24}$",
pattern="^[a-z][a-z0-9]{2,23}$",
id_part="child_name_1",
fmt=AAZStrArgFormat(
pattern="^[a-z0-9]{3,24}$",
pattern="^[a-z][a-z0-9]{2,23}$",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot Storage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants