Skip to content

Commit 06d116e

Browse files
authored
[SCVMM] Fixed create_from_machines command for VM Instance creation (Azure#9107)
1 parent 977f14e commit 06d116e

File tree

5 files changed

+3016
-2002
lines changed

5 files changed

+3016
-2002
lines changed

src/scvmm/HISTORY.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
33
Release History
44
===============
5+
1.2.1
6+
++++++
7+
* [HotFix] Fixed `az scvmm vm create-from-machines` command for VM Instance creation.
8+
59
1.2.0
10+
++++++
611
* Add command `az scvmm vm create-from-machines`.
712

813
1.1.2

src/scvmm/azext_scvmm/custom.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -672,9 +672,11 @@ def create_from_machines(
672672
type=EXTENDED_LOCATION_TYPE,
673673
name=scvmm.extended_location.name,
674674
),
675-
infrastructure_profile=InfrastructureProfile(
676-
inventory_item_id=inventoryId,
677-
),
675+
properties=VirtualMachineInstanceProperties(
676+
infrastructure_profile=InfrastructureProfile(
677+
inventory_item_id=inventoryId,
678+
),
679+
)
678680
)
679681
try:
680682
if not machineKind:

0 commit comments

Comments
 (0)