Skip to content

Azure CLI: Throw Warning when user tries to deploy VM/VMSS using a deprecating image #32682

@NingKuang

Description

@NingKuang

Preconditions

  • No need to upgrade Python SDK or the Python SDK is ready.

Related command

az vm create
az vmss create

Resource Provider

N/A

Description of Feature or Work Requested

When " az vm/vmss create" is executed, if the image user selects is already marked as "scheduledfordeprecation", Azure throws a warning, asking user stop using the deprecating images due to security and compliance risk.
Background:

Minimum API Version Required

N/A

Swagger PR link / SDK link

N/A

Request Example

N/A

Target Date

2026/03/30

PM Contact

ningk

Engineer Contact

manikroy

Additional context

Azure marketplace allows user to publish images, however many images are not deleted after deprecated. These deprecated images incurs additional capacity cost to Azure, and causes security/compliance risks for user to still use them. Today the image deletions cannot start until the usage reaches a certain threshold. We need to accelerate the deletion of the deprecated images by keep user away from using these deprecated images.
Particularly due to .net 6 deprecation, Windows server team is deprecating all WS 2022 images from marketplace, we need to make sure this deprecation is executed in a timely manner, so both 1P and 3P services can move away from the deprecated WS 2022 images which contains EOL software with security risks.

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions