Skip to content

Commit 58706f9

Browse files
Khushboo-BahetiKhushboo Baheti
andauthored
Fix (#14791)
Co-authored-by: Khushboo Baheti <[email protected]>
1 parent 58e5580 commit 58706f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Network/Network/VirtualNetworkGatewayConnection/UpdateAzureVirtualNetworkGatewayConnectionCommand.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ public override void Execute()
167167

168168
if (this.EgressNatRule != null)
169169
{
170-
this.VirtualNetworkGatewayConnection.IngressNatRules = new List<PSResourceId>();
171-
foreach (var resource in this.IngressNatRule)
170+
this.VirtualNetworkGatewayConnection.EgressNatRules = new List<PSResourceId>();
171+
foreach (var resource in this.EgressNatRule)
172172
{
173-
this.VirtualNetworkGatewayConnection.IngressNatRules.Add(
173+
this.VirtualNetworkGatewayConnection.EgressNatRules.Add(
174174
new PSResourceId()
175175
{
176176
Id = resource.Id

0 commit comments

Comments
 (0)