Azure / Azure/azure-cli

update default value for az network lb outbound-rule create --allocated-outbound-ports

Open
#31,192 11 comments 0 reactions 1 assignee Claimed by @necusjz View on GitHub
act-quality-productivity-squad Auto-Assign Azure CLI Team customer-reported Network question
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.