From b0ce2923c7ad6b6051d50bf6a05c184ba7f03186 Mon Sep 17 00:00:00 2001 From: Nacho Alonso Portillo Date: Thu, 26 Mar 2026 23:40:04 +0100 Subject: [PATCH 1/8] [PostgreSQL] Announce deprecation of network resource provisioning from flexible server commands --- .../postgresql/_breaking_change.py | 50 ++++++++++++++++++- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py b/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py index c82a8412633..d47c5437f60 100644 --- a/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py +++ b/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py @@ -10,14 +10,14 @@ register_argument_deprecate('postgres flexible-server create', '--high-availability', redirect='--zonal-resiliency') register_argument_deprecate('postgres flexible-server update', '--high-availability', redirect='--zonal-resiliency') -# Index Tuning command argument changes +# Index Tuning command group renamed to Autonomous Tuning as the feature has expanded to include more types of recommendations beyond just index tuning register_command_group_deprecate(command_group='postgres flexible-server index-tuning', redirect='postgres flexible-server autonomous-tuning', message='Index tuning feature has now expanded its capabilities to support ' 'other automatically generated recommendations which are covered by the ' 'new command.') -# Long term retention command argument changes +# Long term retention command group deprecated with no redirect as the functionality will be removed in the future register_command_group_deprecate(command_group='postgres flexible-server long-term-retention', message='Long term retention command group will be removed. ' 'For more information, open a support incident.') @@ -80,3 +80,49 @@ # Replica command argument changes register_argument_deprecate('postgres flexible-server replica create', '--replica-name', redirect='--name') + +# Server create command will stop creating new or altering existing network resources required for the server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to provide the necessary network resources precreated using the corresponding commands from the `az network` module. That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. +register_other_breaking_change('postgres flexible-server create', + message='This command will stop creating new or altering existing ' + 'network resources required for the server to function, such as virtual networks, ' + 'subnets, IP ranges, etc. It will instead require users to provide the necessary ' + 'network resources precreated using the corresponding commands from the ' + '`az network` module. This change will take effect in next breaking change ' + 'release(2.86.0) scheduled for May 2026.') + +# Replica create command will stop creating new or altering existing network resources required for the server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to provide the necessary network resources precreated using the corresponding commands from the `az network` module. That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. +register_other_breaking_change('postgres flexible-server replica create', + message='This command will stop creating new or altering existing ' + 'network resources required for the server to function, such as virtual networks, ' + 'subnets, IP ranges, etc. It will instead require users to provide the necessary ' + 'network resources precreated using the corresponding commands from the ' + '`az network` module. This change will take effect in next breaking change ' + 'release(2.86.0) scheduled for May 2026.') + +# Server restore command will stop creating new or altering existing network resources required for the server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to provide the necessary network resources precreated using the corresponding commands from the `az network` module. That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. +register_other_breaking_change('postgres flexible-server restore', + message='This command will stop creating new or altering existing ' + 'network resources required for the server to function, such as virtual networks, ' + 'subnets, IP ranges, etc. It will instead require users to provide the necessary ' + 'network resources precreated using the corresponding commands from the ' + '`az network` module. This change will take effect in next breaking change ' + 'release(2.86.0) scheduled for May 2026.') + +# Server geo-restore command will stop creating new or altering existing network resources required for the server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to provide the necessary network resources precreated using the corresponding commands from the `az network` module. That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. +register_other_breaking_change('postgres flexible-server geo-restore', + message='This command will stop creating new or altering existing ' + 'network resources required for the server to function, such as virtual networks, ' + 'subnets, IP ranges, etc. It will instead require users to provide the necessary ' + 'network resources precreated using the corresponding commands from the ' + '`az network` module. This change will take effect in next breaking change ' + 'release(2.86.0) scheduled for May 2026.') + + +# Revive dropped server command will stop creating new or altering existing network resources required for the server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to provide the necessary network resources precreated using the corresponding commands from the `az network` module. That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. +register_other_breaking_change('postgres flexible-server revive-dropped', + message='This command will stop creating new or altering existing ' + 'network resources required for the server to function, such as virtual networks, ' + 'subnets, IP ranges, etc. It will instead require users to provide the necessary ' + 'network resources precreated using the corresponding commands from the ' + '`az network` module. This change will take effect in next breaking change ' + 'release(2.86.0) scheduled for May 2026.') From 698a0dffe9079cd8c22d64a2d86a0f40725ade8c Mon Sep 17 00:00:00 2001 From: Nacho Alonso Portillo Date: Thu, 26 Mar 2026 23:43:52 +0100 Subject: [PATCH 2/8] Announce deprecation of network resource provisioning from flexible server commands --- .../postgresql/_breaking_change.py | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py b/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py index d47c5437f60..346839dc720 100644 --- a/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py +++ b/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py @@ -83,8 +83,8 @@ # Server create command will stop creating new or altering existing network resources required for the server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to provide the necessary network resources precreated using the corresponding commands from the `az network` module. That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. register_other_breaking_change('postgres flexible-server create', - message='This command will stop creating new or altering existing ' - 'network resources required for the server to function, such as virtual networks, ' + message='This command will stop creating new network resources or altering ' + 'existing ones which are required for the server to function, such as virtual networks, ' 'subnets, IP ranges, etc. It will instead require users to provide the necessary ' 'network resources precreated using the corresponding commands from the ' '`az network` module. This change will take effect in next breaking change ' @@ -92,8 +92,8 @@ # Replica create command will stop creating new or altering existing network resources required for the server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to provide the necessary network resources precreated using the corresponding commands from the `az network` module. That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. register_other_breaking_change('postgres flexible-server replica create', - message='This command will stop creating new or altering existing ' - 'network resources required for the server to function, such as virtual networks, ' + message='This command will stop creating new network resources or altering ' + 'existing ones which are required for the server to function, such as virtual networks, ' 'subnets, IP ranges, etc. It will instead require users to provide the necessary ' 'network resources precreated using the corresponding commands from the ' '`az network` module. This change will take effect in next breaking change ' @@ -101,8 +101,8 @@ # Server restore command will stop creating new or altering existing network resources required for the server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to provide the necessary network resources precreated using the corresponding commands from the `az network` module. That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. register_other_breaking_change('postgres flexible-server restore', - message='This command will stop creating new or altering existing ' - 'network resources required for the server to function, such as virtual networks, ' + message='This command will stop creating new network resources or altering ' + 'existing ones which are required for the server to function, such as virtual networks, ' 'subnets, IP ranges, etc. It will instead require users to provide the necessary ' 'network resources precreated using the corresponding commands from the ' '`az network` module. This change will take effect in next breaking change ' @@ -110,8 +110,8 @@ # Server geo-restore command will stop creating new or altering existing network resources required for the server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to provide the necessary network resources precreated using the corresponding commands from the `az network` module. That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. register_other_breaking_change('postgres flexible-server geo-restore', - message='This command will stop creating new or altering existing ' - 'network resources required for the server to function, such as virtual networks, ' + message='This command will stop creating new network resources or altering ' + 'existing ones which are required for the server to function, such as virtual networks, ' 'subnets, IP ranges, etc. It will instead require users to provide the necessary ' 'network resources precreated using the corresponding commands from the ' '`az network` module. This change will take effect in next breaking change ' @@ -120,8 +120,8 @@ # Revive dropped server command will stop creating new or altering existing network resources required for the server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to provide the necessary network resources precreated using the corresponding commands from the `az network` module. That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. register_other_breaking_change('postgres flexible-server revive-dropped', - message='This command will stop creating new or altering existing ' - 'network resources required for the server to function, such as virtual networks, ' + message='This command will stop creating new network resources or altering ' + 'existing ones which are required for the server to function, such as virtual networks, ' 'subnets, IP ranges, etc. It will instead require users to provide the necessary ' 'network resources precreated using the corresponding commands from the ' '`az network` module. This change will take effect in next breaking change ' From 1c13d2add3d5b4635ec75303869eaa076a97e706 Mon Sep 17 00:00:00 2001 From: Nacho Alonso Portillo Date: Fri, 27 Mar 2026 09:37:57 +0100 Subject: [PATCH 3/8] Fixing style issues --- .../postgresql/_breaking_change.py | 28 +++++++++++++++---- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py b/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py index 346839dc720..f88dd4e2ca4 100644 --- a/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py +++ b/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py @@ -10,7 +10,8 @@ register_argument_deprecate('postgres flexible-server create', '--high-availability', redirect='--zonal-resiliency') register_argument_deprecate('postgres flexible-server update', '--high-availability', redirect='--zonal-resiliency') -# Index Tuning command group renamed to Autonomous Tuning as the feature has expanded to include more types of recommendations beyond just index tuning +# Index Tuning command group renamed to Autonomous Tuning as the feature has expanded to +# include more types of recommendations beyond just index tuning register_command_group_deprecate(command_group='postgres flexible-server index-tuning', redirect='postgres flexible-server autonomous-tuning', message='Index tuning feature has now expanded its capabilities to support ' @@ -81,7 +82,10 @@ # Replica command argument changes register_argument_deprecate('postgres flexible-server replica create', '--replica-name', redirect='--name') -# Server create command will stop creating new or altering existing network resources required for the server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to provide the necessary network resources precreated using the corresponding commands from the `az network` module. That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. +# Server create command will stop creating new or altering existing network resources required for the +# server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users +# to provide the necessary network resources precreated using the corresponding commands from the +# `az network` module. That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. register_other_breaking_change('postgres flexible-server create', message='This command will stop creating new network resources or altering ' 'existing ones which are required for the server to function, such as virtual networks, ' @@ -90,7 +94,10 @@ '`az network` module. This change will take effect in next breaking change ' 'release(2.86.0) scheduled for May 2026.') -# Replica create command will stop creating new or altering existing network resources required for the server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to provide the necessary network resources precreated using the corresponding commands from the `az network` module. That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. +# Replica create command will stop creating new or altering existing network resources required for the +# server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users +# to provide the necessary network resources precreated using the corresponding commands from the +# `az network` module. That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. register_other_breaking_change('postgres flexible-server replica create', message='This command will stop creating new network resources or altering ' 'existing ones which are required for the server to function, such as virtual networks, ' @@ -99,7 +106,10 @@ '`az network` module. This change will take effect in next breaking change ' 'release(2.86.0) scheduled for May 2026.') -# Server restore command will stop creating new or altering existing network resources required for the server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to provide the necessary network resources precreated using the corresponding commands from the `az network` module. That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. +# Server restore command will stop creating new or altering existing network resources required for the server to +# function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to provide the +# necessary network resources precreated using the corresponding commands from the `az network` module. +# That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. register_other_breaking_change('postgres flexible-server restore', message='This command will stop creating new network resources or altering ' 'existing ones which are required for the server to function, such as virtual networks, ' @@ -108,7 +118,10 @@ '`az network` module. This change will take effect in next breaking change ' 'release(2.86.0) scheduled for May 2026.') -# Server geo-restore command will stop creating new or altering existing network resources required for the server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to provide the necessary network resources precreated using the corresponding commands from the `az network` module. That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. +# Server geo-restore command will stop creating new or altering existing network resources required for the +# server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to +# provide the necessary network resources precreated using the corresponding commands from the `az network` module. +# That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. register_other_breaking_change('postgres flexible-server geo-restore', message='This command will stop creating new network resources or altering ' 'existing ones which are required for the server to function, such as virtual networks, ' @@ -118,7 +131,10 @@ 'release(2.86.0) scheduled for May 2026.') -# Revive dropped server command will stop creating new or altering existing network resources required for the server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to provide the necessary network resources precreated using the corresponding commands from the `az network` module. That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. +# Revive dropped server command will stop creating new or altering existing network resources required for the +# server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to +# provide the necessary network resources precreated using the corresponding commands from the `az network` module. +# That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. register_other_breaking_change('postgres flexible-server revive-dropped', message='This command will stop creating new network resources or altering ' 'existing ones which are required for the server to function, such as virtual networks, ' From 96d4347c6bd19d381d73d54583d59426cbea8131 Mon Sep 17 00:00:00 2001 From: Nacho Alonso Portillo Date: Fri, 27 Mar 2026 09:49:58 +0100 Subject: [PATCH 4/8] Announce deprecation of network resource provisioning from flexible server commands --- .../postgresql/_breaking_change.py | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py b/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py index f88dd4e2ca4..a578b6798ea 100644 --- a/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py +++ b/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py @@ -84,61 +84,61 @@ # Server create command will stop creating new or altering existing network resources required for the # server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users -# to provide the necessary network resources precreated using the corresponding commands from the +# to provide the necessary network resources created beforehand using the corresponding commands from the # `az network` module. That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. register_other_breaking_change('postgres flexible-server create', message='This command will stop creating new network resources or altering ' 'existing ones which are required for the server to function, such as virtual networks, ' 'subnets, IP ranges, etc. It will instead require users to provide the necessary ' - 'network resources precreated using the corresponding commands from the ' + 'network resources created beforehand using the corresponding commands from the ' '`az network` module. This change will take effect in next breaking change ' 'release(2.86.0) scheduled for May 2026.') # Replica create command will stop creating new or altering existing network resources required for the # server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users -# to provide the necessary network resources precreated using the corresponding commands from the +# to provide the necessary network resources created beforehand using the corresponding commands from the # `az network` module. That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. register_other_breaking_change('postgres flexible-server replica create', message='This command will stop creating new network resources or altering ' 'existing ones which are required for the server to function, such as virtual networks, ' 'subnets, IP ranges, etc. It will instead require users to provide the necessary ' - 'network resources precreated using the corresponding commands from the ' + 'network resources created beforehand using the corresponding commands from the ' '`az network` module. This change will take effect in next breaking change ' 'release(2.86.0) scheduled for May 2026.') # Server restore command will stop creating new or altering existing network resources required for the server to # function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to provide the -# necessary network resources precreated using the corresponding commands from the `az network` module. +# necessary network resources created beforehand using the corresponding commands from the `az network` module. # That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. register_other_breaking_change('postgres flexible-server restore', message='This command will stop creating new network resources or altering ' 'existing ones which are required for the server to function, such as virtual networks, ' 'subnets, IP ranges, etc. It will instead require users to provide the necessary ' - 'network resources precreated using the corresponding commands from the ' + 'network resources created beforehand using the corresponding commands from the ' '`az network` module. This change will take effect in next breaking change ' 'release(2.86.0) scheduled for May 2026.') # Server geo-restore command will stop creating new or altering existing network resources required for the # server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to -# provide the necessary network resources precreated using the corresponding commands from the `az network` module. +# provide the necessary network resources created beforehand using the corresponding commands from the `az network` module. # That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. register_other_breaking_change('postgres flexible-server geo-restore', message='This command will stop creating new network resources or altering ' 'existing ones which are required for the server to function, such as virtual networks, ' 'subnets, IP ranges, etc. It will instead require users to provide the necessary ' - 'network resources precreated using the corresponding commands from the ' + 'network resources created beforehand using the corresponding commands from the ' '`az network` module. This change will take effect in next breaking change ' 'release(2.86.0) scheduled for May 2026.') # Revive dropped server command will stop creating new or altering existing network resources required for the # server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to -# provide the necessary network resources precreated using the corresponding commands from the `az network` module. +# provide the necessary network resources created beforehand using the corresponding commands from the `az network` module. # That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. register_other_breaking_change('postgres flexible-server revive-dropped', message='This command will stop creating new network resources or altering ' 'existing ones which are required for the server to function, such as virtual networks, ' 'subnets, IP ranges, etc. It will instead require users to provide the necessary ' - 'network resources precreated using the corresponding commands from the ' + 'network resources created beforehand using the corresponding commands from the ' '`az network` module. This change will take effect in next breaking change ' 'release(2.86.0) scheduled for May 2026.') From e3135f2d3fb6d07b8883aeb8e0af4e0133547fba Mon Sep 17 00:00:00 2001 From: Nacho Alonso Portillo Date: Fri, 27 Mar 2026 09:55:41 +0100 Subject: [PATCH 5/8] Announce deprecation of network resource provisioning from flexible server commands --- .../postgresql/_breaking_change.py | 82 +++++-------------- 1 file changed, 22 insertions(+), 60 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py b/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py index a578b6798ea..fd30af49548 100644 --- a/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py +++ b/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py @@ -6,6 +6,19 @@ from azure.cli.core.breaking_change import (register_argument_deprecate, register_command_group_deprecate, register_other_breaking_change) + +NETWORK_RESOURCE_BREAKING_CHANGE_MESSAGE = ( + 'This command will stop creating new network resources or altering existing ones which are required ' + 'for the server to function, such as virtual networks, subnets, IP ranges, etc. It will instead ' + 'require users to provide the necessary network resources created beforehand using the corresponding ' + 'commands from the `az network` module. This change will take effect in next breaking change ' + 'release(2.86.0) scheduled for May 2026.' +) + + +def _register_network_resource_breaking_change(command): + register_other_breaking_change(command, message=NETWORK_RESOURCE_BREAKING_CHANGE_MESSAGE) + # High availability command argument changes register_argument_deprecate('postgres flexible-server create', '--high-availability', redirect='--zonal-resiliency') register_argument_deprecate('postgres flexible-server update', '--high-availability', redirect='--zonal-resiliency') @@ -82,63 +95,12 @@ # Replica command argument changes register_argument_deprecate('postgres flexible-server replica create', '--replica-name', redirect='--name') -# Server create command will stop creating new or altering existing network resources required for the -# server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users -# to provide the necessary network resources created beforehand using the corresponding commands from the -# `az network` module. That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. -register_other_breaking_change('postgres flexible-server create', - message='This command will stop creating new network resources or altering ' - 'existing ones which are required for the server to function, such as virtual networks, ' - 'subnets, IP ranges, etc. It will instead require users to provide the necessary ' - 'network resources created beforehand using the corresponding commands from the ' - '`az network` module. This change will take effect in next breaking change ' - 'release(2.86.0) scheduled for May 2026.') - -# Replica create command will stop creating new or altering existing network resources required for the -# server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users -# to provide the necessary network resources created beforehand using the corresponding commands from the -# `az network` module. That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. -register_other_breaking_change('postgres flexible-server replica create', - message='This command will stop creating new network resources or altering ' - 'existing ones which are required for the server to function, such as virtual networks, ' - 'subnets, IP ranges, etc. It will instead require users to provide the necessary ' - 'network resources created beforehand using the corresponding commands from the ' - '`az network` module. This change will take effect in next breaking change ' - 'release(2.86.0) scheduled for May 2026.') - -# Server restore command will stop creating new or altering existing network resources required for the server to -# function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to provide the -# necessary network resources created beforehand using the corresponding commands from the `az network` module. -# That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. -register_other_breaking_change('postgres flexible-server restore', - message='This command will stop creating new network resources or altering ' - 'existing ones which are required for the server to function, such as virtual networks, ' - 'subnets, IP ranges, etc. It will instead require users to provide the necessary ' - 'network resources created beforehand using the corresponding commands from the ' - '`az network` module. This change will take effect in next breaking change ' - 'release(2.86.0) scheduled for May 2026.') - -# Server geo-restore command will stop creating new or altering existing network resources required for the -# server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to -# provide the necessary network resources created beforehand using the corresponding commands from the `az network` module. -# That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. -register_other_breaking_change('postgres flexible-server geo-restore', - message='This command will stop creating new network resources or altering ' - 'existing ones which are required for the server to function, such as virtual networks, ' - 'subnets, IP ranges, etc. It will instead require users to provide the necessary ' - 'network resources created beforehand using the corresponding commands from the ' - '`az network` module. This change will take effect in next breaking change ' - 'release(2.86.0) scheduled for May 2026.') - - -# Revive dropped server command will stop creating new or altering existing network resources required for the -# server to function, such as virtual networks, subnets, IP ranges, etc. It will instead require users to -# provide the necessary network resources created beforehand using the corresponding commands from the `az network` module. -# That change will take effect in next breaking change release(2.86.0) scheduled for May 2026. -register_other_breaking_change('postgres flexible-server revive-dropped', - message='This command will stop creating new network resources or altering ' - 'existing ones which are required for the server to function, such as virtual networks, ' - 'subnets, IP ranges, etc. It will instead require users to provide the necessary ' - 'network resources created beforehand using the corresponding commands from the ' - '`az network` module. This change will take effect in next breaking change ' - 'release(2.86.0) scheduled for May 2026.') +# These commands will stop creating or altering required network resources and will instead require +# users to provide those resources up front using the corresponding `az network` commands. +for command in ( + 'postgres flexible-server create', + 'postgres flexible-server replica create', + 'postgres flexible-server restore', + 'postgres flexible-server geo-restore', + 'postgres flexible-server revive-dropped'): + _register_network_resource_breaking_change(command) From bbb53571469dd1821e91bd31b59ebb0d52cbde46 Mon Sep 17 00:00:00 2001 From: Nacho Alonso Portillo Date: Fri, 27 Mar 2026 15:45:55 +0100 Subject: [PATCH 6/8] Update deprecation message for network resource provisioning in flexible server commands --- .../postgresql/_breaking_change.py | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py b/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py index fd30af49548..9ed2ac9dc65 100644 --- a/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py +++ b/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py @@ -8,6 +8,7 @@ NETWORK_RESOURCE_BREAKING_CHANGE_MESSAGE = ( + 'The --address-prefixes and --subnet-prefixes arguments have been deprecated and will be removed. ' 'This command will stop creating new network resources or altering existing ones which are required ' 'for the server to function, such as virtual networks, subnets, IP ranges, etc. It will instead ' 'require users to provide the necessary network resources created beforehand using the corresponding ' @@ -15,10 +16,20 @@ 'release(2.86.0) scheduled for May 2026.' ) - def _register_network_resource_breaking_change(command): register_other_breaking_change(command, message=NETWORK_RESOURCE_BREAKING_CHANGE_MESSAGE) +# These commands will stop creating or altering required network resources and will instead require +# users to provide those resources up front using the corresponding `az network` commands. +# Parameters --address-prefixes and --subnet-prefixes will also be deprecated for these commands as part of this change. +for command in ( + 'postgres flexible-server create', + 'postgres flexible-server replica create', + 'postgres flexible-server restore', + 'postgres flexible-server geo-restore', + 'postgres flexible-server revive-dropped'): + _register_network_resource_breaking_change(command) + # High availability command argument changes register_argument_deprecate('postgres flexible-server create', '--high-availability', redirect='--zonal-resiliency') register_argument_deprecate('postgres flexible-server update', '--high-availability', redirect='--zonal-resiliency') @@ -94,13 +105,3 @@ def _register_network_resource_breaking_change(command): # Replica command argument changes register_argument_deprecate('postgres flexible-server replica create', '--replica-name', redirect='--name') - -# These commands will stop creating or altering required network resources and will instead require -# users to provide those resources up front using the corresponding `az network` commands. -for command in ( - 'postgres flexible-server create', - 'postgres flexible-server replica create', - 'postgres flexible-server restore', - 'postgres flexible-server geo-restore', - 'postgres flexible-server revive-dropped'): - _register_network_resource_breaking_change(command) From 3b6d9e1eafc3c8f036e2116cae68d82523b239fd Mon Sep 17 00:00:00 2001 From: Nacho Alonso Portillo Date: Fri, 27 Mar 2026 16:31:05 +0100 Subject: [PATCH 7/8] Fixed linter issues --- .../command_modules/postgresql/_breaking_change.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py b/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py index 9ed2ac9dc65..d9753ef0751 100644 --- a/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py +++ b/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py @@ -6,7 +6,6 @@ from azure.cli.core.breaking_change import (register_argument_deprecate, register_command_group_deprecate, register_other_breaking_change) - NETWORK_RESOURCE_BREAKING_CHANGE_MESSAGE = ( 'The --address-prefixes and --subnet-prefixes arguments have been deprecated and will be removed. ' 'This command will stop creating new network resources or altering existing ones which are required ' @@ -16,19 +15,22 @@ 'release(2.86.0) scheduled for May 2026.' ) -def _register_network_resource_breaking_change(command): - register_other_breaking_change(command, message=NETWORK_RESOURCE_BREAKING_CHANGE_MESSAGE) + +def _register_network_resource_breaking_change(command_name): + register_other_breaking_change(command_name, message=NETWORK_RESOURCE_BREAKING_CHANGE_MESSAGE) + # These commands will stop creating or altering required network resources and will instead require # users to provide those resources up front using the corresponding `az network` commands. # Parameters --address-prefixes and --subnet-prefixes will also be deprecated for these commands as part of this change. -for command in ( +for network_command in ( 'postgres flexible-server create', 'postgres flexible-server replica create', 'postgres flexible-server restore', 'postgres flexible-server geo-restore', 'postgres flexible-server revive-dropped'): - _register_network_resource_breaking_change(command) + _register_network_resource_breaking_change(network_command) + # High availability command argument changes register_argument_deprecate('postgres flexible-server create', '--high-availability', redirect='--zonal-resiliency') From 92718e79c88f72b127326250dea30cf2c92b1413 Mon Sep 17 00:00:00 2001 From: Nacho Alonso Portillo Date: Fri, 27 Mar 2026 19:11:55 +0100 Subject: [PATCH 8/8] Remove version reference from deprecation message for network resource provisioning --- .../azure/cli/command_modules/postgresql/_breaking_change.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py b/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py index d9753ef0751..50f0fad2a63 100644 --- a/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py +++ b/src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py @@ -12,7 +12,7 @@ 'for the server to function, such as virtual networks, subnets, IP ranges, etc. It will instead ' 'require users to provide the necessary network resources created beforehand using the corresponding ' 'commands from the `az network` module. This change will take effect in next breaking change ' - 'release(2.86.0) scheduled for May 2026.' + 'release scheduled for May 2026.' )