To define the startup order and activate continued power on and power off operations of protected virtual machines in the recovery VMware Cloud Foundation instance, you create virtual machine groups.

You create separate VM/Host groups and VM/Host rules for the virtual machines of vRealize Operations Manager, vRealize Automation, and the clustered Workspace ONE Access.

For the following procedure, use the VMware Cloud Foundation Planning and Preparation Workbook.

UI Procedure

  1. Log in to the management domain vCenter Server at https://<recovery_vcenter_server_fqdn>/ui in the recovery VMware Cloud Foundation instance as administrator@vsphere.local.
  2. In the Hosts and clusters inventory, expand the management domain vCenter Server tree and expand the management domain data center.
  3. Select the default management cluster and click the Configure tab.

  4. In the left pane, navigate to Configuration > VM/Host groups and click Add.

  5. On the Create VM/Host group dialog box, configure the settings, configure the remaining settings according to your VMware Cloud Foundation Planning and Preparation Workbook, and click OK.

    Setting

    Value

    Type

    VM group

  6. In the left pane, navigate to Configuration > VM/Host rules and click Add.

  7. On the Create VM/Host rule dialog box, configure the settings, configure the remaining settings according to your VMware Cloud Foundation Planning and Preparation Workbook, and click OK.

    Setting

    Value

    Enable rule

    Selected

    Type

    Virtual machines to virtual machines

  8. Repeat steps for remaining VM group dependency restart condition for vRealize Automation.

PowerShell Procedure

  1. Start Windows PowerShell.

  2. Replace the values in the sample code with values from your VMware Cloud Foundation Planning and Preparation Workbook and run the commands in the PowerShell console.

    $sddcManagerFqdn = "lax-vcf01.lax.rainpole.io"
    $sddcManagerUser = "administrator@vsphere.local"
    $sddcManagerPass = "VMw@re1!"
    
    $sddcDomainName = "lax-m01"
    
    $drsGroupNameWsa = "xint-vm-group-wsa"
    $drsGroupNameVrops = "xint-vm-group-vrops"
    $drsGroupNameVra = "xint-vm-group-vra"
    
    $drsGroupVMsWsa = "xint-wsa01a,xint-wsa01b,xint-wsa01c"
    $drsGroupVMsVrops = "xint-vrops01a,xint-vrops01b,xint-vrops01c"
    $drsGroupVMsVra = "xint-vra01a,xint-vra01b,xint-vra01c"
    
    $ruleNameWsaVrops = "vm-vm-rule-wsa-vrops"
    $ruleNameWsaVra = "vm-vm-rule-wsa-vra"
  3. Perform the configuration by running the command in the PowerShell console.

    Add-ClusterGroup -server $sddcManagerFqdn -user $sddcManagerUser -pass $sddcManagerPass -domain $sddcDomainName -drsGroupName $drsGroupNameWsa -drsGroupVMs $drsGroupVMsWsa
    
    Add-ClusterGroup -server $sddcManagerFqdn -user $sddcManagerUser -pass $sddcManagerPass -domain $sddcDomainName -drsGroupName $drsGroupNameVrops -drsGroupVMs $drsGroupVMsVrops
    
    Add-ClusterGroup -server $sddcManagerFqdn -user $sddcManagerUser -pass $sddcManagerPass -domain $sddcDomainName -drsGroupName $drsGroupNameVra -drsGroupVMs $drsGroupVMsVra
    
    Add-VmStartupRule -server $sddcManagerFqdn -user $sddcManagerUser -pass $sddcManagerPass -domain $sddcDomainName -ruleName $ruleNameWsaVrops -vmGroup $drsGroupNameVrops -dependOnVmGroup $drsGroupNameWsa
    
    Add-VmStartupRule -server $sddcManagerFqdn -user $sddcManagerUser -pass $sddcManagerPass -domain $sddcDomainName -ruleName $ruleNameWsaVra -vmGroup $drsGroupNameVra -dependOnVmGroup $drsGroupNameWsa