Repository navigation
[cloudhsm] Support API 2025-12-01-preview and v2 SKUs - #10488
neerjagangwar wants to merge 1 commit into
Conversation
Regenerate the cloudhsm extension against API version 2025-12-01-preview so az cloudhsm create accepts the Standard_B1v2, Standard_B5v2, Standard_B10v2, Standard_B15v2 and Standard_B20v2 SKUs. Bump to 1.0.0b2. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8c1d28bd-31c4-410c-a15a-97876904c51c
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
There was a problem hiding this comment.
🟢 Approval recommended
The narrowly scoped API migration, SKU additions, and supporting updates are consistent, with no blocking issues identified.
No open issues 🎉
What changed in this PR
Updates the CloudHSM extension to API 2025-12-01-preview, enabling five v2 SKUs while preserving existing command availability.
Changes:
- Regenerates commands with the preview API and expanded SKU choices.
- Releases
1.0.0b2, requiring Azure CLI2.75.0. - Updates SKU documentation and playback recording API versions.
| File | Description |
|---|---|
src/cloudhsm/setup.py |
Bumps extension version. |
src/cloudhsm/README.md |
Lists all supported SKUs. |
src/cloudhsm/HISTORY.rst |
Documents API and SKU additions. |
src/cloudhsm/azext_cloudhsm/tests/latest/recordings/test_create_list_and_get_cloudHsm.yaml |
Updates cluster request API versions. |
src/cloudhsm/azext_cloudhsm/tests/latest/recordings/test_backup_restore.yaml |
Updates backup and restore API versions. |
src/cloudhsm/azext_cloudhsm/azext_metadata.json |
Raises minimum CLI version. |
src/cloudhsm/azext_cloudhsm/aaz/latest/cloudhsm/restore/_start.py |
Updates API and preview status. |
src/cloudhsm/azext_cloudhsm/aaz/latest/cloudhsm/restore/_show.py |
Updates unregistered status command API. |
src/cloudhsm/azext_cloudhsm/aaz/latest/cloudhsm/restore/__cmd_group.py |
Marks restore group as preview. |
src/cloudhsm/azext_cloudhsm/aaz/latest/cloudhsm/backup/_start.py |
Updates API and preview status. |
src/cloudhsm/azext_cloudhsm/aaz/latest/cloudhsm/backup/_show.py |
Updates unregistered status command API. |
src/cloudhsm/azext_cloudhsm/aaz/latest/cloudhsm/backup/__cmd_group.py |
Marks backup group as preview. |
src/cloudhsm/azext_cloudhsm/aaz/latest/cloudhsm/_update.py |
Updates API and preview status. |
src/cloudhsm/azext_cloudhsm/aaz/latest/cloudhsm/_show.py |
Updates API and preview status. |
src/cloudhsm/azext_cloudhsm/aaz/latest/cloudhsm/_list.py |
Updates both listing APIs and preview status. |
src/cloudhsm/azext_cloudhsm/aaz/latest/cloudhsm/_delete.py |
Updates API and preview status. |
src/cloudhsm/azext_cloudhsm/aaz/latest/cloudhsm/_create.py |
Adds v2 SKUs and updates API and preview status. |
src/cloudhsm/azext_cloudhsm/aaz/latest/cloudhsm/__cmd_group.py |
Marks CloudHSM group as preview. |
Review effort: Balanced
X Engineering Agent ReportReview — Comments Upstream CI completed without failures; the recording/SKU regression evidence below remains insufficient. P2 — Updated recordings do not validate the new API/SKUs. Paths below are relative to
Add request/output assertions for all five v2 SKUs. Re-record the two named scenarios against the preview API, including a v2 create/show/list round trip and backup/restore terminal-output assertions, then rerun their playback tests. Test validation
Risk assessment — 49/100 · MediumThe Medium rating is driven by public CLI behavior, dependency or supply chain, generated output.
Posted by x-engineering-agent (Reviewer) |
🤖 PR Validation —⚠️ Review suggested
This checklist is used to make sure that common guidelines for a pull request are followed.
Related command
az cloudhsm create,az cloudhsm update,az cloudhsm show,az cloudhsm list,az cloudhsm delete,az cloudhsm backup start,az cloudhsm restore startDescription
Moves the
cloudhsmextension to API version 2025-12-01-preview (swagger tagpackage-2025-12-01-preview). For Cloud HSM, the only change in this API version is the new cluster SKUs:Standard_B1v2Standard_B5v2Standard_B10v2Standard_B15v2Standard_B20v2Changes:
--skunow accepts all 7 SKUs.backup showandrestore showare still unregistered, same as before. The generator's newwaitcommand was not added.1.0.0b2, updatedHISTORY.rstand the README SKU list.minCliCoreVersionis now 2.75.0, as set by the generator.AAZ PR: Azure/aaz#1133
Testing
az cloudhsm create -hlists all 7 SKUs with the extension installed locally (azure-cli 2.91.0).test_backup_restoreandtest_create_list_and_get_cloudHsmpass in CI (azdev test azext_cloudhsm, 2 passed).General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally? (pip install azdevrequired)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.jsonautomatically.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.