Skip to content

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

Description

@cozhang8

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

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamNetworkaz network vnet/lb/nic/dns/etc...act-quality-productivity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions