Skip to content

[WIP] Copilot Request#33590

Closed
Copilot wants to merge 1 commit into
devfrom
copilot/fix-6844498-51040886-0f48290e-e988-41c4-a600-6649ddfdd03d
Closed

[WIP] Copilot Request#33590
Copilot wants to merge 1 commit into
devfrom
copilot/fix-6844498-51040886-0f48290e-e988-41c4-a600-6649ddfdd03d

Conversation

Copilot AI commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.


This section details on the original issue you should resolve

<issue_title>az webapp list-runtimes --os-type linux no longer returns newer Java versions</issue_title>
<issue_description>### Describe the bug

When calling az webapp list-runtimes --os-type linux | grep "java", not all versions are returned.

Output from az 2.87.0:

"config": "JAVA|11-java11",
"config": "JBOSSEAP|8-java11",
"config": "JBOSSEAP|7-java11",
"config": "JBOSSEAP|7-java8",
"config": "TOMCAT|11.0-java11",
"config": "TOMCAT|10.1-java11",
"config": "TOMCAT|9.0-java11",

For reference, this was the output in 2.86.0:

"JAVA:25-java25",
"JAVA:21-java21",
"JAVA:17-java17",
"JAVA:11-java11",
"JBOSSEAP:8-java21",
"JBOSSEAP:8-java17",
"JBOSSEAP:8-java11",
"JBOSSEAP:7-java17",
"JBOSSEAP:7-java11",
"JBOSSEAP:7-java8",
"TOMCAT:11.0-java25",
"TOMCAT:11.0-java21",
"TOMCAT:11.0-java17",
"TOMCAT:11.0-java11",
"TOMCAT:10.1-java25",
"TOMCAT:10.1-java21",
"TOMCAT:10.1-java17",
"TOMCAT:10.1-java11",
"TOMCAT:9.0-java25",
"TOMCAT:9.0-java21",
"TOMCAT:9.0-java17",
"TOMCAT:9.0-java11",

Note that this does work correctly when the --os-type parameter is not supplied - then it does list all Java versions.

Related command

az webapp list-runtimes --os-type linux | grep "java"

Errors

n/a

Issue script & Debug output

scratch_12.txt

Expected behavior

A full list of all Java versions.

Environment Summary

azure-cli 2.87.0

core 2.87.0
telemetry 1.1.0

Extensions:
aks-preview 21.0.0b3
application-insights 1.2.3
bastion 1.4.3
cdn 1.0.0b1
eventgrid 1.0.0b2

Dependencies:
msal 1.36.0
azure-mgmt-resource 24.0.0

Python location '/opt/az/bin/python3'
Config directory '/home/bert-blommers/.azure'
Extensions directory '/home/bert-blommers/.azure/cliextensions'

Python (Linux) 3.13.13 (main, May 26 2026, 06:37:04) [GCC 13.3.0]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

No response</issue_description>

Comments on the Issue (you are @copilot in this section)

@yonzhan Thank you for opening this issue, we will look into it. @azclibot Thanks for the detailed report! This looks like a regression introduced in 2.87.0 in the `az webapp list-runtimes` command.

Summary of the issue:

  • Command: az webapp list-runtimes --os-type linux
  • Regression: Version 2.87.0 returns a significantly reduced set of Java runtime versions compared to 2.86.0
  • Specifically, only java11 entries appear for TOMCAT stacks; Java 17, 21, and 25 variants are missing
  • The bug does not occur when --os-type is omitted (all versions are returned correctly in that case)
  • This points to a filtering or parsing issue specific to the --os-type linux code path in the appservice module

Investigation starting points:

  • The az webapp list-runtimes command lives in src/azure-cli/azure/cli/command_modules/appservice/
  • Look for the list_runtimes function and any filtering logic applied when --os-type linux is specified
  • Compare the logic between the --os-type path and the no---os-type path to find the discrepancy introduced in 2.87.0
  • Check the changelog / recent commits to appservice between 2.86.0 and 2.87.0 for related changes

The fix should ensure that all Java stack versions (Java 11, 17, 21, 25) are returned for TOMCAT, JBOSSEAP, and plain JAVA stacks when --os-type linux is specified.


Posted by agent-assist (autonomous bug-fix pipeline).</comment_new>

@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented Jun 20, 2026

