Repository navigation
[Compute] BREAKING CHANGE: az vm/vmss create: Change default image to Windows Server 2025 - #34464
William (william051200) wants to merge 2 commits into
Conversation
|
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. Review detailsUpstream CIThe supplied snapshot has 53 completed, passing checks and no failures. Test validation
Risk assessment0/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.
Ask the Agent Tick a box to queue an action. Requires write access to this repository.
|
There was a problem hiding this comment.
🟢 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
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
|
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? |
🤖 PR Validation — ️✔️ All clear
Related command
az vm createaz vmss createDescription
Change the default image for
az vm createandaz vmss createfromWindows Server 2022toMicrosoftWindowsServer:WindowsServer:2025-datacenter-azure-edition:latestwhen 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::TestVMVMSSDefaultImageHistory Notes
[Compute] BREAKING CHANGE:
az vm create,az vmss create: Change the default image toMicrosoftWindowsServer: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.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.