Sets the maximum number of instances per virtual machine.
On partitioned topology with backups topology, controls that a primary and a backup won't run
on the same virtual machine if set to 1.
On a non partitioned with backups topology, controls the maximum number of instances running on
the same virtual machine.

C# | Visual Basic | Visual C++ | J# |
public virtual SpaceDeployment MaxInstancesPerVM( int maxInstancesPerVM )
Public Overridable Function MaxInstancesPerVM ( _ maxInstancesPerVM As Integer _ ) As SpaceDeployment
public: virtual SpaceDeployment^ MaxInstancesPerVM( int maxInstancesPerVM )
public SpaceDeployment MaxInstancesPerVM( int maxInstancesPerVM )

- maxInstancesPerVM (Int32)
- The maximum instances per virtual machine.

The SpaceDeployment set with the specified maximum instances per virtual machine.