Skip to content

Commit 7e1f9fe

Browse files
committed
Allow nic to accept multiple inbound and backend pool while create
1 parent 8eb13ac commit 7e1f9fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ResourceManager/Network/Commands.Network/NetworkInterface/NewAzureNetworkInterfaceCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,18 +207,18 @@ private PSNetworkInterface CreateNetworkInterface()
207207

208208
if (this.LoadBalancerBackendAddressPool != null)
209209
{
210+
this.LoadBalancerBackendAddressPoolId = new List<string>();
210211
foreach (var bepool in this.LoadBalancerBackendAddressPool)
211212
{
212-
this.LoadBalancerBackendAddressPoolId = new List<string>();
213213
this.LoadBalancerBackendAddressPoolId.Add(bepool.Id);
214214
}
215215
}
216216

217217
if (this.LoadBalancerInboundNatRule != null)
218218
{
219+
this.LoadBalancerInboundNatRuleId = new List<string>();
219220
foreach (var natRule in this.LoadBalancerInboundNatRule)
220221
{
221-
this.LoadBalancerInboundNatRuleId = new List<string>();
222222
this.LoadBalancerInboundNatRuleId.Add(natRule.Id);
223223
}
224224
}

0 commit comments

Comments
 (0)