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
4 changes: 4 additions & 0 deletions src/elastic-san/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Release History
===============
1.3.2
++++++
* `az elastic-san`: Support autoscale, prerestore, and prebackup

1.3.1b1
++++++
* `az elastic-san volume-group create/update`: Add warning for CRC data integration check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class Create(AAZCommand):
"""

_aaz_info = {
"version": "2024-07-01-preview",
"version": "2025-09-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}", "2024-07-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}", "2025-09-01"],
]
}

Expand Down Expand Up @@ -69,26 +69,22 @@ def _build_arguments_schema(cls, *args, **kwargs):
options=["--auto-scale-policy", "--auto-scale-policy-enforcement"],
arg_group="AutoScaleProperties",
help="Enable or Disable scale up setting on Elastic San Appliance.",
is_preview=True,
enum={"Disabled": "Disabled", "Enabled": "Enabled", "None": "None"},
)
_args_schema.capacity_unit_scale_up_limit_tib = AAZIntArg(
options=["--capacity-unit-scale-up", "--capacity-unit-scale-up-limit-tib"],
arg_group="AutoScaleProperties",
help="Maximum scale up size on Elastic San appliance in TiB.",
is_preview=True,
)
_args_schema.increase_capacity_unit_by_tib = AAZIntArg(
options=["--increase-capacity-unit", "--increase-capacity-unit-by-tib"],
arg_group="AutoScaleProperties",
help="Unit to increase Capacity Unit on Elastic San appliance in TiB.",
is_preview=True,
)
_args_schema.unused_size_tib = AAZIntArg(
options=["--unused-size-tib"],
arg_group="AutoScaleProperties",
help="Unused size on Elastic San appliance in TiB.",
is_preview=True,
)

# define Arg Group "Parameters"
Expand Down Expand Up @@ -244,7 +240,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-07-01-preview",
"api-version", "2025-09-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class Delete(AAZCommand):
"""

_aaz_info = {
"version": "2024-07-01-preview",
"version": "2025-09-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}", "2024-07-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}", "2025-09-01"],
]
}

Expand Down Expand Up @@ -148,7 +148,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-07-01-preview",
"api-version", "2025-09-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ class List(AAZCommand):
"""

_aaz_info = {
"version": "2024-07-01-preview",
"version": "2025-09-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/providers/microsoft.elasticsan/elasticsans", "2024-07-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans", "2024-07-01-preview"],
["mgmt-plane", "/subscriptions/{}/providers/microsoft.elasticsan/elasticsans", "2025-09-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans", "2025-09-01"],
]
}

Expand Down Expand Up @@ -112,7 +112,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-07-01-preview",
"api-version", "2025-09-01",
required=True,
),
}
Expand Down Expand Up @@ -147,9 +147,10 @@ def _build_schema_on_200(cls):
_schema_on_200 = cls._schema_on_200
_schema_on_200.next_link = AAZStrType(
serialized_name="nextLink",
flags={"read_only": True},
)
_schema_on_200.value = AAZListType()
_schema_on_200.value = AAZListType(
flags={"required": True},
)

value = cls._schema_on_200.value
value.Element = AAZObjectType()
Expand Down Expand Up @@ -357,7 +358,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-07-01-preview",
"api-version", "2025-09-01",
required=True,
),
}
Expand Down Expand Up @@ -392,9 +393,10 @@ def _build_schema_on_200(cls):
_schema_on_200 = cls._schema_on_200
_schema_on_200.next_link = AAZStrType(
serialized_name="nextLink",
flags={"read_only": True},
)
_schema_on_200.value = AAZListType()
_schema_on_200.value = AAZListType(
flags={"required": True},
)

value = cls._schema_on_200.value
value.Element = AAZObjectType()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class ListSku(AAZCommand):
"""

_aaz_info = {
"version": "2024-07-01-preview",
"version": "2025-09-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/providers/microsoft.elasticsan/skus", "2024-07-01-preview"],
["mgmt-plane", "/subscriptions/{}/providers/microsoft.elasticsan/skus", "2025-09-01"],
]
}

