update default value for az network lb outbound-rule create --allocated-outbound-ports
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
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_
Contributor guide
Assessment
This issue has not been assessed yet.