Skip to content

VNET bug with az network lb address-pool address add #30535

@mahipdeora

Description

@mahipdeora

Describe the bug

az network lb address-pool address add shouldn't require a VNet or subnet to be passed in. Since the Vnet can be applied at the LB's backend pool level not at the backend address level.

Related command

az network lb address-pool address add

Errors

Image

The Vnet is added to the backend pool, so when customers try to pass in the Vnet via this command we get an NRP error. When no Vnet is applied we hit an error saying "Vnet or subnet is required" <- this limit should be removed. In addition, on docs it lists Vnet and subnet as optional parameters.

Issue script & Debug output

NA

Expected behavior

If a VNet is applied at the backend pool level then Vnet or subnet shouldn't be required via the az network lb address-pool address add command

Environment Summary

Using cloud shell

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...questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions