This is an archive version of the document. To get the most up-to-date information, see the current version.

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:

  1. 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.
  2. 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