-
Couldn't load subscription status.
- Fork 619
Description
The standalone example is bad:
Set-SRNetworkConstraint -SourceComputerName "SR-SRV06" -SourceRGName "ReplicationGroup02" **-SourceNWInterface 6 -**DestinationComputerName "SR-SRV05" -DestinationRGName "ReplicationGroup01" -DestinationNWInterface 2
The highlighted parameters should be SourceNWInterfaceIndex and DestinationNWInterfaceIndex.
Same issue is on the stretched cluster example:
Set-SRNetworkConstraint -SourceComputerName "SR-SRV01" -SourceRGName "Group01" -SourceNWInterfaceIndex "Cluster Network 1","Cluster Network 2" -DestinationComputerName "SR-SRV03" -DestinationRGName "Group02" -DestinationNWInterfaceIndex "Cluster Network 1","Cluster Network 2"
Those should be SourceNWInterface and DestinationNWInterface.
Also, in example 1 the explanations in the scriptblock, not like regular text. Those lines should be out from scriptblock:
"This command lists available interface indexes by using the Get-NetIPConfiguration cmdlet. Run this command on both servers. "
"The next command sets the network constraint for interfaces and replication groups. The final command makes sure that the constraint takes effect immediately by using the Update-SmbMultichannelConnection cmdlet. "
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 33bdd435-62e9-3ecf-0cdd-e0e78166a116
- Version Independent ID: 5be2ee2d-01b4-cbde-b91c-72ad7ea0c57b
- Content: Set-SRNetworkConstraint (StorageReplica)
- Content Source: docset/winserver2019-ps/storagereplica/Set-SRNetworkConstraint.md
- Product: w10
- Technology: windows
- GitHub Login: @JasonGerend
- Microsoft Alias: jgerend