Skip to content

Commit 386b5e3

Browse files
committed
Add ApplicationGatewayBackendAddressPoolsId parameter to New-AzureRmVmssIpConfig cmdlet
1 parent 0f95dc2 commit 386b5e3

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSet/Config/NewAzureRmVmssIpConfigCommand.cs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,18 @@ public class NewAzureRmVmssIpConfigCommand : Microsoft.Azure.Commands.ResourceMa
5454
Mandatory = false,
5555
Position = 3,
5656
ValueFromPipelineByPropertyName = true)]
57-
public string [] LoadBalancerBackendAddressPoolsId { get; set; }
57+
public string [] ApplicationGatewayBackendAddressPoolsId { get; set; }
5858

5959
[Parameter(
6060
Mandatory = false,
6161
Position = 4,
6262
ValueFromPipelineByPropertyName = true)]
63+
public string [] LoadBalancerBackendAddressPoolsId { get; set; }
64+
65+
[Parameter(
66+
Mandatory = false,
67+
Position = 5,
68+
ValueFromPipelineByPropertyName = true)]
6369
public string [] LoadBalancerInboundNatPoolsId { get; set; }
6470

6571
protected override void ProcessRecord()
@@ -69,6 +75,9 @@ protected override void ProcessRecord()
6975
// Subnet
7076
vIpConfigurations.Subnet = new Microsoft.Azure.Management.Compute.Models.ApiEntityReference();
7177

78+
// ApplicationGatewayBackendAddressPools
79+
vIpConfigurations.ApplicationGatewayBackendAddressPools = new List<Microsoft.Azure.Management.Compute.Models.SubResource>();
80+
7281
// LoadBalancerBackendAddressPools
7382
vIpConfigurations.LoadBalancerBackendAddressPools = new List<Microsoft.Azure.Management.Compute.Models.SubResource>();
7483

@@ -78,6 +87,16 @@ protected override void ProcessRecord()
7887
vIpConfigurations.Name = this.Name;
7988
vIpConfigurations.Id = this.Id;
8089
vIpConfigurations.Subnet.Id = this.SubnetId;
90+
if (this.ApplicationGatewayBackendAddressPoolsId != null)
91+
{
92+
foreach (var element in this.ApplicationGatewayBackendAddressPoolsId)
93+
{
94+
var vApplicationGatewayBackendAddressPools = new Microsoft.Azure.Management.Compute.Models.SubResource();
95+
vApplicationGatewayBackendAddressPools.Id = element;
96+
vIpConfigurations.ApplicationGatewayBackendAddressPools.Add(vApplicationGatewayBackendAddressPools);
97+
}
98+
}
99+
81100
if (this.LoadBalancerBackendAddressPoolsId != null)
82101
{
83102
foreach (var element in this.LoadBalancerBackendAddressPoolsId)

0 commit comments

Comments
 (0)