Skip to content

Commit 088ad7f

Browse files
committed
Updated examples for Move-ClusterVirtualMachineRole
1 parent 1de2691 commit 088ad7f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docset/winserver2022-ps/failoverclusters/Move-ClusterVirtualMachineRole.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,15 @@ $vmGroups = Get-ClusterNode -Name node1 |
7171
Get-ClusterResource -InputObject $_ |
7272
Where-Object ResourceType -Like "Virtual Machine"
7373
}
74-
ForEach-Object -InputObject $groups -Process { $_ | Move-ClusterVirtualMachineRole -Node node2 }
74+
ForEach-Object -InputObject $vmGroups -Process { $_ | Move-ClusterVirtualMachineRole -Node node2 }
7575
```
7676

77-
This example performs a live migration of all clustered virtual machines that are currently owned by
78-
the node named node1 to the node named node2. The migration of each virtual machine should complete
79-
before the next migration is started. Use this cmdlet before performing maintenance on the
80-
specified node.
77+
This example queries a specific cluster node, `node1`, to find the currently owned groups. The
78+
example further filters the owned groups where there resource type is a virtual machine cluster
79+
resource. The filtered groups are stored in the `$vmGroups` variable. For each cluster group in the
80+
variable, the command will perform a live migration of all clustered virtual machines to the node
81+
named `node2`. The migration of each virtual machine will complete before the next migration is
82+
started.
8183

8284
## PARAMETERS
8385

0 commit comments

Comments
 (0)