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
7 changes: 7 additions & 0 deletions src/standbypool/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
Release History
===============

2.1.0
++++++
* Upgrade api-version to 2025-10-01
* `az standby-vm-pool create/update`: Add new properties `--dynamic-sizing-enabled` and `--post-provisioning-delay`.
* `az standby-container-group-pool create/update`: Add new property `--dynamic-sizing-enabled`.
* `az standby-vm-pool create/update`: Remove max=2000 constraint on `--max-ready-capacity` and `--min-ready-capacity`.

2.0.0
++++++
* Upgrade api-version to 2025-03-01
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ class Create(AAZCommand):
"""Create a StandbyContainerGroupPoolResource

:example: StandbyContainerGroupPools_CreateOrUpdate
az standby-container-group-pool create --resource-group rgstandbypool --name pool --max-ready-capacity 688 --refill-policy always --container-profile-id /subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.ContainerInstance/containerGroupProfiles/cgProfile --profile-revision 1 --subnet-ids "[{id:/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Network/virtualNetworks/cgSubnet/subnets/cgSubnet}]" --zones "[1,2,3]" --tags "{}" --location West US --subscription 00000000-0000-0000-0000-000000000009
az standby-container-group-pool create --resource-group rgstandbypool --name pool --max-ready-capacity 688 --refill-policy always --dynamic-sizing-enabled True --container-profile-id /subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.ContainerInstance/containerGroupProfiles/cgProfile --profile-revision 1 --subnet-ids "[{id:/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Network/virtualNetworks/cgSubnet/subnets/cgSubnet}]" --zones "[1,2,3]" --tags "{}" --location West US
"""

_aaz_info = {
"version": "2025-03-01",
"version": "2025-10-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.standbypool/standbycontainergrouppools/{}", "2025-03-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.standbypool/standbycontainergrouppools/{}", "2025-10-01"],
]
}

Expand All @@ -46,7 +46,6 @@ def _build_arguments_schema(cls, *args, **kwargs):

_args_schema = cls._args_schema
_args_schema.resource_group = AAZResourceGroupNameArg(
help="The resource group",
required=True,
)
_args_schema.name = AAZStrArg(
Expand Down Expand Up @@ -91,6 +90,15 @@ def _build_arguments_schema(cls, *args, **kwargs):
required=True,
)

# define Arg Group "DynamicSizing"

_args_schema = cls._args_schema
_args_schema.dynamic_sizing_enabled = AAZBoolArg(
options=["--dynamic-sizing-enabled"],
arg_group="DynamicSizing",
help="Indicates whether dynamic sizing is enabled for the standby pool.",
)

# define Arg Group "ElasticityProfile"

_args_schema = cls._args_schema
Expand All @@ -99,7 +107,6 @@ def _build_arguments_schema(cls, *args, **kwargs):
arg_group="ElasticityProfile",
help="Specifies maximum number of standby container groups in the standby pool.",
fmt=AAZIntArgFormat(
maximum=2000,
minimum=0,
),
)
Expand Down Expand Up @@ -224,7 +231,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-03-01",
"api-version", "2025-10-01",
required=True,
),
}
Expand Down Expand Up @@ -279,9 +286,14 @@ def content(self):

elasticity_profile = _builder.get(".properties.elasticityProfile")
if elasticity_profile is not None:
elasticity_profile.set_prop("dynamicSizing", AAZObjectType)
elasticity_profile.set_prop("maxReadyCapacity", AAZIntType, ".max_ready_capacity", typ_kwargs={"flags": {"required": True}})
elasticity_profile.set_prop("refillPolicy", AAZStrType, ".refill_policy")

dynamic_sizing = _builder.get(".properties.elasticityProfile.dynamicSizing")
if dynamic_sizing is not None:
dynamic_sizing.set_prop("enabled", AAZBoolType, ".dynamic_sizing_enabled")

