From 5bce7307591e5227d89c8e9066d9d9a4253ac178 Mon Sep 17 00:00:00 2001 From: Jordan Selig Date: Wed, 4 Mar 2026 17:10:35 -0500 Subject: [PATCH 1/2] [App Service] Pre-announce breaking changes for webapp list-runtimes Pre-announce upcoming breaking changes for az webapp list-runtimes: - Output format changing from flat string list to structured list of dicts - --linux parameter being removed (use --os linux) - --show-runtime-details parameter being removed Targeting the next breaking change window (Build 2026). --- .../appservice/_breaking_change.py | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/azure-cli/azure/cli/command_modules/appservice/_breaking_change.py diff --git a/src/azure-cli/azure/cli/command_modules/appservice/_breaking_change.py b/src/azure-cli/azure/cli/command_modules/appservice/_breaking_change.py new file mode 100644 index 00000000000..b5234b48f08 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/appservice/_breaking_change.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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_output_breaking_change, + register_argument_deprecate) + +# az webapp list-runtimes output format change +register_output_breaking_change( + 'webapp list-runtimes', + description='The output will change from a flat list of strings to a structured list of objects ' + 'with keys: os, runtime, version, config, support, end_of_life.', + guide='Update scripts that parse the current string-list output. The new output is a list of ' + 'dicts with keys: os, runtime, version, config, support, end_of_life. ' + 'New --runtime and --support filter parameters will be added. ' + 'Use -o table for a human-readable view, or -o json and parse the new structured format.') + +# az webapp list-runtimes --linux removal +register_argument_deprecate('webapp list-runtimes', '--linux', redirect='--os linux') + +# az webapp list-runtimes --show-runtime-details removal +register_argument_deprecate('webapp list-runtimes', '--show-runtime-details') From fb7ccd7c6d81a26030bfe7b46a6143d19a1261cf Mon Sep 17 00:00:00 2001 From: Jordan Selig Date: Wed, 4 Mar 2026 17:35:07 -0500 Subject: [PATCH 2/2] Fix --linux redirect to match existing deprecate_info in _params.py --- .../azure/cli/command_modules/appservice/_breaking_change.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/appservice/_breaking_change.py b/src/azure-cli/azure/cli/command_modules/appservice/_breaking_change.py index b5234b48f08..05e9e9889f2 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/_breaking_change.py +++ b/src/azure-cli/azure/cli/command_modules/appservice/_breaking_change.py @@ -17,7 +17,7 @@ 'Use -o table for a human-readable view, or -o json and parse the new structured format.') # az webapp list-runtimes --linux removal -register_argument_deprecate('webapp list-runtimes', '--linux', redirect='--os linux') +register_argument_deprecate('webapp list-runtimes', '--linux', redirect='--os-type') # az webapp list-runtimes --show-runtime-details removal register_argument_deprecate('webapp list-runtimes', '--show-runtime-details')