From 660283185c6ac5d13a96d07a39d7e5a90aad6646 Mon Sep 17 00:00:00 2001 From: Naga Nandyala Date: Tue, 2 Dec 2025 15:50:19 +1100 Subject: [PATCH 01/12] add warning msg to az sig image-version create/update --- .gitignore | 2 ++ .../azure/cli/command_modules/vm/custom.py | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/.gitignore b/.gitignore index 9c6b9c0edd0..12b319f95b0 100644 --- a/.gitignore +++ b/.gitignore @@ -122,3 +122,5 @@ cmd_coverage/* # Ignore test results test_results.xml + +_scratch* diff --git a/src/azure-cli/azure/cli/command_modules/vm/custom.py b/src/azure-cli/azure/cli/command_modules/vm/custom.py index 53320a0128f..8f7693871d5 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -5341,6 +5341,13 @@ def create_image_version(cmd, resource_group_name, gallery_name, gallery_image_n from azure.mgmt.core.tools import resource_id, is_valid_resource_id from azure.cli.core.commands.client_factory import get_subscription_id + # Display warning about API version 2026-03-03 changes + logger.warning("Starting api-version 2026-03-03, gallery image versions will default to:\n" + " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" + " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" + "By default, image deletion is blocked for 6 months. " + "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false") + location = location or _get_resource_group_location(cmd.cli_ctx, resource_group_name) end_of_life_date = fix_gallery_image_date_info(end_of_life_date) 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 from .operations.sig_image_version import convert_show_result_to_snake_case args = convert_show_result_to_snake_case(args) + # Display warning about API version 2026-03-03 changes + logger.warning("Starting api-version 2026-03-03, gallery image versions will default to:\n" + " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" + " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" + "By default, image deletion is blocked for 6 months. " + "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false") + if target_regions: if "publishing_profile" not in args: args["publishing_profile"] = {} From 41a672703cb65d9a827a7ad60e7246ddf605cce0 Mon Sep 17 00:00:00 2001 From: Naga Nandyala Date: Thu, 4 Dec 2025 11:13:53 +1100 Subject: [PATCH 02/12] add warning msg to az sig image-version create/update --- .gitignore | 2 - .../command_modules/vm/_breaking_change.py | 44 ++++++++++++++----- .../azure/cli/command_modules/vm/custom.py | 14 ------ 3 files changed, 33 insertions(+), 27 deletions(-) diff --git a/.gitignore b/.gitignore index 12b319f95b0..9c6b9c0edd0 100644 --- a/.gitignore +++ b/.gitignore @@ -122,5 +122,3 @@ cmd_coverage/* # Ignore test results test_results.xml - -_scratch* diff --git a/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py b/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py index ba196f3278c..2b9f3a90a83 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py @@ -2,16 +2,38 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -from azure.cli.core.breaking_change import register_default_value_breaking_change +from azure.cli.core.breaking_change import register_default_value_breaking_change, register_other_breaking_change -register_default_value_breaking_change(command_name='vm create', - arg='--size', - current_default='Standard_DS1_v2', - new_default='Standard_D2s_v5', - target_version=None) +register_default_value_breaking_change( + command_name="vm create", + arg="--size", + current_default="Standard_DS1_v2", + new_default="Standard_D2s_v5", + target_version=None, +) -register_default_value_breaking_change(command_name='vmss create', - arg='--vm-sku', - current_default='Standard_DS1_v2', - new_default='Standard_D2s_v5', - target_version=None) +register_default_value_breaking_change( + command_name="vmss create", + arg="--vm-sku", + current_default="Standard_DS1_v2", + new_default="Standard_D2s_v5", + target_version=None, +) + +register_other_breaking_change( + "sig image-version create", + "Starting api-version 2026-03-03, gallery image versions will default to:\n" + " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" + " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" + "By default, image deletion is blocked for 6 months. " + "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false", +) + +register_other_breaking_change( + "sig image-version update", + "Starting api-version 2026-03-03, gallery image versions will default to:\n" + " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" + " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" + "By default, image deletion is blocked for 6 months. " + "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false", +) diff --git a/src/azure-cli/azure/cli/command_modules/vm/custom.py b/src/azure-cli/azure/cli/command_modules/vm/custom.py index 8f7693871d5..53320a0128f 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -5341,13 +5341,6 @@ def create_image_version(cmd, resource_group_name, gallery_name, gallery_image_n from azure.mgmt.core.tools import resource_id, is_valid_resource_id from azure.cli.core.commands.client_factory import get_subscription_id - # Display warning about API version 2026-03-03 changes - logger.warning("Starting api-version 2026-03-03, gallery image versions will default to:\n" - " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" - " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" - "By default, image deletion is blocked for 6 months. " - "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false") - location = location or _get_resource_group_location(cmd.cli_ctx, resource_group_name) end_of_life_date = fix_gallery_image_date_info(end_of_life_date) if managed_image and not is_valid_resource_id(managed_image): @@ -5562,13 +5555,6 @@ def update_image_version(cmd, resource_group_name, gallery_name, gallery_image_n from .operations.sig_image_version import convert_show_result_to_snake_case args = convert_show_result_to_snake_case(args) - # Display warning about API version 2026-03-03 changes - logger.warning("Starting api-version 2026-03-03, gallery image versions will default to:\n" - " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" - " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" - "By default, image deletion is blocked for 6 months. " - "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false") - if target_regions: if "publishing_profile" not in args: args["publishing_profile"] = {} From 222dbe5957e8de1b1660fb367e85bc1dc187f1a6 Mon Sep 17 00:00:00 2001 From: Naga Nandyala Date: Thu, 4 Dec 2025 11:18:50 +1100 Subject: [PATCH 03/12] add warning msg to az sig image-version create/update --- .../command_modules/vm/_breaking_change.py | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py b/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py index 2b9f3a90a83..e33d0ef35c2 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py @@ -4,21 +4,17 @@ # -------------------------------------------------------------------------------------------- from azure.cli.core.breaking_change import register_default_value_breaking_change, register_other_breaking_change -register_default_value_breaking_change( - command_name="vm create", - arg="--size", - current_default="Standard_DS1_v2", - new_default="Standard_D2s_v5", - target_version=None, -) +register_default_value_breaking_change(command_name='vm create', + arg='--size', + current_default='Standard_DS1_v2', + new_default='Standard_D2s_v5', + target_version=None) -register_default_value_breaking_change( - command_name="vmss create", - arg="--vm-sku", - current_default="Standard_DS1_v2", - new_default="Standard_D2s_v5", - target_version=None, -) +register_default_value_breaking_change(command_name='vmss create', + arg='--vm-sku', + current_default='Standard_DS1_v2', + new_default='Standard_D2s_v5', + target_version=None) register_other_breaking_change( "sig image-version create", From 0ade229f8250634b7e9cec35689adaa848b2c066 Mon Sep 17 00:00:00 2001 From: Naga Nandyala Date: Thu, 11 Dec 2025 13:22:38 +1100 Subject: [PATCH 04/12] new changes --- .../command_modules/vm/_breaking_change.py | 43 ++++++++++++------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py b/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py index e33d0ef35c2..80a590fa17d 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py @@ -16,20 +16,31 @@ new_default='Standard_D2s_v5', target_version=None) -register_other_breaking_change( - "sig image-version create", - "Starting api-version 2026-03-03, gallery image versions will default to:\n" - " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" - " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" - "By default, image deletion is blocked for 6 months. " - "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false", -) +register_default_value_breaking_change(command_name='sig image-version create', + arg='--end-of-life-date', + current_default=None, + new_default='6 months from publish date', + target_version=None) + +register_default_value_breaking_change(command_name='sig image-version create', + arg='--block-deletion-before-end-of-life', + current_default=None, + new_default=True, + target_version=None) +# register_other_breaking_change( +# "sig image-version create", +# "Starting api-version 2026-03-03, gallery image versions will default to:\n" +# " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" +# " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" +# "By default, image deletion is blocked for 6 months. " +# "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false", +# ) -register_other_breaking_change( - "sig image-version update", - "Starting api-version 2026-03-03, gallery image versions will default to:\n" - " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" - " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" - "By default, image deletion is blocked for 6 months. " - "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false", -) +# register_other_breaking_change( +# "sig image-version update", +# "Starting api-version 2026-03-03, gallery image versions will default to:\n" +# " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" +# " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" +# "By default, image deletion is blocked for 6 months. " +# "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false", +# ) From bfd44416287c85ac0f650626962e0bdbbebb2941 Mon Sep 17 00:00:00 2001 From: Naga Nandyala Date: Tue, 2 Dec 2025 15:50:19 +1100 Subject: [PATCH 05/12] add warning msg to az sig image-version create/update --- .gitignore | 2 ++ .../azure/cli/command_modules/vm/custom.py | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/.gitignore b/.gitignore index 9c6b9c0edd0..12b319f95b0 100644 --- a/.gitignore +++ b/.gitignore @@ -122,3 +122,5 @@ cmd_coverage/* # Ignore test results test_results.xml + +_scratch* diff --git a/src/azure-cli/azure/cli/command_modules/vm/custom.py b/src/azure-cli/azure/cli/command_modules/vm/custom.py index bf8e97c67a4..5472ea0b0ff 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -5351,6 +5351,13 @@ def create_image_version(cmd, resource_group_name, gallery_name, gallery_image_n from azure.mgmt.core.tools import resource_id, is_valid_resource_id from azure.cli.core.commands.client_factory import get_subscription_id + # Display warning about API version 2026-03-03 changes + logger.warning("Starting api-version 2026-03-03, gallery image versions will default to:\n" + " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" + " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" + "By default, image deletion is blocked for 6 months. " + "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false") + location = location or _get_resource_group_location(cmd.cli_ctx, resource_group_name) end_of_life_date = fix_gallery_image_date_info(end_of_life_date) if managed_image and not is_valid_resource_id(managed_image): @@ -5565,6 +5572,13 @@ def update_image_version(cmd, resource_group_name, gallery_name, gallery_image_n from .operations.sig_image_version import convert_show_result_to_snake_case args = convert_show_result_to_snake_case(args) + # Display warning about API version 2026-03-03 changes + logger.warning("Starting api-version 2026-03-03, gallery image versions will default to:\n" + " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" + " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" + "By default, image deletion is blocked for 6 months. " + "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false") + if target_regions: if "publishing_profile" not in args: args["publishing_profile"] = {} From 7afedeee6480f8ed1643d8a331d3b3ee2c2e41aa Mon Sep 17 00:00:00 2001 From: Naga Nandyala Date: Thu, 4 Dec 2025 11:13:53 +1100 Subject: [PATCH 06/12] add warning msg to az sig image-version create/update --- .gitignore | 2 - .../command_modules/vm/_breaking_change.py | 44 ++++++++++++++----- .../azure/cli/command_modules/vm/custom.py | 14 ------ 3 files changed, 33 insertions(+), 27 deletions(-) diff --git a/.gitignore b/.gitignore index 12b319f95b0..9c6b9c0edd0 100644 --- a/.gitignore +++ b/.gitignore @@ -122,5 +122,3 @@ cmd_coverage/* # Ignore test results test_results.xml - -_scratch* diff --git a/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py b/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py index ba196f3278c..2b9f3a90a83 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py @@ -2,16 +2,38 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -from azure.cli.core.breaking_change import register_default_value_breaking_change +from azure.cli.core.breaking_change import register_default_value_breaking_change, register_other_breaking_change -register_default_value_breaking_change(command_name='vm create', - arg='--size', - current_default='Standard_DS1_v2', - new_default='Standard_D2s_v5', - target_version=None) +register_default_value_breaking_change( + command_name="vm create", + arg="--size", + current_default="Standard_DS1_v2", + new_default="Standard_D2s_v5", + target_version=None, +) -register_default_value_breaking_change(command_name='vmss create', - arg='--vm-sku', - current_default='Standard_DS1_v2', - new_default='Standard_D2s_v5', - target_version=None) +register_default_value_breaking_change( + command_name="vmss create", + arg="--vm-sku", + current_default="Standard_DS1_v2", + new_default="Standard_D2s_v5", + target_version=None, +) + +register_other_breaking_change( + "sig image-version create", + "Starting api-version 2026-03-03, gallery image versions will default to:\n" + " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" + " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" + "By default, image deletion is blocked for 6 months. " + "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false", +) + +register_other_breaking_change( + "sig image-version update", + "Starting api-version 2026-03-03, gallery image versions will default to:\n" + " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" + " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" + "By default, image deletion is blocked for 6 months. " + "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false", +) diff --git a/src/azure-cli/azure/cli/command_modules/vm/custom.py b/src/azure-cli/azure/cli/command_modules/vm/custom.py index 5472ea0b0ff..bf8e97c67a4 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -5351,13 +5351,6 @@ def create_image_version(cmd, resource_group_name, gallery_name, gallery_image_n from azure.mgmt.core.tools import resource_id, is_valid_resource_id from azure.cli.core.commands.client_factory import get_subscription_id - # Display warning about API version 2026-03-03 changes - logger.warning("Starting api-version 2026-03-03, gallery image versions will default to:\n" - " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" - " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" - "By default, image deletion is blocked for 6 months. " - "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false") - location = location or _get_resource_group_location(cmd.cli_ctx, resource_group_name) end_of_life_date = fix_gallery_image_date_info(end_of_life_date) if managed_image and not is_valid_resource_id(managed_image): @@ -5572,13 +5565,6 @@ def update_image_version(cmd, resource_group_name, gallery_name, gallery_image_n from .operations.sig_image_version import convert_show_result_to_snake_case args = convert_show_result_to_snake_case(args) - # Display warning about API version 2026-03-03 changes - logger.warning("Starting api-version 2026-03-03, gallery image versions will default to:\n" - " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" - " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" - "By default, image deletion is blocked for 6 months. " - "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false") - if target_regions: if "publishing_profile" not in args: args["publishing_profile"] = {} From 5b340aff1e713f8782cfbfda3b92c7e2909c58b4 Mon Sep 17 00:00:00 2001 From: Naga Nandyala Date: Thu, 4 Dec 2025 11:18:50 +1100 Subject: [PATCH 07/12] add warning msg to az sig image-version create/update --- .../command_modules/vm/_breaking_change.py | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py b/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py index 2b9f3a90a83..e33d0ef35c2 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py @@ -4,21 +4,17 @@ # -------------------------------------------------------------------------------------------- from azure.cli.core.breaking_change import register_default_value_breaking_change, register_other_breaking_change -register_default_value_breaking_change( - command_name="vm create", - arg="--size", - current_default="Standard_DS1_v2", - new_default="Standard_D2s_v5", - target_version=None, -) +register_default_value_breaking_change(command_name='vm create', + arg='--size', + current_default='Standard_DS1_v2', + new_default='Standard_D2s_v5', + target_version=None) -register_default_value_breaking_change( - command_name="vmss create", - arg="--vm-sku", - current_default="Standard_DS1_v2", - new_default="Standard_D2s_v5", - target_version=None, -) +register_default_value_breaking_change(command_name='vmss create', + arg='--vm-sku', + current_default='Standard_DS1_v2', + new_default='Standard_D2s_v5', + target_version=None) register_other_breaking_change( "sig image-version create", From 154152f62e37d46a2a3c4a625d701a540c1af951 Mon Sep 17 00:00:00 2001 From: Naga Nandyala Date: Thu, 11 Dec 2025 13:22:38 +1100 Subject: [PATCH 08/12] new changes --- .../command_modules/vm/_breaking_change.py | 43 ++++++++++++------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py b/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py index e33d0ef35c2..80a590fa17d 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py @@ -16,20 +16,31 @@ new_default='Standard_D2s_v5', target_version=None) -register_other_breaking_change( - "sig image-version create", - "Starting api-version 2026-03-03, gallery image versions will default to:\n" - " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" - " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" - "By default, image deletion is blocked for 6 months. " - "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false", -) +register_default_value_breaking_change(command_name='sig image-version create', + arg='--end-of-life-date', + current_default=None, + new_default='6 months from publish date', + target_version=None) + +register_default_value_breaking_change(command_name='sig image-version create', + arg='--block-deletion-before-end-of-life', + current_default=None, + new_default=True, + target_version=None) +# register_other_breaking_change( +# "sig image-version create", +# "Starting api-version 2026-03-03, gallery image versions will default to:\n" +# " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" +# " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" +# "By default, image deletion is blocked for 6 months. " +# "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false", +# ) -register_other_breaking_change( - "sig image-version update", - "Starting api-version 2026-03-03, gallery image versions will default to:\n" - " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" - " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" - "By default, image deletion is blocked for 6 months. " - "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false", -) +# register_other_breaking_change( +# "sig image-version update", +# "Starting api-version 2026-03-03, gallery image versions will default to:\n" +# " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" +# " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" +# "By default, image deletion is blocked for 6 months. " +# "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false", +# ) From 6a5c811cd279569225048e4bf2b0182ea6662f3e Mon Sep 17 00:00:00 2001 From: Naga Nandyala Date: Thu, 11 Dec 2025 13:28:01 +1100 Subject: [PATCH 09/12] adding breaking change warning to az sig image-version create/update --- .../command_modules/vm/_breaking_change.py | 28 ++++++++----------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py b/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py index 80a590fa17d..99ad6244ad7 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py @@ -27,20 +27,16 @@ current_default=None, new_default=True, target_version=None) -# register_other_breaking_change( -# "sig image-version create", -# "Starting api-version 2026-03-03, gallery image versions will default to:\n" -# " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" -# " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" -# "By default, image deletion is blocked for 6 months. " -# "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false", -# ) -# register_other_breaking_change( -# "sig image-version update", -# "Starting api-version 2026-03-03, gallery image versions will default to:\n" -# " - endOfLifeDate = 6 months from publish date (unless explicitly set)\n" -# " - blockDeletionBeforeEndOfLife = true (unless explicitly set)\n" -# "By default, image deletion is blocked for 6 months. " -# "To override, set a custom endOfLifeDate or set blockDeletionBeforeEndOfLife = false", -# ) +register_default_value_breaking_change(command_name='sig image-version update', + arg='--end-of-life-date', + current_default=None, + new_default='6 months from publish date', + target_version=None) + +register_default_value_breaking_change(command_name='sig image-version update', + arg='--block-deletion-before-end-of-life', + current_default=None, + new_default=True, + target_version=None) + From c0e1197b2f7abf5ea80742d5b93e8531660583c3 Mon Sep 17 00:00:00 2001 From: Naga Nandyala Date: Thu, 11 Dec 2025 13:34:45 +1100 Subject: [PATCH 10/12] adding breaking change warning to az sig image-version create/update --- src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py b/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py index 99ad6244ad7..0315a051b4c 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py @@ -2,7 +2,7 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -from azure.cli.core.breaking_change import register_default_value_breaking_change, register_other_breaking_change +from azure.cli.core.breaking_change import register_default_value_breaking_change register_default_value_breaking_change(command_name='vm create', arg='--size', From 7d84fac450babd55912036f8214a7ea5779f098b Mon Sep 17 00:00:00 2001 From: Naga Nandyala Date: Thu, 11 Dec 2025 13:35:06 +1100 Subject: [PATCH 11/12] adding breaking change warning to az sig image-version create/update --- src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py b/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py index 0315a051b4c..ee8fe0d216d 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py @@ -39,4 +39,3 @@ current_default=None, new_default=True, target_version=None) - From d5025a7bebba3697ba9f73701101a2a915bbbb91 Mon Sep 17 00:00:00 2001 From: Naga Nandyala Date: Thu, 11 Dec 2025 15:46:18 +1100 Subject: [PATCH 12/12] adding breaking change warning to az sig image-version create/update --- src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py b/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py index 829be9786a8..ee8fe0d216d 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py @@ -2,7 +2,7 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -from azure.cli.core.breaking_change import register_default_value_breaking_change, register_other_breaking_change +from azure.cli.core.breaking_change import register_default_value_breaking_change register_default_value_breaking_change(command_name='vm create', arg='--size',