From 58706f9491c62ebde648d19845944a30185f2d41 Mon Sep 17 00:00:00 2001 From: Khushboo Baheti <37917868+Khushboo-Baheti@users.noreply.github.com> Date: Wed, 21 Apr 2021 08:28:16 -0500 Subject: [PATCH] Fix (#14791) Co-authored-by: Khushboo Baheti --- .../UpdateAzureVirtualNetworkGatewayConnectionCommand.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Network/Network/VirtualNetworkGatewayConnection/UpdateAzureVirtualNetworkGatewayConnectionCommand.cs b/src/Network/Network/VirtualNetworkGatewayConnection/UpdateAzureVirtualNetworkGatewayConnectionCommand.cs index ebaec1fda230..d57ebdd3f6cf 100644 --- a/src/Network/Network/VirtualNetworkGatewayConnection/UpdateAzureVirtualNetworkGatewayConnectionCommand.cs +++ b/src/Network/Network/VirtualNetworkGatewayConnection/UpdateAzureVirtualNetworkGatewayConnectionCommand.cs @@ -167,10 +167,10 @@ public override void Execute() if (this.EgressNatRule != null) { - this.VirtualNetworkGatewayConnection.IngressNatRules = new List(); - foreach (var resource in this.IngressNatRule) + this.VirtualNetworkGatewayConnection.EgressNatRules = new List(); + foreach (var resource in this.EgressNatRule) { - this.VirtualNetworkGatewayConnection.IngressNatRules.Add( + this.VirtualNetworkGatewayConnection.EgressNatRules.Add( new PSResourceId() { Id = resource.Id