You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{AzureNetworking} fixes#20416 Add support for what-if parameter (#20491)
* {AzureNetworking} fixes#20416 Add support for what-if parameter
fixes#20416 Add support for what-if parameter
As per our docs, the Add-AzLoadBalancerFrontendIpConfig, Add-AzLoadBalancerProbeConfig, Add-AzLoadBalancerBackendAddressPoolConfig cmdlets support `what-if` parameter. But currently its not honoring the `what-if` switch. This PR fixes this issue.
* Update AddAzureRmLoadBalancerBackendAddressPoolConfigCommand.cs
fixes#20416 Add support for what-if parameter
As per our docs, the Add-AzLoadBalancerFrontendIpConfig, Add-AzLoadBalancerProbeConfig, Add-AzLoadBalancerBackendAddressPoolConfig cmdlets support what-if parameter. But currently its not honoring the what-if switch. This PR fixes this issue.
* Update AddAzureRmLoadBalancerFrontendIpConfigCommand.cs
fixes#20416 Add support for what-if parameter
As per our docs, the Add-AzLoadBalancerFrontendIpConfig, Add-AzLoadBalancerProbeConfig, Add-AzLoadBalancerBackendAddressPoolConfig cmdlets support what-if parameter. But currently its not honoring the what-if switch. This PR fixes this issue.
* Update ChangeLog.md
* Update RemoveAzureRmLoadBalancerInboundNatRuleConfigCommand.cs
* Update NewAzureRmLoadBalancerRuleConfigCommand.cs
* Update SetAzureRMLoadBalancerCommand.cs
* Update ChangeLog.md
* Update ChangeLog.md
Copy file name to clipboardExpand all lines: src/Network/Network/ChangeLog.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@
21
21
## Upcoming Release
22
22
* Fixed a bug that added Ddos related properties when viewing PublicIpAddress and DdosProtectionPlan objects
23
23
* Fixed a Bug for Set-AzIpGroup cmdlet to support the -whatif parameter
24
+
* Fixed a Bug for `Add-AzLoadBalancerFrontendIpConfig`, `Add-AzLoadBalancerProbeConfig`, `Add-AzLoadBalancerBackendAddressPoolConfig`, `Set-AzLoadBalancer`, `New-AzLoadBalancerRuleConfig`, `Remove-AzLoadBalancerInboundNatRuleConfig` cmdlets to support the `-whatif` parameter. Fix [#20416]
24
25
25
26
## Version 5.2.0
26
27
* Added optional parameters `CustomBlockResponseStatusCode` and `CustomBlockResponseBody` parameter to `AzApplicationGatewayFirewallPolicySettings`
Copy file name to clipboardExpand all lines: src/Network/Network/LoadBalancer/BackendAddressPool/AddAzureRmLoadBalancerBackendAddressPoolConfigCommand.cs
+25-22Lines changed: 25 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -44,34 +44,37 @@ public partial class AddAzureRmLoadBalancerBackendAddressPoolConfigCommand : Net
44
44
45
45
publicoverridevoidExecute()
46
46
{
47
-
// BackendAddressPools
48
-
if(this.LoadBalancer.BackendAddressPools==null)
47
+
if(ShouldProcess(this.LoadBalancer.Name,"Adding Backend pool Configuration"))
0 commit comments