Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/cloudhsm/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Release History
===============

1.0.0b2
++++++
* Update API version to 2025-12-01-preview.
* `az cloudhsm create`: Support new SKUs `Standard_B1v2`, `Standard_B5v2`, `Standard_B10v2`, `Standard_B15v2` and `Standard_B20v2` for `--sku`.
* Add `az cloudhsm backup show` and `az cloudhsm restore show` commands.

@JaysonTaiMicrosoft JaysonTaiMicrosoft Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Add `az cloudhsm backup show` and `az cloudhsm restore show` commands.

neerjagangwar Only additional scenario tests were added. The commands were already existing

1.0.0b1
++++++
* Initial release.
6 changes: 6 additions & 0 deletions src/cloudhsm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ az cloudhsm create \

#### Available SKUs:
- `Standard_B1` (default)
- `Standard B10`
- `Standard_B1v2`
- `Standard_B5v2`
- `Standard_B10v2`
- `Standard_B15v2`
- `Standard_B20v2`


### 2. List CloudHSM Clusters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

@register_command_group(
"cloudhsm",
is_preview=True,
)
class __CMDGroup(AAZCommandGroup):
"""Manage Cloud Hsm Cluster
Expand Down
9 changes: 5 additions & 4 deletions src/cloudhsm/azext_cloudhsm/aaz/latest/cloudhsm/_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

@register_command(
"cloudhsm create",
is_preview=True,
)
class Create(AAZCommand):
"""Create a Cloud HSM
Expand All @@ -22,9 +23,9 @@ class Create(AAZCommand):
"""

_aaz_info = {
"version": "2025-03-31",
"version": "2025-12-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hardwaresecuritymodules/cloudhsmclusters/{}", "2025-03-31"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hardwaresecuritymodules/cloudhsmclusters/{}", "2025-12-01-preview"],
]
}

Expand Down Expand Up @@ -117,7 +118,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
arg_group="Sku",
help="Sku name of the Cloud HSM Cluster",
default="Standard_B1",
enum={"Standard B10": "Standard B10", "Standard_B1": "Standard_B1"},
enum={"Standard B10": "Standard B10", "Standard_B1": "Standard_B1", "Standard_B10v2": "Standard_B10v2", "Standard_B15v2": "Standard_B15v2", "Standard_B1v2": "Standard_B1v2", "Standard_B20v2": "Standard_B20v2", "Standard_B5v2": "Standard_B5v2"},
)
return cls._args_schema

Expand Down Expand Up @@ -202,7 +203,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-03-31",
"api-version", "2025-12-01-preview",
required=True,
),
}
Expand Down
7 changes: 4 additions & 3 deletions src/cloudhsm/azext_cloudhsm/aaz/latest/cloudhsm/_delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

@register_command(
"cloudhsm delete",
is_preview=True,
confirmation="Are you sure you want to perform this operation?",
)
class Delete(AAZCommand):
Expand All @@ -23,9 +24,9 @@ class Delete(AAZCommand):
"""

_aaz_info = {
"version": "2025-03-31",
"version": "2025-12-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hardwaresecuritymodules/cloudhsmclusters/{}", "2025-03-31"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hardwaresecuritymodules/cloudhsmclusters/{}", "2025-12-01-preview"],
]
}

Expand Down Expand Up @@ -148,7 +149,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-03-31",
"api-version", "2025-12-01-preview",
required=True,
),
}
Expand Down
11 changes: 6 additions & 5 deletions src/cloudhsm/azext_cloudhsm/aaz/latest/cloudhsm/_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

@register_command(
"cloudhsm list",
is_preview=True,
)
class List(AAZCommand):
"""List Cloud HSMs
Expand All @@ -23,10 +24,10 @@ class List(AAZCommand):
"""

_aaz_info = {
"version": "2025-03-31",
"version": "2025-12-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/providers/microsoft.hardwaresecuritymodules/cloudhsmclusters", "2025-03-31"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hardwaresecuritymodules/cloudhsmclusters", "2025-03-31"],
["mgmt-plane", "/subscriptions/{}/providers/microsoft.hardwaresecuritymodules/cloudhsmclusters", "2025-12-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hardwaresecuritymodules/cloudhsmclusters", "2025-12-01-preview"],
]
}

Expand Down Expand Up @@ -113,7 +114,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-03-31",
"api-version", "2025-12-01-preview",
required=True,
),
}
Expand Down Expand Up @@ -360,7 +361,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-03-31",
"api-version", "2025-12-01-preview",
required=True,
),
}
Expand Down
7 changes: 4 additions & 3 deletions src/cloudhsm/azext_cloudhsm/aaz/latest/cloudhsm/_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

@register_command(
"cloudhsm show",
is_preview=True,
)
class Show(AAZCommand):
"""Show details of a Cloud HSM
Expand All @@ -22,9 +23,9 @@ class Show(AAZCommand):
"""

