Skip to content

Could not associate Load Balancer in VMSS when using az cli 2.87.0+ versions #34133

Description

@rai-m

Describe the bug

We are observing an issue after upgrading Azure CLI from 2.75.0 to 2.87.0 and higher versions.

Our Azure DevOps BlueGreen deployment pipeline performs traffic cutover between VM Scale Sets by updating Azure Load Balancer backend pool associations. The deployment works successfully when using Azure CLI 2.75.0, but consistently fails when using Azure CLI 2.87.0+.

Related command

Commands used:

az vmss update --resource-group "${RGNAME_APP}" --name "${VMSSNAME}" --add virtualMachineProfile.networkProfile.networkInterfaceConfigurations[0].ipConfigurations[0].loadBalancerBackendAddressPools id="/subscriptions/${SUBID}/resourceGroups/${RGNAME_LB}/providers/Microsoft.Network/loadBalancers/${LBNAME}/backendAddressPools/${VMSSNAME}-pool"

az vmss update --resource-group "${ACTIVE_RGNAME}" --name "${VMSSNAME_ACTIVE}" --remove virtualMachineProfile.networkProfile.networkInterfaceConfigurations[0].ipConfigurations[0].loadBalancerBackendAddressPools

Errors

Errors observed:

ERROR: Couldn't find 'loadBalancerBackendAddressPools' in
'virtualMachineProfile.networkProfile.networkInterfaceConfigurations[0].ipConfigurations[0]'

Issue script & Debug output

With debug flag:

DEBUG: cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/opt/az/lib/python3.14/site-packages/azure/cli/core/commands/arm.py", line 742, in _update_instance
return instance[part]
~~~~~~~~^^^^^^
KeyError: 'loadBalancerBackendAddressPools'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/az/lib/python3.14/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.14/site-packages/azure/cli/core/commands/init.py", line 677, in execute
raise ex
File "/opt/az/lib/python3.14/site-packages/azure/cli/core/commands/init.py", line 820, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.14/site-packages/azure/cli/core/commands/init.py", line 789, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.14/site-packages/azure/cli/core/commands/init.py", line 335, in call
return self.handler(*args, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.14/site-packages/azure/cli/core/commands/command_operation.py", line 214, in handler
add_properties(instance, arg_values, force_string)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.14/site-packages/azure/cli/core/commands/arm.py", line 576, in add_properties
list_to_add_to = _find_property(instance, list_attribute_path)
File "/opt/az/lib/python3.14/site-packages/azure/cli/core/commands/arm.py", line 756, in _find_property
instance = _update_instance(instance, part, path)
File "/opt/az/lib/python3.14/site-packages/azure/cli/core/commands/arm.py", line 751, in _update_instance
throw_and_show_options(instance, part, path)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.14/site-packages/azure/cli/core/commands/arm.py", line 661, in throw_and_show_options
raise CLIError(error_message)
knack.util.CLIError: Couldn't find 'loadBalancerBackendAddressPools' in 'virtualMachineProfile.networkProfile.networkInterfaceConfigurations[0].ipConfigurations[0]'. Available options:['applicationSecurityGroups', 'name', 'privateIPAddressVersion', 'subnet']

ERROR: cli.azure.cli.core.azclierror: Couldn't find 'loadBalancerBackendAddressPools' in 'virtualMachineProfile.networkProfile.networkInterfaceConfigurations[0].ipConfigurations[0]'. Available options: ['applicationSecurityGroups', 'name', 'privateIPAddressVersion', 'subnet']
ERROR: az_command_data_logger: Couldn't find 'loadBalancerBackendAddressPools' in 'virtualMachineProfile.networkProfile.networkInterfaceConfigurations[0].ipConfigurations[0]'. Available options: ['applicationSecurityGroups', 'name', 'privateIPAddressVersion', 'subnet']
DEBUG: cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7f0c44258670>]

Expected behavior

Expected behavior is for the load balancer to be attached successfully to the VMSS

Environment Summary

azure-cli 2.90.0

core 2.90.0
telemetry 1.1.0

Extensions:
azure-devops 1.0.4

Dependencies:
msal 1.36.0
azure-mgmt-resource 24.0.0

Python location '/opt/az/bin/python3'
Config directory '/agent/_work/_temp/.azclitask-2cLsE4'
Extensions directory '/opt/az/azcliextensions'

Python (Linux) 3.14.6 (main, Aug 26 2026, 01:26:36) [GCC 11.4.0]

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotact-observability-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions