Working with VMware Application Group
This example shows how to create an application group containing a DC server and the DNS server and perform other actions on it.
Create an application group
You will need to perform the following steps:
- Get the domain controller server and the DNS server and assign them to a variable. Because the DC server is first in the search, it will boot first. Run Find-VBRViEntity for this.
- Create the application group with Add-VSBViApplicationGroup using the created variable.
// Get the VMs:
$vms = Find-VBRViEntity -Name "DC", "DNSServer"
// Create the application group:
Add-VSBViApplicationGroup -Name "Production Application Group" -Vm $vms
Look for the application group
Run Get-VSBApplicationGroup to get the application group.
Get-VSBApplicationGroup -Name "Production Application Group"
Remove the application group
Run Remove-VSBApplicationGroup to remove the application group.
Get-VSBApplicationGroup -Name "Production Application Group"| Remove-VSBApplicationGroup