Skip to content

Warning message for a breaking change for Azure Compute Gallery resources from Api-version 2026-03-03 #32375

@anuraganand202

Description

@anuraganand202

This issue is for adding a warning message in CLI for customers who are using Azure Compute Gallery (ACG) APIs and resources.

ACG team has introduced a new api-version: 2026-03-03. Currently, there are no customers on this api-version, and we expect the customers to onboard to this api-version gradually.

This api-version has a new default behavior in case the customers have not set the "endOfLifeDate" and "blockDeletionBeforeEndOFLife" values for their ACG Image Version resources while creating them.

  1. The "endOfLifeDate" will be set to 6 months in future from the publishing date by default.
  2. The "blockDeletionBeforeEndOfLife" boolean will be set to true by default.

This means that from the new api-version (2026-03-03), ACG APIs will block the deletion of image versions by default till 6 months from the publishing date. If customers use the new api-version, and have a scenario where they need to delete their images before 6 months:

  1. They can set the "endOfLifeDate" accordingly.
  2. Or they can set the "blockDeletionBeforeEndOfLife" boolean to false.

Ask on CLI team: Please add a warning message in CLI so that all the customers know about this breaking change while executing CLI commands. This message should be added:

Warning:
Starting api-version 2026-03-03, gallery image versions will default to:

  1. endOfLifeDate = 6 months from publish date (unless explicitly set)
  2. blockDeletionBeforeEndOfLife = true (unless explicitly set)

By default, image deletion is blocked for 6 months. To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false

Metadata

Metadata

Labels

Azure CLI TeamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotfeature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions