-
Book Overview & Buying
-
Table Of Contents
Windows Server Automation with PowerShell Cookbook, Fifth Edition - Fifth Edition
By :
Hyper-Vs VM groups allow you to group VMs for automation. There are two types of VM groups you can create, VMCollectionType and ManagementCollectionType:
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...