Skip to content

Commit 7798f31

Browse files
committed
Move code in DESCRIPTION to an Example
1 parent fd19ad7 commit 7798f31

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

docset/winserver2025-ps/FailoverClusters/Update-ClusterFunctionalLevel.md

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,28 @@ You can use this cmdlet to support a rolling OS upgrade for a cluster. If you us
3939
runs Hyper-V in which all the nodes run Windows Server 2012 R2, you can upgrade the nodes of that
4040
cluster without downtime for your virtual machines.
4141

42+
## EXAMPLES
43+
44+
### Example 1: Test a possible update
45+
46+
```powershell
47+
Update-ClusterFunctionalLevel -WhatIf
48+
```
49+
50+
This command tests whether an update would finish successfully. Because the command includes the
51+
**WhatIf** parameter, the command doesn't perform the update.
52+
53+
### Example 2: Update a cluster functional level
54+
55+
```powershell
56+
Update-ClusterFunctionalLevel -Cluster "cluster_17"
57+
```
58+
59+
This command updates the cluster functional level of the cluster named `cluster_17`. All of the
60+
nodes of this cluster must already be updated before you run this command.
61+
62+
### Example 3: Rolling OS upgrade of a cluster
63+
4264
First, drain one cluster node by specifying the **Drain** parameter of the `Suspend-ClusterNode`
4365
cmdlet. This cmdlet causes all virtual machines to live-migrate to one of the other hosts.
4466

@@ -64,26 +86,6 @@ Finally, add the node into the cluster by using the `Add-ClusterNode` cmdlet.
6486

6587
Repeat these steps for each node in the cluster.
6688

67-
## EXAMPLES
68-
69-
### Example 1: Test a possible update
70-
71-
```powershell
72-
Update-ClusterFunctionalLevel -WhatIf
73-
```
74-
75-
This command tests whether an update would finish successfully. Because the command includes the
76-
**WhatIf** parameter, the command doesn't perform the update.
77-
78-
### Example 2: Update a cluster functional level
79-
80-
```powershell
81-
Update-ClusterFunctionalLevel -Cluster "cluster_17"
82-
```
83-
84-
This command updates the cluster functional level of the cluster named `cluster_17`. All of the
85-
nodes of this cluster must already be updated before you run this command.
86-
8789
## PARAMETERS
8890

8991
### -Cluster

0 commit comments

Comments
 (0)