Expand Down Expand Up @@ -110,7 +110,7 @@ def query_parameters(self):
"$filter", self.ctx.args.filter,
),
**self.serialize_query_param(
"api-version", "2024-07-01-preview",
"api-version", "2025-09-01",
required=True,
),
}
Expand Down Expand Up @@ -145,7 +145,6 @@ def _build_schema_on_200(cls):
_schema_on_200 = cls._schema_on_200
_schema_on_200.next_link = AAZStrType(
serialized_name="nextLink",
flags={"read_only": True},
)
_schema_on_200.value = AAZListType(
flags={"read_only": True},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Show(AAZCommand):
"""

_aaz_info = {
"version": "2024-07-01-preview",
"version": "2025-09-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}", "2024-07-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}", "2025-09-01"],
]
}

Expand Down Expand Up @@ -125,7 +125,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-07-01-preview",
"api-version", "2025-09-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Update(AAZCommand):
"""

_aaz_info = {
"version": "2024-07-01-preview",
"version": "2025-09-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}", "2024-07-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}", "2025-09-01"],
]
}

Expand Down Expand Up @@ -69,29 +69,25 @@ def _build_arguments_schema(cls, *args, **kwargs):
options=["--auto-scale-policy", "--auto-scale-policy-enforcement"],
arg_group="AutoScaleProperties",
help="Enable or Disable scale up setting on Elastic San Appliance.",
is_preview=True,
nullable=True,
enum={"Disabled": "Disabled", "Enabled": "Enabled", "None": "None"},
)
_args_schema.capacity_unit_scale_up_limit_tib = AAZIntArg(
options=["--capacity-unit-scale-up", "--capacity-unit-scale-up-limit-tib"],
arg_group="AutoScaleProperties",
help="Maximum scale up size on Elastic San appliance in TiB.",
is_preview=True,
nullable=True,
)
_args_schema.increase_capacity_unit_by_tib = AAZIntArg(
options=["--increase-capacity-unit", "--increase-capacity-unit-by-tib"],
arg_group="AutoScaleProperties",
help="Unit to increase Capacity Unit on Elastic San appliance in TiB.",
is_preview=True,
nullable=True,
)
_args_schema.unused_size_tib = AAZIntArg(
options=["--unused-size-tib"],
arg_group="AutoScaleProperties",
help="Unused size on Elastic San appliance in TiB.",
is_preview=True,
nullable=True,
)

Expand Down Expand Up @@ -239,7 +235,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-07-01-preview",
"api-version", "2025-09-01",
required=True,
),
}
Expand Down Expand Up @@ -338,7 +334,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-07-01-preview",
"api-version", "2025-09-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand):

_aaz_info = {
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}", "2024-07-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}", "2025-09-01"],
]
}

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

@register_command(
"elastic-san volume-group test-backup",
is_preview=True,
)
class TestBackup(AAZCommand):
"""Validate whether a disk snapshot backup can be taken for list of volumes.
Expand All @@ -23,9 +22,9 @@ class TestBackup(AAZCommand):
"""

_aaz_info = {
"version": "2024-07-01-preview",
"version": "2025-09-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}/prebackup", "2024-07-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}/prebackup", "2025-09-01"],
]
}

Expand Down Expand Up @@ -171,7 +170,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-07-01-preview",
"api-version", "2025-09-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

@register_command(
"elastic-san volume-group test-restore",
is_preview=True,
)
class TestRestore(AAZCommand):
"""Validate whether a list of backed up disk snapshots can be restored into ElasticSan volumes.
Expand All @@ -23,9 +22,9 @@ class TestRestore(AAZCommand):
"""

_aaz_info = {
"version": "2024-07-01-preview",
"version": "2025-09-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}/prerestore", "2024-07-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}/prerestore", "2025-09-01"],
]
}

Expand Down Expand Up @@ -171,7 +170,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-07-01-preview",
"api-version", "2025-09-01",
required=True,
),
}
Expand Down
2 changes: 1 addition & 1 deletion src/elastic-san/azext_elastic_san/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