Skip to content

Commit 1d91532

Browse files
matyang22matyang222
andauthored
Gateway LoadBalancer property ParameterSetName requirement removal (#15108)
* fix * fix Co-authored-by: matyang222 <[email protected]>
1 parent 5f81ef0 commit 1d91532

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

src/Network/Network.Test/ScenarioTests/LoadBalancerTests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2366,9 +2366,9 @@ function Test-GatewayLoadBalancer-ConsumerLb
23662366
$frontendConsumerName = Get-ResourceName
23672367
$domainNameLabel = Get-ResourceName
23682368

2369-
$rglocation = Get-ProviderLocation ResourceManagement
2369+
$rglocation = "eastus2euap"
23702370
$resourceTypeParent = "Microsoft.Network/loadBalancers"
2371-
$location = Get-ProviderLocation $resourceTypeParent
2371+
$location = "eastus2euap"
23722372

23732373
try
23742374
{
@@ -2388,7 +2388,7 @@ function Test-GatewayLoadBalancer-ConsumerLb
23882388

23892389
# Create Consumer LoadBalancer
23902390
$lbConsumer = New-AzLoadBalancer -Name $lbConsumerName -ResourceGroupName $rgname -Location $location -Sku Standard
2391-
Add-AzLoadBalancerFrontendIpConfig -GatewayLoadBalancerId $frontendProvider.Id -LoadBalancer $lbConsumer -Name $frontendConsumerName
2391+
Add-AzLoadBalancerFrontendIpConfig -PublicIpAddress $publicipConsumer -GatewayLoadBalancerId $frontendProvider.Id -LoadBalancer $lbConsumer -Name $frontendConsumerName
23922392
$lbConsumer = Set-AzLoadBalancer -LoadBalancer $lbConsumer
23932393

23942394
$expectedLbConsumer = Get-AzLoadBalancer -Name $lbConsumerName -ResourceGroupName $rgname

src/Network/Network/Generated/LoadBalancer/FrontendIPConfiguration/AddAzureRmLoadBalancerFrontendIpConfigCommand.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ public partial class AddAzureRmLoadBalancerFrontendIpConfigCommand : NetworkBase
129129

130130
[Parameter(
131131
Mandatory = false,
132-
ParameterSetName = "SetByResource",
133132
HelpMessage = "The reference of Gateway LoadBalancer Provider resource.",
134133
ValueFromPipelineByPropertyName = true)]
135134
public string GatewayLoadBalancerId { get; set; }

src/Network/Network/Generated/LoadBalancer/FrontendIPConfiguration/SetAzureRmLoadBalancerFrontendIpConfigCommand.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ public partial class SetAzureRmLoadBalancerFrontendIpConfigCommand : NetworkBase
129129

130130
[Parameter(
131131
Mandatory = false,
132-
ParameterSetName = "SetByResource",
133132
HelpMessage = "The reference of Gateway LoadBalancer Provider resource.",
134133
ValueFromPipelineByPropertyName = true)]
135134
public string GatewayLoadBalancerId { get; set; }

src/Network/Network/Generated/Models/PSFrontendIPConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public partial class PSFrontendIPConfiguration : PSChildResource
6464
[JsonProperty(Order = 1)]
6565
public PSResourceId PublicIPPrefix { get; set; }
6666
[JsonProperty(Order = 1)]
67-
public PSFrontendIPConfiguration GatewayLoadBalancer { get; set; }
67+
public PSResourceId GatewayLoadBalancer { get; set; }
6868

6969
[JsonIgnore]
7070
public string ZonesText

0 commit comments

Comments
 (0)