@@ -5341,6 +5341,13 @@ def create_image_version(cmd, resource_group_name, gallery_name, gallery_image_n
53415341 from azure .mgmt .core .tools import resource_id , is_valid_resource_id
53425342 from azure .cli .core .commands .client_factory import get_subscription_id
53435343
5344+ # Display warning about API version 2026-03-03 changes
5345+ logger .warning ("Starting api-version 2026-03-03, gallery image versions will default to:\n "
5346+ " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n "
5347+ " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n "
5348+ "By default, image deletion is blocked for 6 months. "
5349+ "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false" )
5350+
53445351 location = location or _get_resource_group_location (cmd .cli_ctx , resource_group_name )
53455352 end_of_life_date = fix_gallery_image_date_info (end_of_life_date )
53465353 if managed_image and not is_valid_resource_id (managed_image ):
@@ -5555,6 +5562,13 @@ def update_image_version(cmd, resource_group_name, gallery_name, gallery_image_n
55555562 from .operations .sig_image_version import convert_show_result_to_snake_case
55565563 args = convert_show_result_to_snake_case (args )
55575564
5565+ # Display warning about API version 2026-03-03 changes
5566+ logger .warning ("Starting api-version 2026-03-03, gallery image versions will default to:\n "
5567+ " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n "
5568+ " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n "
5569+ "By default, image deletion is blocked for 6 months. "
5570+ "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false" )
5571+
55585572 if target_regions :
55595573 if "publishing_profile" not in args :
55605574 args ["publishing_profile" ] = {}
0 commit comments