_aaz_info = {
"version": "2025-03-31",
"version": "2025-12-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hardwaresecuritymodules/cloudhsmclusters/{}", "2025-03-31"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hardwaresecuritymodules/cloudhsmclusters/{}", "2025-12-01-preview"],
]
}

Expand Down Expand Up @@ -125,7 +126,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-03-31",
"api-version", "2025-12-01-preview",
required=True,
),
}
Expand Down
7 changes: 4 additions & 3 deletions src/cloudhsm/azext_cloudhsm/aaz/latest/cloudhsm/_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

@register_command(
"cloudhsm update",
is_preview=True,
)
class Update(AAZCommand):
"""Update the properties of a Cloud HSM
Expand All @@ -22,9 +23,9 @@ class Update(AAZCommand):
"""

_aaz_info = {
"version": "2025-03-31",
"version": "2025-12-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hardwaresecuritymodules/cloudhsmclusters/{}", "2025-03-31"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hardwaresecuritymodules/cloudhsmclusters/{}", "2025-12-01-preview"],
]
}

Expand Down Expand Up @@ -167,7 +168,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-03-31",
"api-version", "2025-12-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

@register_command_group(
"cloudhsm backup",
is_preview=True,
)
class __CMDGroup(AAZCommandGroup):
"""Manage Cloud HSM Backup
Expand Down
10 changes: 7 additions & 3 deletions src/cloudhsm/azext_cloudhsm/aaz/latest/cloudhsm/backup/_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
from azure.cli.core.aaz import *


@register_command(
"cloudhsm backup show",
is_preview=True,
)
class Show(AAZCommand):
"""Get the backup operation status of the specified Cloud HSM Cluster

Expand All @@ -19,9 +23,9 @@ class Show(AAZCommand):
"""

_aaz_info = {
"version": "2025-03-31",
"version": "2025-12-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hardwaresecuritymodules/cloudhsmclusters/{}/backupoperationstatus/{}", "2025-03-31"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hardwaresecuritymodules/cloudhsmclusters/{}/backupoperationstatus/{}", "2025-12-01-preview"],
]
}

Expand Down Expand Up @@ -134,7 +138,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-03-31",
"api-version", "2025-12-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

@register_command(
"cloudhsm backup start",
is_preview=True,
)
class Start(AAZCommand):
"""Begin a backup of the Cloud HSM.
Expand All @@ -22,9 +23,9 @@ class Start(AAZCommand):
"""

_aaz_info = {
"version": "2025-03-31",
"version": "2025-12-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hardwaresecuritymodules/cloudhsmclusters/{}/backup", "2025-03-31"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hardwaresecuritymodules/cloudhsmclusters/{}/backup", "2025-12-01-preview"],
]
}

Expand Down Expand Up @@ -151,7 +152,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-03-31",
"api-version", "2025-12-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

@register_command_group(
"cloudhsm restore",
is_preview=True,
)
class __CMDGroup(AAZCommandGroup):
"""Restore a backup of a Cloud HSM
Expand Down
10 changes: 7 additions & 3 deletions src/cloudhsm/azext_cloudhsm/aaz/latest/cloudhsm/restore/_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
from azure.cli.core.aaz import *


@register_command(
"cloudhsm restore show",
is_preview=True,
)
class Show(AAZCommand):
"""Get the restore operation status of the specified Cloud HSM Cluster

Expand All @@ -19,9 +23,9 @@ class Show(AAZCommand):
"""

_aaz_info = {
"version": "2025-03-31",
"version": "2025-12-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hardwaresecuritymodules/cloudhsmclusters/{}/restoreoperationstatus/{}", "2025-03-31"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hardwaresecuritymodules/cloudhsmclusters/{}/restoreoperationstatus/{}", "2025-12-01-preview"],
]
}

Expand Down Expand Up @@ -134,7 +138,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-03-31",
"api-version", "2025-12-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

@register_command(
"cloudhsm restore start",
is_preview=True,
)
class Start(AAZCommand):
"""Restore a backup of a Cloud HSM.
Expand All @@ -22,9 +23,9 @@ class Start(AAZCommand):
"""

_aaz_info = {
"version": "2025-03-31",
"version": "2025-12-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hardwaresecuritymodules/cloudhsmclusters/{}/restore", "2025-03-31"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hardwaresecuritymodules/cloudhsmclusters/{}/restore", "2025-12-01-preview"],
]
}

Expand Down Expand Up @@ -158,7 +159,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-03-31",
"api-version", "2025-12-01-preview",
required=True,
),
}
Expand Down
2 changes: 1 addition & 1 deletion src/cloudhsm/azext_cloudhsm/azext_metadata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"azext.isPreview": true,
"azext.minCliCoreVersion": "2.70.0"
"azext.minCliCoreVersion": "2.75.0"
}
Loading
Loading