Copy link
Copy Markdown
️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.14
️✔️acs
️✔️latest
️✔️3.12
️✔️3.14
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.14
️✔️ams
️✔️latest
️✔️3.12
️✔️3.14
️✔️apim
️✔️latest
️✔️3.12
️✔️3.14
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.14
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.14
️✔️aro
️✔️latest
️✔️3.12
️✔️3.14
️✔️backup
️✔️latest
️✔️3.12
️✔️3.14
️✔️batch
️✔️latest
️✔️3.12
️✔️3.14
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.14
️✔️billing
️✔️latest
️✔️3.12
️✔️3.14
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.14
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.14
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.14
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.14
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.14
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.14
️✔️config
️✔️latest
️✔️3.12
️✔️3.14
️✔️configure
️✔️latest
️✔️3.12
️✔️3.14
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.14
️✔️container
️✔️latest
️✔️3.12
️✔️3.14
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.14
️✔️core
️✔️latest
️✔️3.12
️✔️3.14
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.14
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.14
️✔️dls
️✔️latest
️✔️3.12
️✔️3.14
️✔️dms
️✔️latest
️✔️3.12
️✔️3.14
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.14
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.14
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.14
️✔️find
️✔️latest
️✔️3.12
️✔️3.14
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.14
️✔️identity
️✔️latest
️✔️3.12
️✔️3.14
️✔️iot
️✔️latest
️✔️3.12
️✔️3.14
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.14
️✔️lab
️✔️latest
️✔️3.12
️✔️3.14
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.14
️✔️maps
️✔️latest
️✔️3.12
️✔️3.14
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.14
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.14
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.14
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.14
️✔️network
️✔️latest
️✔️3.12
️✔️3.14
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.14
️✔️postgresql
️✔️latest
️✔️3.12
️✔️3.14
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.14
️✔️profile
️✔️latest
️✔️3.12
️✔️3.14
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.14
️✔️redis
️✔️latest
️✔️3.12
️✔️3.14
️✔️relay
️✔️latest
️✔️3.12
️✔️3.14
️✔️resource
️✔️latest
️✔️3.12
️✔️3.14
️✔️role
️✔️latest
️✔️3.12
️✔️3.14
️✔️search
️✔️latest
️✔️3.12
️✔️3.14
️✔️security
️✔️latest
️✔️3.12
️✔️3.14
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.14
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.14
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.14
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.14
️✔️sql
️✔️latest
️✔️3.12
️✔️3.14
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.14
️✔️storage
️✔️latest
️✔️3.12
️✔️3.14
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.14
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.14
️✔️util
️✔️latest
️✔️3.12
️✔️3.14
️✔️vm
️✔️latest
️✔️3.12
️✔️3.14

@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented Jun 20, 2026

Copy link
Copy Markdown
️✔️AzureCLI-BreakingChangeTest
️✔️Non Breaking Changes

@azclibot

Copy link
Copy Markdown
Collaborator

Live test results — azdev test webapp --live --series

FAIL — no tests selected for webapp (extension)

Target: webapp (extension)
PR head ref: copilot/fix-6844498-51040886-0f48290e-e988-41c4-a600-6649ddfdd03d
PR head sha: 0bf5b4280a076fbb77887563a17fd917c14ea6d1
PR base ref: dev
New test files in PR: false

Workflow run: https://github.com/Azure/issue-sentinel/actions/runs/27870761795

Last 80 lines of azdev output

=============
| Run Tests |
=============

/home/runner/work/issue-sentinel/issue-sentinel/.venv/bin/az:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  __import__('pkg_resources').require('azure-cli==2.87.0')

=====================
| Discovering Tests |
=====================

/home/runner/work/issue-sentinel/issue-sentinel/azure-cli/src/azure-cli/azure/cli/command_modules/identity/tests/latest/test_identity.py:18: SyntaxWarning: invalid escape sequence '\{'
  'resource_restriction_compute': '\{"providers":\["Microsoft.Compute"\]\}',
/home/runner/work/issue-sentinel/issue-sentinel/azure-cli/src/azure-cli/azure/cli/command_modules/identity/tests/latest/test_identity.py:19: SyntaxWarning: invalid escape sequence '\{'
  'resource_restriction_empty': '\{"providers":\[\]\}'
/home/runner/work/issue-sentinel/issue-sentinel/azure-cli/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py:13533: SyntaxWarning: invalid escape sequence '\]'
  self.cmd('vmss application set -g {rg} -n {vmss} --app-version-ids {vid1} {vid2} --enable-automatic-upgrade True\]', checks=[

test index created: /home/runner/.azdev/env_config/home/runner/work/issue-sentinel/issue-sentinel/.venv/test_index/latest.json

Test on modules: webapp

WARNING: RUNNING TESTS LIVE
WARNING: 'webapp' not found. If newly added, re-run with --discover
WARNING: No tests selected to run.

Posted by agent-assist live-test workflow.

@a0x1ab a0x1ab closed this Jun 20, 2026
@yonzhan

yonzhan commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator

Copilot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

az webapp list-runtimes --os-type linux no longer returns newer Java versions

5 participants