Skip to content

Commit b7c7d51

Browse files
authored
Adding probeTreshold property to Load Balancer probe (#19575)
* initial commit for adding probeTreshold property to lb probe * adding description to changeLog.md * ensuring UTs pass, and the probeThreshold parameter gets passed in during creation of LB probe * removing UTs which are not neccessary * spelling errors * adding file specification for ChangeLog.md * adjusting cmdlet to handle null entry for ProbeThreshold parameter
1 parent 73c0131 commit b7c7d51

20 files changed

+7052
-3851
lines changed

src/Network/Network.Test/ScenarioTests/LoadBalancerTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ public void TestLoadBalancerCRUDPublicUsingId()
8989
TestRunner.RunTestScript("Test-LoadBalancerCRUD-PublicUsingId");
9090
}
9191

92+
[Fact]
93+
[Trait(Category.AcceptanceType, Category.CheckIn)]
94+
[Trait(Category.Owner, NrpTeamAlias.slbdev)]
95+
public void TestLoadBalancerProbes_ProbeThresholdParameter()
96+
{
97+
TestRunner.RunTestScript("Test-LoadBalancerProbes_ProbeThresholdParameter");
98+
}
99+
92100
[Fact]
93101
[Trait(Category.AcceptanceType, Category.CheckIn)]
94102
[Trait(Category.Owner, NrpTeamAlias.slbdev)]

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

Lines changed: 105 additions & 10 deletions
Large diffs are not rendered by default.

src/Network/Network.Test/SessionRecords/Commands.Network.Test.ScenarioTests.LoadBalancerTests/TestLoadBalancerCRUDPublic.json

Lines changed: 518 additions & 612 deletions
Large diffs are not rendered by default.

src/Network/Network.Test/SessionRecords/Commands.Network.Test.ScenarioTests.LoadBalancerTests/TestLoadBalancerCRUDPublicTcpReset.json

Lines changed: 498 additions & 524 deletions
Large diffs are not rendered by default.

src/Network/Network.Test/SessionRecords/Commands.Network.Test.ScenarioTests.LoadBalancerTests/TestLoadBalancerChildResource.json

Lines changed: 1480 additions & 1480 deletions
Large diffs are not rendered by default.

src/Network/Network.Test/SessionRecords/Commands.Network.Test.ScenarioTests.LoadBalancerTests/TestLoadBalancerProbes_ProbeThresholdParameter.json

Lines changed: 3126 additions & 0 deletions
Large diffs are not rendered by default.

src/Network/Network.Test/SessionRecords/Commands.Network.Test.ScenarioTests.LoadBalancerTests/TestLoadBalancerSet.json

Lines changed: 655 additions & 669 deletions
Large diffs are not rendered by default.

src/Network/Network.Test/SessionRecords/Commands.Network.Test.ScenarioTests.LoadBalancerTests/TestSetLoadBalancerCRUDPublicStandardSku.json

Lines changed: 563 additions & 546 deletions
Large diffs are not rendered by default.

src/Network/Network/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
- `New-AzApplicationGatewayClientAuthConfiguration`
3434
- `Set-AzApplicationGatewayClientAuthConfiguration`
3535
* Added Uppercase Transform in New-AzApplicationGatewayFirewallCondition
36+
* Added ProbeThreshold parameter to Load Balancer Probe
37+
- `AddAzureRmLoadBalancerProbeConfigCommmand.cs`
38+
- `NewAzureRmLoadBalancerProbeConfigCommand.cs`
39+
- `SetAzureRmLoadBalancerProbeConfigCommand.cs`
3640
* Updated commandlet to support specifying an action for a managed rule override in Application Gateway WAF Policy.
3741
- `New-AzApplicationGatewayFirewallPolicyManagedRuleOverride`
3842

src/Network/Network/Generated/Models/PSProbe.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ public partial class PSProbe : PSChildResource
4747
public int NumberOfProbes { get; set; }
4848
[JsonProperty(Order = 1)]
4949
[Ps1Xml(Target = ViewControl.Table)]
50+
public int? ProbeThreshold { get; set; }
51+
[JsonProperty(Order = 1)]
52+
[Ps1Xml(Target = ViewControl.Table)]
5053
public string RequestPath { get; set; }
5154
[JsonProperty(Order = 1)]
5255
[Ps1Xml(Target = ViewControl.Table)]
@@ -75,6 +78,11 @@ public bool ShouldSerializeNumberOfProbes()
7578
return !string.IsNullOrEmpty(this.Name);
7679
}
7780

81+
public bool ShouldSerializeProbeThreshold()
82+
{
83+
return !string.IsNullOrEmpty(this.Name);
84+
}
85+
7886
public bool ShouldSerializeLoadBalancingRules()
7987
{
8088
return !string.IsNullOrEmpty(this.Name);

0 commit comments

Comments
 (0)