Skip to content

Parameter fixes #2530

@Mihaly7

Description

@Mihaly7

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.

Metadata

Metadata

Assignees

Labels

doc-enhancementSuggested additions/improvements to the article, but there is no evidence the customer was blocked.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions