Skip to content

Commit a959662

Browse files
author
Carlos Hinojosa Cavada
committed
standbypool: upgrade to API version 2025-10-01
- Regenerate all CLI commands from 2025-10-01 stable swagger - Add DynamicSizing support (--dynamic-sizing-enabled) for VM and container group pools - Add PostProvisioningDelay support (--post-provisioning-delay) for VM pools - Remove maxReadyCapacity max=2000 constraint - Bump extension version to 3.0.0 - Update tests and re-record test recordings
1 parent 2286135 commit a959662

20 files changed

Lines changed: 1440 additions & 1485 deletions

src/standbypool/HISTORY.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
Release History
44
===============
55

6+
2.1.0
7+
++++++
8+
* Upgrade api-version to 2025-10-01
9+
* `az standby-vm-pool create/update`: Add new properties `--dynamic-sizing-enabled` and `--post-provisioning-delay`.
10+
* `az standby-container-group-pool create/update`: Add new property `--dynamic-sizing-enabled`.
11+
* `az standby-vm-pool create/update`: Remove max=2000 constraint on `--max-ready-capacity` and `--min-ready-capacity`.
12+
613
2.0.0
714
++++++
815
* Upgrade api-version to 2025-03-01

src/standbypool/azext_standbypool/aaz/latest/standby_container_group_pool/_create.py

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ class Create(AAZCommand):
1818
"""Create a StandbyContainerGroupPoolResource
1919
2020
:example: StandbyContainerGroupPools_CreateOrUpdate
21-
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
21+
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
2222
"""
2323

2424
_aaz_info = {
25-
"version": "2025-03-01",
25+
"version": "2025-10-01",
2626
"resources": [
27-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.standbypool/standbycontainergrouppools/{}", "2025-03-01"],
27+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.standbypool/standbycontainergrouppools/{}", "2025-10-01"],
2828
]
2929
}
3030

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

4747
_args_schema = cls._args_schema
4848
_args_schema.resource_group = AAZResourceGroupNameArg(
49-
help="The resource group",
5049
required=True,
5150
)
5251
_args_schema.name = AAZStrArg(
@@ -91,6 +90,15 @@ def _build_arguments_schema(cls, *args, **kwargs):
9190
required=True,
9291
)
9392

93+
# define Arg Group "DynamicSizing"
94+
95+
_args_schema = cls._args_schema
96+
_args_schema.dynamic_sizing_enabled = AAZBoolArg(
97+
options=["--dynamic-sizing-enabled"],
98+
arg_group="DynamicSizing",
99+
help="Indicates whether dynamic sizing is enabled for the standby pool.",
100+
)
101+
94102
# define Arg Group "ElasticityProfile"
95103

96104
_args_schema = cls._args_schema
@@ -99,7 +107,6 @@ def _build_arguments_schema(cls, *args, **kwargs):
99107
arg_group="ElasticityProfile",
100108
help="Specifies maximum number of standby container groups in the standby pool.",
101109
fmt=AAZIntArgFormat(
102-
maximum=2000,
103110
minimum=0,
104111
),
105112
)
@@ -224,7 +231,7 @@ def url_parameters(self):
224231
def query_parameters(self):
225232
parameters = {
226233
**self.serialize_query_param(
227-
"api-version", "2025-03-01",
234+
"api-version", "2025-10-01",
228235
required=True,
229236
),
230237
}
@@ -279,9 +286,14 @@ def content(self):
279286

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

293+
dynamic_sizing = _builder.get(".properties.elasticityProfile.dynamicSizing")
294+
if dynamic_sizing is not None:
295+
dynamic_sizing.set_prop("enabled", AAZBoolType, ".dynamic_sizing_enabled")
296+
285297
zones = _builder.get(".properties.zones")
286298
if zones is not None:
287299
zones.set_elements(AAZStrType, ".")
@@ -370,6 +382,9 @@ def _build_schema_on_200_201(cls):
370382
)
371383

372384
elasticity_profile = cls._schema_on_200_201.properties.elasticity_profile
385+
elasticity_profile.dynamic_sizing = AAZObjectType(
386+
serialized_name="dynamicSizing",
387+
)
373388
elasticity_profile.max_ready_capacity = AAZIntType(
374389
serialized_name="maxReadyCapacity",
375390
flags={"required": True},
@@ -378,6 +393,9 @@ def _build_schema_on_200_201(cls):
378393
serialized_name="refillPolicy",
379394
)
380395