zones = _builder.get(".properties.zones")
if zones is not None:
zones.set_elements(AAZStrType, ".")
Expand Down Expand Up @@ -370,6 +382,9 @@ def _build_schema_on_200_201(cls):
)

elasticity_profile = cls._schema_on_200_201.properties.elasticity_profile
elasticity_profile.dynamic_sizing = AAZObjectType(
serialized_name="dynamicSizing",
)
elasticity_profile.max_ready_capacity = AAZIntType(
serialized_name="maxReadyCapacity",
flags={"required": True},
Expand All @@ -378,6 +393,9 @@ def _build_schema_on_200_201(cls):
serialized_name="refillPolicy",
)

dynamic_sizing = cls._schema_on_200_201.properties.elasticity_profile.dynamic_sizing
dynamic_sizing.enabled = AAZBoolType()

zones = cls._schema_on_200_201.properties.zones
zones.Element = AAZStrType()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ class Delete(AAZCommand):
"""Delete a StandbyContainerGroupPoolResource

:example: StandbyContainerGroupPools_Delete
az standby-container-group-pool delete --resource-group rgstandbypool --name pool --subscription 00000000-0000-0000-0000-000000000009
az standby-container-group-pool delete --resource-group rgstandbypool --name pool
"""

_aaz_info = {
"version": "2025-03-01",
"version": "2025-10-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.standbypool/standbycontainergrouppools/{}", "2025-03-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.standbypool/standbycontainergrouppools/{}", "2025-10-01"],
]
}

Expand All @@ -47,7 +47,6 @@ def _build_arguments_schema(cls, *args, **kwargs):

_args_schema = cls._args_schema
_args_schema.resource_group = AAZResourceGroupNameArg(
help="The resource group",
required=True,
)
_args_schema.name = AAZStrArg(
Expand Down Expand Up @@ -147,7 +146,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-03-01",
"api-version", "2025-10-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
"standby-container-group-pool list",
)
class List(AAZCommand):
"""List StandbyContainerGroupPoolResource resources by subscription ID by resource group
"""List StandbyContainerGroupPoolResource resources by subscription ID

:example: StandbyContainerGroupPools_ListBySubscription
az standby-container-group-pool list --subscription 00000000-0000-0000-0000-000000000009 --resource-group resourceGroup
az standby-container-group-pool list
"""

_aaz_info = {
"version": "2025-03-01",
"version": "2025-10-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/providers/microsoft.standbypool/standbycontainergrouppools", "2025-03-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.standbypool/standbycontainergrouppools", "2025-03-01"],
["mgmt-plane", "/subscriptions/{}/providers/microsoft.standbypool/standbycontainergrouppools", "2025-10-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.standbypool/standbycontainergrouppools", "2025-10-01"],
]
}

Expand All @@ -46,9 +46,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
# define Arg Group ""

_args_schema = cls._args_schema
_args_schema.resource_group = AAZResourceGroupNameArg(
help="The resource group",
)
_args_schema.resource_group = AAZResourceGroupNameArg()
return cls._args_schema

def _execute_operations(self):
Expand Down Expand Up @@ -114,7 +112,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-03-01",
"api-version", "2025-10-01",
required=True,
),
}
Expand Down Expand Up @@ -218,6 +216,9 @@ def _build_schema_on_200(cls):
)

elasticity_profile = cls._schema_on_200.value.Element.properties.elasticity_profile
elasticity_profile.dynamic_sizing = AAZObjectType(
serialized_name="dynamicSizing",
)
elasticity_profile.max_ready_capacity = AAZIntType(
serialized_name="maxReadyCapacity",
flags={"required": True},
Expand All @@ -226,6 +227,9 @@ def _build_schema_on_200(cls):
serialized_name="refillPolicy",
)

dynamic_sizing = cls._schema_on_200.value.Element.properties.elasticity_profile.dynamic_sizing
dynamic_sizing.enabled = AAZBoolType()

zones = cls._schema_on_200.value.Element.properties.zones
zones.Element = AAZStrType()

Expand Down Expand Up @@ -298,7 +302,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-03-01",
"api-version", "2025-10-01",
required=True,
),
}
Expand Down Expand Up @@ -402,6 +406,9 @@ def _build_schema_on_200(cls):
)

elasticity_profile = cls._schema_on_200.value.Element.properties.elasticity_profile
elasticity_profile.dynamic_sizing = AAZObjectType(
serialized_name="dynamicSizing",
)
elasticity_profile.max_ready_capacity = AAZIntType(
serialized_name="maxReadyCapacity",
flags={"required": True},
Expand All @@ -410,6 +417,9 @@ def _build_schema_on_200(cls):
serialized_name="refillPolicy",
)

dynamic_sizing = cls._schema_on_200.value.Element.properties.elasticity_profile.dynamic_sizing
dynamic_sizing.enabled = AAZBoolType()

zones = cls._schema_on_200.value.Element.properties.zones
zones.Element = AAZStrType()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ class Show(AAZCommand):
"""Get a StandbyContainerGroupPoolResource

