From 8eb6db39c32ff51f551d8fa6255274326338d45f Mon Sep 17 00:00:00 2001 From: Dante DG Date: Wed, 15 Jan 2025 15:31:09 -0500 Subject: [PATCH 1/2] Updating blueprint commands with deprecation message. --- src/blueprint/HISTORY.rst | 4 ++++ .../azext_blueprint/_breaking_change.py | 18 ++++++++++++++++++ .../azext_blueprint/azext_metadata.json | 2 +- src/blueprint/azext_blueprint/custom.py | 4 ++-- src/blueprint/setup.py | 2 +- 5 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 src/blueprint/azext_blueprint/_breaking_change.py diff --git a/src/blueprint/HISTORY.rst b/src/blueprint/HISTORY.rst index ae49811461f..f4bde44066f 100644 --- a/src/blueprint/HISTORY.rst +++ b/src/blueprint/HISTORY.rst @@ -2,6 +2,10 @@ Release History =============== +1.0.0b1 ++++++ +* Deprecate blueprint commands + 0.3.2 +++++ * Migrate to atomic commands diff --git a/src/blueprint/azext_blueprint/_breaking_change.py b/src/blueprint/azext_blueprint/_breaking_change.py new file mode 100644 index 00000000000..613ca861cc7 --- /dev/null +++ b/src/blueprint/azext_blueprint/_breaking_change.py @@ -0,0 +1,18 @@ +# -------------------------------------------------------------------------------------------- +# 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_command_group_deprecate, register_other_breaking_change + + +register_command_group_deprecate('az blueprint') + +message = """Blueprints and associated commands will be deprecated +as early as July 2026. Customers are encouraged to transition to +Template Specs and Deployments Stacks to support their scenarios beyond that date. +Migration documentation is available at +https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/migrate-blueprint.""" + +register_other_breaking_change('az blueprint', message) \ No newline at end of file diff --git a/src/blueprint/azext_blueprint/azext_metadata.json b/src/blueprint/azext_blueprint/azext_metadata.json index 3f82093c78b..7e5dc9636ac 100644 --- a/src/blueprint/azext_blueprint/azext_metadata.json +++ b/src/blueprint/azext_blueprint/azext_metadata.json @@ -1,4 +1,4 @@ { - "azext.isExperimental": true, + "azext.isPreview": true, "azext.minCliCoreVersion": "2.50.0" } \ No newline at end of file diff --git a/src/blueprint/azext_blueprint/custom.py b/src/blueprint/azext_blueprint/custom.py index 637b96b3c8e..f7fadc76449 100644 --- a/src/blueprint/azext_blueprint/custom.py +++ b/src/blueprint/azext_blueprint/custom.py @@ -114,8 +114,8 @@ def build_arguments_schema(args_schema): arg_group="Resource_scope", help="Use subscription for the scope of the blueprint. If --management-group is not specified, " "--subscription value or the default subscription will be used as the scope.") - args_schema.resource_scope._required = False - args_schema.resource_scope._registered = False + args_schema.resource_scope._required = False # pylint: disable=W0212 + args_schema.resource_scope._registered = False # pylint: disable=W0212 return args_schema diff --git a/src/blueprint/setup.py b/src/blueprint/setup.py index 9eca552b598..2264a5e387b 100644 --- a/src/blueprint/setup.py +++ b/src/blueprint/setup.py @@ -16,7 +16,7 @@ # TODO: Confirm this is the right version number you want and it matches your # HISTORY.rst entry. -VERSION = '0.3.2' +VERSION = '1.0.0b1' # The full list of classifiers is available at From 95446a5b0193a14cc1b2f9587c7225086f62fb5c Mon Sep 17 00:00:00 2001 From: Dante DG Date: Fri, 16 May 2025 12:21:10 -0400 Subject: [PATCH 2/2] adding newline. --- src/blueprint/azext_blueprint/_breaking_change.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blueprint/azext_blueprint/_breaking_change.py b/src/blueprint/azext_blueprint/_breaking_change.py index 613ca861cc7..dc4cfae870b 100644 --- a/src/blueprint/azext_blueprint/_breaking_change.py +++ b/src/blueprint/azext_blueprint/_breaking_change.py @@ -15,4 +15,4 @@ Migration documentation is available at https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/migrate-blueprint.""" -register_other_breaking_change('az blueprint', message) \ No newline at end of file +register_other_breaking_change('az blueprint', message)