Skip to content

Commit

Permalink
Fix (#14791)
Browse files Browse the repository at this point in the history
Co-authored-by: Khushboo Baheti <[email protected]>
  • Loading branch information
Khushboo-Baheti and Khushboo Baheti authored Apr 21, 2021
1 parent 58e5580 commit 58706f9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,10 @@ public override void Execute()

if (this.EgressNatRule != null)
{
this.VirtualNetworkGatewayConnection.IngressNatRules = new List<PSResourceId>();
foreach (var resource in this.IngressNatRule)
this.VirtualNetworkGatewayConnection.EgressNatRules = new List<PSResourceId>();
foreach (var resource in this.EgressNatRule)
{
this.VirtualNetworkGatewayConnection.IngressNatRules.Add(
this.VirtualNetworkGatewayConnection.EgressNatRules.Add(
new PSResourceId()
{
Id = resource.Id
Expand Down

0 comments on commit 58706f9

Please sign in to comment.