Skip to content

Commit 83085e0

Browse files
Upgrade VMware extension to 2024-09-01 API (#8861)
1 parent a6de7cc commit 83085e0

File tree

171 files changed

+5836
-1125
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+5836
-1125
lines changed

src/vmware/HISTORY.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Release History
22

3+
## 8.0.0 (2025-07)
4+
5+
- Bump minimum required Az CLI version to `2.70.0`
6+
- Upgrade default API version from `2023-09-01` to `2024-09-01`
7+
- Add `--management-network` and `--uplink-network` to `az vmware addon hcx create` and `az vmware addon hcx update`
8+
- Add `--zones` to `az vmware private-cloud create`
9+
- Add `az vmware script-execution get-execution-log` command
10+
- Add `az vmware cluster host` command group
11+
- Add `az vmware datastores pure-storage-volume` command group
12+
- Add `az vmware provisioned-network` command group
13+
- Add `az vmware pure-storage-policy` command group
14+
- Add `az vmware skus` command group
15+
- [BREAKING CHANGE] Remove `--nsxt-password` and `--vcenter-password` as parameters for `az vmware private-cloud create` and `az vmware private-cloud update`
16+
317
## 7.2.0 (2025-02)
418

519
- Bump minimum required Az CLI version to `2.67.0`

src/vmware/azext_vmware/_help.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,19 @@
311311
text: az vmware datastore elastic-san-volume create --name ElasticSANDatastore --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --elastic-san-volume elasticsan
312312
"""
313313

314+
helps['vmware datastore pure-storage-volume'] = """
315+
type: group
316+
short-summary: Manage Pure Storage volume resource.
317+
"""
318+
319+
helps['vmware datastore pure-storage-volume create'] = """
320+
type: command
321+
short-summary: Create a Pure Storage volume in a private cloud cluster using PureStorage.Block provider.
322+
examples:
323+
- name: Create a new PureStorage.Block provided Pure Storage volume based datastore.
324+
text: az vmware datastore pure-storage-volume create --name PureStorageDatastore --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --storage-pool-id "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/PureStorage.Block/storagePools/storagePool1" --size-gb 64
325+
"""
326+
314327
helps['vmware datastore show'] = """
315328
type: command
316329
short-summary: Show details of a datastore in a private cloud cluster.

src/vmware/azext_vmware/aaz/latest/vmware/addon/_create.py

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ class Create(AAZCommand):
1616
"""
1717

1818
_aaz_info = {
19-
"version": "2023-09-01",
19+
"version": "2024-09-01",
2020
"resources": [
21-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/addons/{}", "2023-09-01"],
21+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/addons/{}", "2024-09-01"],
2222
]
2323
}
2424

@@ -90,11 +90,19 @@ def _build_arguments_schema(cls, *args, **kwargs):
9090
)
9191

9292
hcx = cls._args_schema.hcx
93+
hcx.management_network = AAZStrArg(
94+
options=["management-network"],
95+
help="HCX management network.",
96+
)
9397
hcx.offer = AAZStrArg(
9498
options=["offer"],
9599
help="The HCX offer, example VMware MaaS Cloud Provider (Enterprise)",
96100
required=True,
97101
)
102+
hcx.uplink_network = AAZStrArg(
103+
options=["uplink-network"],
104+
help="HCX uplink network",
105+
)
98106

99107
srm = cls._args_schema.srm
100108
srm.license_key = AAZStrArg(
@@ -195,7 +203,7 @@ def url_parameters(self):
195203
def query_parameters(self):
196204
parameters = {
197205
**self.serialize_query_param(
198-
"api-version", "2023-09-01",
206+
"api-version", "2024-09-01",
199207
required=True,
200208
),
201209
}
@@ -220,7 +228,7 @@ def content(self):
220228
typ=AAZObjectType,
221229
typ_kwargs={"flags": {"required": True, "client_flatten": True}}
222230
)
223-
_builder.set_prop("properties", AAZObjectType)
231+
_builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}})
224232

225233
properties = _builder.get(".properties")
226234
if properties is not None:
@@ -239,7 +247,9 @@ def content(self):
239247

240248
disc_hcx = _builder.get(".properties{addonType:HCX}")
241249
if disc_hcx is not None:
250+
disc_hcx.set_prop("managementNetwork", AAZStrType, ".hcx.management_network")
242251
disc_hcx.set_prop("offer", AAZStrType, ".hcx.offer", typ_kwargs={"flags": {"required": True}})
252+
disc_hcx.set_prop("uplinkNetwork", AAZStrType, ".hcx.uplink_network")
243253

244254
disc_srm = _builder.get(".properties{addonType:SRM}")
245255
if disc_srm is not None:
@@ -275,7 +285,9 @@ def _build_schema_on_200_201(cls):
275285
_schema_on_200_201.name = AAZStrType(
276286
flags={"read_only": True},
277287
)
278-
_schema_on_200_201.properties = AAZObjectType()
288+
_schema_on_200_201.properties = AAZObjectType(
289+
flags={"client_flatten": True},
290+
)
279291
_schema_on_200_201.system_data = AAZObjectType(
280292
serialized_name="systemData",
281293
flags={"read_only": True},
@@ -300,9 +312,15 @@ def _build_schema_on_200_201(cls):
300312
)
301313

302314
disc_hcx = cls._schema_on_200_201.properties.discriminate_by("addon_type", "HCX")
315+
disc_hcx.management_network = AAZStrType(
316+
serialized_name="managementNetwork",
317+
)
303318
disc_hcx.offer = AAZStrType(
304319
flags={"required": True},
305320
)
321+
disc_hcx.uplink_network = AAZStrType(
322+
serialized_name="uplinkNetwork",
323+
)
306324

307325
disc_srm = cls._schema_on_200_201.properties.discriminate_by("addon_type", "SRM")
308326
disc_srm.license_key = AAZStrType(

src/vmware/azext_vmware/aaz/latest/vmware/addon/_delete.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ class Delete(AAZCommand):
1616
"""
1717

1818
_aaz_info = {
19-
"version": "2023-09-01",
19+
"version": "2024-09-01",
2020
"resources": [
21-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/addons/{}", "2023-09-01"],
21+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/addons/{}", "2024-09-01"],
2222
]
2323
}
2424

@@ -152,7 +152,7 @@ def url_parameters(self):
152152
def query_parameters(self):
153153
parameters = {
154154
**self.serialize_query_param(
155-
"api-version", "2023-09-01",
155+
"api-version", "2024-09-01",
156156
required=True,
157157
),
158158
}

src/vmware/azext_vmware/aaz/latest/vmware/addon/_list.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ class List(AAZCommand):
1919
"""
2020

2121
_aaz_info = {
22-
"version": "2023-09-01",
22+
"version": "2024-09-01",
2323
"resources": [
24-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/addons", "2023-09-01"],
24+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/addons", "2024-09-01"],
2525
]
2626
}
2727

@@ -121,7 +121,7 @@ def url_parameters(self):
121121
def query_parameters(self):
122122
parameters = {
123123
**self.serialize_query_param(
124-
"api-version", "2023-09-01",
124+
"api-version", "2024-09-01",
125125
required=True,
126126
),
127127
}
@@ -171,7 +171,9 @@ def _build_schema_on_200(cls):
171171
_element.name = AAZStrType(
172172
flags={"read_only": True},
173173
)
174-
_element.properties = AAZObjectType()
174+
_element.properties = AAZObjectType(
175+
flags={"client_flatten": True},
176+
)
175177
_element.system_data = AAZObjectType(
176178
serialized_name="systemData",
177179
flags={"read_only": True},
@@ -196,9 +198,15 @@ def _build_schema_on_200(cls):
196198
)
197199

198200
disc_hcx = cls._schema_on_200.value.Element.properties.discriminate_by("addon_type", "HCX")
201+
disc_hcx.management_network = AAZStrType(
202+
serialized_name="managementNetwork",
203+
)
199204
disc_hcx.offer = AAZStrType(
200205
flags={"required": True},
201206
)
207+
disc_hcx.uplink_network = AAZStrType(
208+
serialized_name="uplinkNetwork",
209+
)
202210

203211
disc_srm = cls._schema_on_200.value.Element.properties.discriminate_by("addon_type", "SRM")
204212
disc_srm.license_key = AAZStrType(

src/vmware/azext_vmware/aaz/latest/vmware/addon/_show.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ class Show(AAZCommand):
1616
"""
1717

1818
_aaz_info = {
19-
"version": "2023-09-01",
19+
"version": "2024-09-01",
2020
"resources": [
21-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/addons/{}", "2023-09-01"],
21+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/addons/{}", "2024-09-01"],
2222
]
2323
}
2424

@@ -130,7 +130,7 @@ def url_parameters(self):
130130
def query_parameters(self):
131131
parameters = {
132132
**self.serialize_query_param(
133-
"api-version", "2023-09-01",
133+
"api-version", "2024-09-01",
134134
required=True,
135135
),
136136
}
@@ -169,7 +169,9 @@ def _build_schema_on_200(cls):
169169
_schema_on_200.name = AAZStrType(
170170
flags={"read_only": True},
171171
)
172-
_schema_on_200.properties = AAZObjectType()
172+
_schema_on_200.properties = AAZObjectType(
173+
flags={"client_flatten": True},
174+
)
173175
_schema_on_200.system_data = AAZObjectType(
174176
serialized_name="systemData",
175177
flags={"read_only": True},
@@ -194,9 +196,15 @@ def _build_schema_on_200(cls):
194196
)
195197

196198
disc_hcx = cls._schema_on_200.properties.discriminate_by("addon_type", "HCX")
199+
disc_hcx.management_network = AAZStrType(
200+
serialized_name="managementNetwork",
201+
)
197202
disc_hcx.offer = AAZStrType(
198203
flags={"required": True},
199204
)
205+
disc_hcx.uplink_network = AAZStrType(
206+
serialized_name="uplinkNetwork",
207+
)
200208

201209
disc_srm = cls._schema_on_200.properties.discriminate_by("addon_type", "SRM")
202210
disc_srm.license_key = AAZStrType(

src/vmware/azext_vmware/aaz/latest/vmware/addon/_update.py

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ class Update(AAZCommand):
1616
"""
1717

1818
_aaz_info = {
19-
"version": "2023-09-01",
19+
"version": "2024-09-01",
2020
"resources": [
21-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/addons/{}", "2023-09-01"],
21+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/addons/{}", "2024-09-01"],
2222
]
2323
}
2424

@@ -95,10 +95,20 @@ def _build_arguments_schema(cls, *args, **kwargs):
9595
)
9696

9797
hcx = cls._args_schema.hcx
98+
hcx.management_network = AAZStrArg(
99+
options=["management-network"],
100+
help="HCX management network.",
101+
nullable=True,
102+
)
98103
hcx.offer = AAZStrArg(
99104
options=["offer"],
100105
help="The HCX offer, example VMware MaaS Cloud Provider (Enterprise)",
101106
)
107+
hcx.uplink_network = AAZStrArg(
108+
options=["uplink-network"],
109+
help="HCX uplink network",
110+
nullable=True,
111+
)
102112

103113
srm = cls._args_schema.srm
104114
srm.license_key = AAZStrArg(
@@ -196,7 +206,7 @@ def url_parameters(self):
196206
def query_parameters(self):
197207
parameters = {
198208
**self.serialize_query_param(
199-
"api-version", "2023-09-01",
209+
"api-version", "2024-09-01",
200210
required=True,
201211
),
202212
}
@@ -299,7 +309,7 @@ def url_parameters(self):
299309
def query_parameters(self):
300310
parameters = {
301311
**self.serialize_query_param(
302-
"api-version", "2023-09-01",
312+
"api-version", "2024-09-01",
303313
required=True,
304314
),
305315
}
@@ -357,7 +367,7 @@ def _update_instance(self, instance):
357367
value=instance,
358368
typ=AAZObjectType
359369
)
360-
_builder.set_prop("properties", AAZObjectType)
370+
_builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}})
361371

362372
properties = _builder.get(".properties")
363373
if properties is not None:
@@ -376,7 +386,9 @@ def _update_instance(self, instance):
376386

377387
disc_hcx = _builder.get(".properties{addonType:HCX}")
378388
if disc_hcx is not None:
389+
disc_hcx.set_prop("managementNetwork", AAZStrType, ".hcx.management_network")
379390
disc_hcx.set_prop("offer", AAZStrType, ".hcx.offer", typ_kwargs={"flags": {"required": True}})
391+
disc_hcx.set_prop("uplinkNetwork", AAZStrType, ".hcx.uplink_network")
380392

381393
disc_srm = _builder.get(".properties{addonType:SRM}")
382394
if disc_srm is not None:
@@ -421,7 +433,9 @@ def _build_schema_addon_read(cls, _schema):
421433
addon_read.name = AAZStrType(
422434
flags={"read_only": True},
423435
)
424-
addon_read.properties = AAZObjectType()
436+
addon_read.properties = AAZObjectType(
437+
flags={"client_flatten": True},
438+
)
425439
addon_read.system_data = AAZObjectType(
426440
serialized_name="systemData",
427441
flags={"read_only": True},
@@ -446,9 +460,15 @@ def _build_schema_addon_read(cls, _schema):
446460
)
447461

448462
disc_hcx = _schema_addon_read.properties.discriminate_by("addon_type", "HCX")
463+
disc_hcx.management_network = AAZStrType(
464+
serialized_name="managementNetwork",
465+
)
449466
disc_hcx.offer = AAZStrType(
450467
flags={"required": True},
451468
)
469+
disc_hcx.uplink_network = AAZStrType(
470+
serialized_name="uplinkNetwork",
471+
)
452472

453473
disc_srm = _schema_addon_read.properties.discriminate_by("addon_type", "SRM")
454474
disc_srm.license_key = AAZStrType(

src/vmware/azext_vmware/aaz/latest/vmware/authorization/_create.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ class Create(AAZCommand):
1919
"""
2020

2121
_aaz_info = {
22-
"version": "2023-09-01",
22+
"version": "2024-09-01",
2323
"resources": [
24-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/authorizations/{}", "2023-09-01"],
24+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/authorizations/{}", "2024-09-01"],
2525
]
2626
}
2727

@@ -157,7 +157,7 @@ def url_parameters(self):
157157
def query_parameters(self):
158158
parameters = {
159159
**self.serialize_query_param(
160-
"api-version", "2023-09-01",
160+
"api-version", "2024-09-01",
161161
required=True,
162162
),
163163
}

src/vmware/azext_vmware/aaz/latest/vmware/authorization/_delete.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ class Delete(AAZCommand):
2020
"""
2121

2222
_aaz_info = {
23-
"version": "2023-09-01",
23+
"version": "2024-09-01",
2424
"resources": [
25-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/authorizations/{}", "2023-09-01"],
25+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/authorizations/{}", "2024-09-01"],
2626
]
2727
}
2828

@@ -156,7 +156,7 @@ def url_parameters(self):
156156
def query_parameters(self):
157157
parameters = {
158158
**self.serialize_query_param(
159-
"api-version", "2023-09-01",
159+
"api-version", "2024-09-01",
160160
required=True,
161161
),
162162
}

0 commit comments

Comments
 (0)