VmcCluster Category | Vmware PowerCLI Reference

Vmc Cluster Category

Cmdlets are usually implemented around resource operations. The four basic operations are CREATE, READ, UPDATE and DELETE. This set of operations is known as CRUD. Most of the cmdlets support CRUD which are respectively cmdlets that start with the New/Get/Set/Remove cmdlet verbs but they also may have additional operations

Step 1: Retrieve a object by running a Get command

You can READ objects by using Get-VmcClusterEdrsPolicy cmdlet. See example below:

# Retrieves EDRS policy of the specified $CLUSTER cluster.

Get-VmcClusterEdrsPolicy -Cluster $CLUSTER

Step 2 : Run commands from the CRUD group

You can UPDATE objects by using Set-VmcClusterEdrsPolicy cmdlet. See example below:

# Modifies the EDRS policy type of the selected $cluster cluster. The policy type is set to "cost" with the minimum number of hosts 6 and the maximum number of hosts 15.

Set-VmcClusterEdrsPolicy -Cluster $cluster -PolicyType "cost" -MinHostCount 6 -MaxHostCount 15