Skip to content

Commit 38b40df

Browse files
authored
[ARM] az policy: Add deprecation message for breaking change pre-announcement (#31458)
1 parent 0c300b6 commit 38b40df

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
from azure.cli.core.breaking_change import register_other_breaking_change
7+
8+
register_other_breaking_change(
9+
'policy assignment identity remove',
10+
'Removing a user assigned identity will change in a future release of the resource commands. '
11+
'It will require providing the --mi-user-assigned switch.')
12+
register_other_breaking_change(
13+
'policy assignment identity assign',
14+
'Replacing an existing identity will change in a future release of the resource commands. '
15+
'It will require first removing the existing identity.')
16+
register_other_breaking_change(
17+
'policy assignment non-compliance-message create',
18+
'The return value will change in a future release of the resource commands. '
19+
'It will be the single created message object rather than the full array of message objects.')
20+
register_other_breaking_change(
21+
'policy assignment non-compliance-message delete',
22+
'The return value will change in a future release of the resource commands. '
23+
'It will be empty rather than the full array of remaining message objects.')
24+
register_other_breaking_change(
25+
'policy assignment non-compliance-message create',
26+
'The return value will change in a future release of the resource commands. '
27+
'It will be the single created message object rather than the full array of message objects.')
28+
register_other_breaking_change(
29+
'policy definition delete',
30+
'Behavior will change in a future release of the resource commands. '
31+
'Bypassing the confirmation prompt will require providing the -y switch.')
32+
register_other_breaking_change(
33+
'policy set-definition delete',
34+
'Behavior will change in a future release of the resource commands. '
35+
'Bypassing the confirmation prompt will require providing the -y switch.')
36+
register_other_breaking_change(
37+
'policy exemption create',
38+
'Date format will change slightly in a future release of the resource commands. '
39+
'New format is ISO-8601, e.g. 2025-08-05T00:45:13Z instead of 2025-08-05T00:45:13+00:00.',
40+
'--expires-on')
41+
register_other_breaking_change(
42+
'policy exemption update',
43+
'Date format will change slightly in a future release of the resource commands. '
44+
'New format is ISO-8601, e.g. 2025-08-05T00:45:13Z instead of 2025-08-05T00:45:13+00:00.',
45+
'--expires-on')

0 commit comments

Comments
 (0)