Skip to content

{Compute} az vm update: Fix generic update command --add failed issue - #34157

Merged
William (william051200) merged 3 commits into
Azure:devfrom
william051200:fix-lb-issue
Oct 5, 2026
Merged

William (william051200) merged 3 commits into
Azure:devfrom
william051200:fix-lb-issue

Conversation

@william051200

Copy link
Copy Markdown
Member

Related command

az vm update

Description

Resolve #34133

Testing Guide

test_vm_vmss_update_add_lb_backend_pool and TestVmssGenericUpdateOptionalCollections

History Notes


This checklist is used to make sure that common guidelines for a pull request are followed.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The PR metadata incorrectly identifies az vm update instead of the implemented az vmss update fix.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
What changed in this PR

Fixes az vmss update --add when AAZ omits optional IP configuration collections.

Changes:

  • Normalizes missing VMSS networking collections before generic updates.
  • Adds unit and recorded scenario regression coverage.
File Description
operations/​vmss.py Adds update-specific collection normalization.
custom.py Uses the normalized VMSS getter.
test_custom_vm_commands.py Tests normalization behavior and edge cases.
test_vm_commands.py Adds an end-to-end regression test.
recordings/​test_vm_vmss_update_add_lb_backend_pool.yaml Records the regression scenario.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ResourceGroupPreparer(name_prefix='cli_test_vmss_update_lb_pool_', location='swedencentral')
@ResourceGroupPreparer(name_prefix='cli_test_vmss_update_lb_pool_lb_', location='swedencentral',
parameter_name='lb_resource_group', key='lb_rg')
def test_vm_vmss_update_add_lb_backend_pool(self, resource_group, resource_group_location, lb_resource_group):
@yonzhan Yong Zhang (yonzhan) added this to the Backlog milestone Oct 2, 2026
@yonzhan

Copy link
Copy Markdown
Collaborator

Compute

@william051200

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@william051200

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@william051200
William (william051200) merged commit 46b4c21 into Azure:dev Oct 5, 2026
50 checks passed
@william051200
William (william051200) deleted the fix-lb-issue branch October 5, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

act-observability-squad Auto-Assign Auto assign by bot Compute az vm/vmss/image/disk/snapshot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

5 participants