From 9cb39465996ee012dbf02ae67b1d6dd87e5154a5 Mon Sep 17 00:00:00 2001 From: jantorep <35103552+jantorep@users.noreply.github.com> Date: Fri, 19 May 2023 11:22:10 +0200 Subject: [PATCH] Updated SRNetworkConstraints to correct param --- Scenarios/AzSHCI and Stretch Cluster/Scenario.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Scenarios/AzSHCI and Stretch Cluster/Scenario.ps1 b/Scenarios/AzSHCI and Stretch Cluster/Scenario.ps1 index a4726f9f..83b9a2ce 100644 --- a/Scenarios/AzSHCI and Stretch Cluster/Scenario.ps1 +++ b/Scenarios/AzSHCI and Stretch Cluster/Scenario.ps1 @@ -485,11 +485,12 @@ foreach ($Number in $Numbers){ $r | where Datavolume -like "C:\ClusterStorage*" | select Datavolume,ReplicationStatus #Configure Network Constraints +#Network Constraints network settings shal only contain Source Interafaces from the source site for the -SourceNWInterface paramater, and Destination Interfaces for the other site for the -DestinationNWInterface $Numbers=1..$NumberOfVolumesPerSite foreach ($Number in $Numbers){ $SourceRGName="$SourceRGNamePrefix$Number" $DestinationRGName="$DestinationRGNamePrefix$Number" - Set-SRNetworkConstraint -SourceComputerName $ClusterName -DestinationComputerName $ClusterName -SourceRGName $SourceRGName -DestinationRGName $DestinationRGName -SourceNWInterface "ReplicaNet1","ReplicaNet2" -DestinationNWInterface "ReplicaNet1","ReplicaNet2" -ErrorAction Ignore + Set-SRNetworkConstraint -SourceComputerName $ClusterName -DestinationComputerName $ClusterName -SourceRGName $SourceRGName -DestinationRGName $DestinationRGName -SourceNWInterface "ReplicaNet1" -DestinationNWInterface "ReplicaNet2" -ErrorAction Ignore } #Validate Network Constraints