Moving clusters

You can use the Move-Cluster cmdlet to move a cluster to a folder. The folder must be in the same data center as the cluster. The syntax of the Move-Cluster cmdlet is as follows:

Move-Cluster [-Cluster] <Cluster[]> [-Destination] <VIContainer>
    [-Server <VIServer[]>] [-RunAsync] [-WhatIf] [-Confirm]
    [<CommonParameters>]

The -Cluster and -Destination parameters are required.

Besides a folder, you can specify the data center to which the cluster belongs as the value of the -Destination parameter. In this case, the cluster is moved to the host system folder of the data center. It is not possible to move a cluster to another data center.

In the following example, Cluster01 is moved to the Accounting folder:

PowerCLI C:\> Move-Cluster ...

Get Learning PowerCLI - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.