A.35 create AntiAffinityGroup

Creates an anti affinity group in a server pool.

Syntax

create AntiAffinityGroup name=value [ description=value ] on ServerPool instance

Where instance is:

{ id=value | name=value }

Description

This command creates an anti affinity group in a server pool. To add a virtual machine to an anti affinity group, use the add Vm command. To remove a virtual machine from an anti affinity group, use the remove Vm command.

Options

The following table shows the available options for this command.

Option

Description

name=value

A name to identify the anti affinity group.

description=value

Optional description for the anti affinity group. value is a maximum of 4,000 characters.

To set an empty description, use description="".

{ id=value | name=value }

The instance of the object using either the id or name option, for example name=MyServerPool.

Note

Any create command only creates a single instance of an object, and therefore only accepts a single object instance as an attribute. Providing more than one object of the same attribute type as a parameter always results in the last attribute value taking precedence.

Examples

Example A.47 Creating an anti affinity group

OVM> create AntiAffinityGroup name=MyAAGroup on ServerPool name=MyServerPool

See Also