-
Notifications
You must be signed in to change notification settings - Fork 3.4k
update default value for az network lb outbound-rule create --allocated-outbound-ports #31192
Description
Describe the bug
Currently, the default value for --allocated-outbound-ports is 1024 when creating an outbound rule for Azure Load Balancer (az network lb outbound-rule create). This default value can be an issue for customers as it can cause SNAT port exhaustion depending how many instances they have deployed.
Request: change the default value to 0 which will also align with the powershell default value.
https://learn.microsoft.com/en-us/cli/azure/network/lb/outbound-rule?view=azure-cli-latest
https://learn.microsoft.com/en-us/powershell/module/az.network/add-azloadbalanceroutboundruleconfig?view=azps-13.4.0
Related command
az network lb outbound-rule create --allocated-outbound-ports
change default of the above command to 0.
Errors
The default value is currently 0 for allocated outbound ports.
Issue script & Debug output
The current default value is 1024, need to update to 0.
Expected behavior
Update default value to 0 allocated outbound ports.
Environment Summary
azure-cli 2.71.0
Additional context
No response