Using Hyper-V VM groups
Hyper-Vs VM groups allow you to group VMs for automation. There are two types of VM groups you can create, VMCollectionType and ManagementCollectionType:
- A VMCollectionType VM group contains VMs.
- A ManagementCollectionType VM group contains VMCollectionType VM groups.
With VM groups, you might have two VMCollectionType VM groups, SQLAccVMG
(which contains the SQLAcct1
, SQLAcct2
, and SQLAcct3
VMs), and a group, SQLMfgVMG
, that contains the SQLMfg1
and SQLMfg2
VMs. You could create a ManagementCollectionType VM group, VM-All
, containing the two VMCollectionType VM groups.
The VMGroup feature feels incomplete. For example, no -VMGroup
parameters exist on any of the Hyper-V cmdlets. Thus you can’t easily execute any Hyper-V commands on all the members of a VM group. And having two types of groups seems confusing and possibly unhelpful. That said, the feature could be useful for large VM hosts running hundreds of VMs, if only from an organizational perspective...