Skip to content

Commit 09a813f

Browse files
author
Dante DG
committed
Updating blueprint commands with deprecation message.
1 parent 5e4e7a4 commit 09a813f

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# --------------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# --------------------------------------------------------------------------------------------
5+
6+
7+
from azure.cli.core.breaking_change import register_command_group_deprecate, register_other_breaking_change
8+
9+
10+
register_command_group_deprecate('az blueprint')
11+
12+
message = """Blueprints and associated commands will be deprecated
13+
' as early as July 2026. Customers are encouraged to transition to
14+
' Template Specs and Deployments Stacks to support their scenarios beyond that date.
15+
' Migration documentation is available at
16+
' https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/migrate-blueprint."""
17+
18+
register_other_breaking_change('az blueprint', message)

src/blueprint/azext_blueprint/custom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ def build_arguments_schema(args_schema):
114114
arg_group="Resource_scope",
115115
help="Use subscription for the scope of the blueprint. If --management-group is not specified, "
116116
"--subscription value or the default subscription will be used as the scope.")
117-
args_schema.resource_scope._required = False
118-
args_schema.resource_scope._registered = False
117+
args_schema.resource_scope._required = False # pylint: disable=W0212
118+
args_schema.resource_scope._registered = False # pylint: disable=W0212
119119
return args_schema
120120

121121

0 commit comments

Comments
 (0)