396+
dynamic_sizing = cls._schema_on_200_201.properties.elasticity_profile.dynamic_sizing
397+
dynamic_sizing.enabled = AAZBoolType()
398+
381399
zones = cls._schema_on_200_201.properties.zones
382400
zones.Element = AAZStrType()
383401

src/standbypool/azext_standbypool/aaz/latest/standby_container_group_pool/_delete.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ class Delete(AAZCommand):
1919
"""Delete a StandbyContainerGroupPoolResource
2020
2121
:example: StandbyContainerGroupPools_Delete
22-
az standby-container-group-pool delete --resource-group rgstandbypool --name pool --subscription 00000000-0000-0000-0000-000000000009
22+
az standby-container-group-pool delete --resource-group rgstandbypool --name pool
2323
"""
2424

2525
_aaz_info = {
26-
"version": "2025-03-01",
26+
"version": "2025-10-01",
2727
"resources": [
28-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.standbypool/standbycontainergrouppools/{}", "2025-03-01"],
28+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.standbypool/standbycontainergrouppools/{}", "2025-10-01"],
2929
]
3030
}
3131

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

4848
_args_schema = cls._args_schema
4949
_args_schema.resource_group = AAZResourceGroupNameArg(
50-
help="The resource group",
5150
required=True,
5251
)
5352
_args_schema.name = AAZStrArg(
@@ -147,7 +146,7 @@ def url_parameters(self):
147146
def query_parameters(self):
148147
parameters = {
149148
**self.serialize_query_param(
150-
"api-version", "2025-03-01",
149+
"api-version", "2025-10-01",
151150
required=True,
152151
),
153152
}

src/standbypool/azext_standbypool/aaz/latest/standby_container_group_pool/_list.py

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515
"standby-container-group-pool list",
1616
)
1717
class List(AAZCommand):
18-
"""List StandbyContainerGroupPoolResource resources by subscription ID by resource group
18+
"""List StandbyContainerGroupPoolResource resources by subscription ID
1919
2020
:example: StandbyContainerGroupPools_ListBySubscription
21-
az standby-container-group-pool list --subscription 00000000-0000-0000-0000-000000000009 --resource-group resourceGroup
21+
az standby-container-group-pool list
2222
"""
2323

2424
_aaz_info = {
25-
"version": "2025-03-01",
25+
"version": "2025-10-01",
2626
"resources": [
27-
["mgmt-plane", "/subscriptions/{}/providers/microsoft.standbypool/standbycontainergrouppools", "2025-03-01"],
28-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.standbypool/standbycontainergrouppools", "2025-03-01"],
27+
["mgmt-plane", "/subscriptions/{}/providers/microsoft.standbypool/standbycontainergrouppools", "2025-10-01"],
28+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.standbypool/standbycontainergrouppools", "2025-10-01"],
2929
]
3030
}
3131

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

4848
_args_schema = cls._args_schema
49-
_args_schema.resource_group = AAZResourceGroupNameArg(
50-
help="The resource group",
51-
)
49+
_args_schema.resource_group = AAZResourceGroupNameArg()
5250
return cls._args_schema
5351

5452
def _execute_operations(self):
@@ -114,7 +112,7 @@ def url_parameters(self):
114112
def query_parameters(self):
115113
parameters = {
116114
**self.serialize_query_param(
117-
"api-version", "2025-03-01",
115+
"api-version", "2025-10-01",
118116
required=True,
119117
),
120118
}
@@ -218,6 +216,9 @@ def _build_schema_on_200(cls):
218216
)
219217

220218
elasticity_profile = cls._schema_on_200.value.Element.properties.elasticity_profile
219+
elasticity_profile.dynamic_sizing = AAZObjectType(
220+
serialized_name="dynamicSizing",
221+
)
221222
elasticity_profile.max_ready_capacity = AAZIntType(
222223
serialized_name="maxReadyCapacity",
223224
flags={"required": True},
@@ -226,6 +227,9 @@ def _build_schema_on_200(cls):
226227
serialized_name="refillPolicy",
227228
)
228229

230+
dynamic_sizing = cls._schema_on_200.value.Element.properties.elasticity_profile.dynamic_sizing
231+
dynamic_sizing.enabled = AAZBoolType()
232+
229233
zones = cls._schema_on_200.value.Element.properties.zones
230234
zones.Element = AAZStrType()
231235

@@ -298,7 +302,7 @@ def url_parameters(self):
298302
def query_parameters(self):
299303
parameters = {
300304
**self.serialize_query_param(
301-
"api-version", "2025-03-01",
305+
"api-version", "2025-10-01",
302306
required=True,
303307
),
304308
}
@@ -402,6 +406,9 @@ def _build_schema_on_200(cls):
402406
)
403407

404408
elasticity_profile = cls._schema_on_200.value.Element.properties.elasticity_profile
409+
elasticity_profile.dynamic_sizing = AAZObjectType(
410+
serialized_name="dynamicSizing",
411+
)
405412
elasticity_profile.max_ready_capacity = AAZIntType(
406413
serialized_name="maxReadyCapacity",
407414
flags={"required": True},
@@ -410,6 +417,9 @@ def _build_schema_on_200(cls):
410417
serialized_name="refillPolicy",
411418
)
412419

420+
dynamic_sizing = cls._schema_on_200.value.Element.properties.elasticity_profile.dynamic_sizing
421+
dynamic_sizing.enabled = AAZBoolType()
422+
413423
zones = cls._schema_on_200.value.Element.properties.zones
414424
zones.Element = AAZStrType()
415425

src/standbypool/azext_standbypool/aaz/latest/standby_container_group_pool/_show.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ class Show(AAZCommand):
1818
"""Get a StandbyContainerGroupPoolResource
1919
2020
:example: StandbyContainerGroupPools_Get
21-
az standby-container-group-pool show --resource-group rgstandbypool --name pool --subscription 00000000-0000-0000-0000-000000000009
21+
az standby-container-group-pool show --resource-group rgstandbypool --name pool
2222
"""
2323

2424
_aaz_info = {
25-
"version": "2025-03-01",
25+
"version": "2025-10-01",
2626
"resources": [
27-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.standbypool/standbycontainergrouppools/{}", "2025-03-01"],
27+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.standbypool/standbycontainergrouppools/{}", "2025-10-01"],
2828
]
2929
}
3030

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

4646
_args_schema = cls._args_schema
4747
_args_schema.resource_group = AAZResourceGroupNameArg(
48-
help="The resource group",
4948
required=True,
5049
)
5150
_args_schema.name = AAZStrArg(
@@ -124,7 +123,7 @@ def url_parameters(self):
124123
def query_parameters(self):
125124
parameters = {
126125
**self.serialize_query_param(
127-
"api-version", "2025-03-01",
126+
"api-version", "2025-10-01",
128127
required=True,
129128
),
130129
}
@@ -217,6 +216,9 @@ def _build_schema_on_200(cls):
217216
)
218217

219218
elasticity_profile = cls._schema_on_200.properties.elasticity_profile
219+
elasticity_profile.dynamic_sizing = AAZObjectType(
220+
serialized_name="dynamicSizing",
221+
)
220222
elasticity_profile.max_ready_capacity = AAZIntType(
221223
serialized_name="maxReadyCapacity",
222224
flags={"required": True},
@@ -225,6 +227,9 @@ def _build_schema_on_200(cls):
225227
serialized_name="refillPolicy",
226228
)
227229

230+
dynamic_sizing = cls._schema_on_200.properties.elasticity_profile.dynamic_sizing
231+
dynamic_sizing.enabled = AAZBoolType()
232+
228233
zones = cls._schema_on_200.properties.zones
229234
zones.Element = AAZStrType()
230235

src/standbypool/azext_standbypool/aaz/latest/standby_container_group_pool/_status.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
class Status(AAZCommand):
1818
"""Get a StandbyContainerGroupPoolRuntimeViewResource
1919
20-
:example: StandbyContainerGroupPoolRuntimeViews_Status
21-
az standby-container-group-pool status --resource-group rgstandbypool --name pool --version latest --subscription 00000000-0000-0000-0000-000000000009
20+
:example: StandbyContainerGroupPoolRuntimeViews_Get
21+
az standby-container-group-pool status --resource-group rgstandbypool --name pool --version latest
2222
"""
2323

2424
_aaz_info = {
25-
"version": "2025-03-01",
25+
"version": "2025-10-01",
2626
"resources": [
27-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.standbypool/standbycontainergrouppools/{}/runtimeviews/{}", "2025-03-01"],
27+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.standbypool/standbycontainergrouppools/{}/runtimeviews/{}", "2025-10-01"],
2828
]
2929
}
3030

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

4646
_args_schema = cls._args_schema
4747
_args_schema.resource_group = AAZResourceGroupNameArg(
48-
help="The resource group",
4948
required=True,
5049
)
5150
_args_schema.version = AAZStrArg(
@@ -138,7 +137,7 @@ def url_parameters(self):
138137
def query_parameters(self):
139138
parameters = {
140139
**self.serialize_query_param(
141-
"api-version", "2025-03-01",
140+
"api-version", "2025-10-01",
142141
required=True,
143142
),
144143
}

0 commit comments

Comments
 (0)