:example: StandbyContainerGroupPools_Get
az standby-container-group-pool show --resource-group rgstandbypool --name pool --subscription 00000000-0000-0000-0000-000000000009
az standby-container-group-pool show --resource-group rgstandbypool --name pool
"""

_aaz_info = {
"version": "2025-03-01",
"version": "2025-10-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.standbypool/standbycontainergrouppools/{}", "2025-03-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.standbypool/standbycontainergrouppools/{}", "2025-10-01"],
]
}

Expand All @@ -45,7 +45,6 @@ def _build_arguments_schema(cls, *args, **kwargs):

_args_schema = cls._args_schema
_args_schema.resource_group = AAZResourceGroupNameArg(
help="The resource group",
required=True,
)
_args_schema.name = AAZStrArg(
Expand Down Expand Up @@ -124,7 +123,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-03-01",
"api-version", "2025-10-01",
required=True,
),
}
Expand Down Expand Up @@ -217,6 +216,9 @@ def _build_schema_on_200(cls):
)

elasticity_profile = cls._schema_on_200.properties.elasticity_profile
elasticity_profile.dynamic_sizing = AAZObjectType(
serialized_name="dynamicSizing",
)
elasticity_profile.max_ready_capacity = AAZIntType(
serialized_name="maxReadyCapacity",
flags={"required": True},
Expand All @@ -225,6 +227,9 @@ def _build_schema_on_200(cls):
serialized_name="refillPolicy",
)

dynamic_sizing = cls._schema_on_200.properties.elasticity_profile.dynamic_sizing
dynamic_sizing.enabled = AAZBoolType()

zones = cls._schema_on_200.properties.zones
zones.Element = AAZStrType()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
class Status(AAZCommand):
"""Get a StandbyContainerGroupPoolRuntimeViewResource

:example: StandbyContainerGroupPoolRuntimeViews_Status
az standby-container-group-pool status --resource-group rgstandbypool --name pool --version latest --subscription 00000000-0000-0000-0000-000000000009
:example: StandbyContainerGroupPoolRuntimeViews_Get
az standby-container-group-pool status --resource-group rgstandbypool --name pool --version latest
"""

_aaz_info = {
"version": "2025-03-01",
"version": "2025-10-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.standbypool/standbycontainergrouppools/{}/runtimeviews/{}", "2025-03-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.standbypool/standbycontainergrouppools/{}/runtimeviews/{}", "2025-10-01"],
]
}

Expand All @@ -45,7 +45,6 @@ def _build_arguments_schema(cls, *args, **kwargs):

_args_schema = cls._args_schema
_args_schema.resource_group = AAZResourceGroupNameArg(
help="The resource group",
required=True,
)
_args_schema.version = AAZStrArg(
Expand Down Expand Up @@ -138,7 +137,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-03-01",
"api-version", "2025-10-01",
required=True,
),
}
Expand Down
Loading
Loading