Skip to content

[Compute] BREAKING CHANGE: az vm/vmss create: Change default image to Windows Server 2025 - #34464

Open
William (william051200) wants to merge 2 commits into
Azure:devfrom
william051200:update-image
Open

William (william051200) wants to merge 2 commits into
Azure:devfrom
william051200:update-image

Conversation

@william051200

@william051200 William (william051200) commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

🤖 PR Validation — ️✔️ All clear

Breaking Changes Tests Suppressions
️✔️ None ️✔️ 130/130 ️✔️ None

Related command

az vm create
az vmss create

Description

Change the default image for az vm create and az vmss create from Windows Server 2022 to MicrosoftWindowsServer:WindowsServer:2025-datacenter-azure-edition:latest when no image or existing OS disk is specified.

Trusted Launch, Secure Boot, and vTPM defaults remain unchanged. Explicit image selections and security overrides are preserved. Add regression tests for these behaviors.

Testing Guide

py -m pytest C:\Users\v-williamng\repos\azure-cli\src\azure-cli\azure\cli\command_modules\vm\tests\latest\test_vm_defaults.py::TestVMVMSSDefaultImage

History Notes

[Compute] BREAKING CHANGE: az vm create, az vmss create: Change the default image to MicrosoftWindowsServer:WindowsServer:2025-datacenter-azure-edition:latest. Trusted Launch, Secure Boot, and vTPM defaults remain unchanged.


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

@william051200 William (william051200) added the Request X Engineering Agent Ask the agent to triage this issue or review this PR label Nov 19, 2026
Copilot AI balanced review requested due to automatic review settings November 19, 2026 07:29
@x-engineering-agent

x-engineering-agent Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

X Engineering Agent Pull request review: Comments

William (@william051200) No confirmed defects found in the Windows Server 2025 default-image change. CI passed, but regression coverage for actual Windows Server 2025 provisioning is not verified.

Check Status Detail
Upstream CI Passed The supplied snapshot has 53 completed, passing checks and no failures.
Agent live tests Not run This is a review-only PR.
Regression coverage Unverified For vm: 1 focused test file(s) changed.
Risk Risk 0/100 Low Low
Review details

Upstream CI

The supplied snapshot has 53 completed, passing checks and no failures.

Test validation

  • Agent live test: Not run; this is a review-only PR. Check author-provided test evidence and upstream CI separately.
  • Regression coverage: For vm: 1 focused test file(s) changed. Scenario coverage is unverified; review the issue's required conditions, test setup, and assertions before approval. No linked issue was found in the PR timeline; inspect the source issue and its required scenario manually.
  • Focused regression evidence: src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_defaults.py:302-339 asserts the complete 2025 image URN and parsed fields for VM and Uniform VMSS validator modes, plus explicit-image and security overrides. Reverting _validators.py:430 fails the default-image assertions. These mocked unittest tests do not require recordings; they do not demonstrate deployment of the new SKU.
  • Recording risk: The changed default affects the outgoing imageReference.sku. Inspected recordings src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_create_auth.yaml, test_vmss_create_auth.yaml, and test_create_flexible_vmss_by_default.yaml exercise explicit Debian/Ubuntu images, not omitted-image Windows Server 2025 provisioning. Regional image availability and deployment compatibility remain unverified. Flexible VMSS creation without an image retains its existing validator bypass; it is not exercised by these new default-image assertions.
  • Focused verification: Run python -m pytest src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_defaults.py::TestVMVMSSDefaultImage. For command-level evidence, record VM and Uniform VMSS creation without --image or an attached OS disk alongside test_vm_commands.py:test_vm_create_auth and test_vm_commands.py:test_vmss_create_auth; assert imageReference.sku == '2025-datacenter-azure-edition' and preserved Trusted Launch, Secure Boot and vTPM behavior, including explicit 2022-image and security-override cases.

Risk assessment

0/100 · Low

The Low rating reflects the detected change scope with no elevated security, reliability, customer, operational, dependency, sovereign-cloud, generated-output, or cross-component signal.

  • Change scope: 2 changed files, 65 changed lines (+64 / -1), including 1 production file.
  • Affected components: vm
  • Risk drivers: No elevated risk signal was detected.
  • Regression evidence: Changed regression tests are included, reducing risk.
  • Confidence: High because changed-line patches were available for every production file.
  • Required review: No additional owning-squad review signal was detected.

Ask the Agent

Tick a box to queue an action. Requires write access to this repository.

  • Re-review this PR
  • Run Agent live tests on this PR

X Engineering Agent · Reviewer · React with +1 or -1 to train the agent

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.

🟢 Approval recommended

The Windows Server 2025 default-image update has no active review issues.

No open issues 🎉

What changed in this PR

Updates the shared image default for az vm create and az vmss create to Windows Server 2025. This is a breaking default change; existing security-default logic remains unchanged.

Changes:

  • Switches the fallback image to MicrosoftWindowsServer:WindowsServer:2025-datacenter-azure-edition:latest.
  • Adds shared-validator regression tests for the new default, security overrides, and explicit image preservation.
File Description
src/​azure-cli/​azure/​cli/​command_modules/​vm/​tests/​latest/​test_vm_defaults.py Adds default-image and override-preservation tests for VM and VMSS storage validation.
src/​azure-cli/​azure/​cli/​command_modules/​vm/​_validators.py Changes the fallback image from Windows Server 2022 to 2025.

Review effort: Balanced

@yonzhan

Copy link
Copy Markdown
Collaborator

/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).

@JaysonTaiMicrosoft

JaysonTaiMicrosoft commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

William (@william051200) This is a breaking change, we will need to hold of until the next breaking change window. https://github.com/Azure/azure-cli/blob/dev/doc/how_to_introduce_breaking_changes.md.

Has there been a notice issued for this change?

This branch has not been deployed

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

Labels

act-observability-squad Compute az vm/vmss/image/disk/snapshot Request X Engineering Agent Ask the agent to triage this issue or review this PR X Engineering Agent Reviewed Agent reviewed this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants