Skip to content

Commit 28bdd57

Browse files
[Breaking Change] Deprecate --address-prefixes and --subnet-prefixes arguments for network resource commands
1 parent 1903f73 commit 28bdd57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
register_other_breaking_change)
88

99
NETWORK_RESOURCE_BREAKING_CHANGE_MESSAGE = (
10-
'The --address-prefixes and --subnet-prefixes arguments have been deprecated and will be removed. '
1110
'This command will stop creating new network resources or altering existing ones which are required '
1211
'for the server to function, such as virtual networks, subnets, IP ranges, etc. It will instead '
1312
'require users to provide the necessary network resources created beforehand using the corresponding '
@@ -18,6 +17,8 @@
1817

1918
def _register_network_resource_breaking_change(command_name):
2019
register_other_breaking_change(command_name, message=NETWORK_RESOURCE_BREAKING_CHANGE_MESSAGE)
20+
register_argument_deprecate(command_name, '--address-prefixes')
21+
register_argument_deprecate(command_name, '--subnet-prefixes')
2122

2223

2324
# These commands will stop creating or altering required network resources and will instead require

0 commit comments

Comments
 (0)