Skip to content

[Storage] WIP: align CLI with storage TypeSpec migration#33310

Draft
l0lawrence wants to merge 1 commit intoAzure:devfrom
l0lawrence:storage-tsp-cli-fixes
Draft

[Storage] WIP: align CLI with storage TypeSpec migration#33310
l0lawrence wants to merge 1 commit intoAzure:devfrom
l0lawrence:storage-tsp-cli-fixes

Conversation

@l0lawrence
Copy link
Copy Markdown
Member

WIP / Draft — companion changes for the Azure Storage TypeSpec migration in azure-sdk-for-python.

The TSP-generated SDK renames the internal generated-enums module from _azure_blob_storage_enums.py / _azure_file_storage_enums.py to _enums.py, and consolidates the legacy AccessTierOptional enum into AccessTier. The CLI reaches into these private _generated.* paths via cmd.get_models(...) so it must be updated to follow the new layout.

Changes

  • _params.py — 6 lookups updated to _generated.models._enums#X; AccessTierOptionalAccessTier
  • _validators.py — 2 lookups updated to _generated.models._enums#X

Tracks SDK PRs:

Update generated enum module path (_azure_*_storage_enums -> _enums) and consolidate AccessTierOptional into AccessTier to match the storage TypeSpec migration.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@azure-client-tools-bot-prd
Copy link
Copy Markdown

Validation for Azure CLI Full Test Starting...

Thanks for your contribution!

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

Validation for Breaking Change Starting...

Thanks for your contribution!

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented May 1, 2026

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

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

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>

@yonzhan yonzhan assigned calvinhzy and unassigned evelyn-ys May 2, 2026
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