You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changes the commands az webapp up, az webapp create and az webapp list-runtimes to use web app stacks from the API rather than a hardcoded list.
Also does the same for az functionapp create and creates a new command az functionapp list-runtimes. Note that the command az functionapp list-runtimes has more verbose output that it's webapp equivalent because function app stacks availability depends on the functions version (v3, v4, etc).
Unrelated to the other changes, this also uses the : delimiter for az webapp list-runtimes instead of | to avoid PowerShell issues.
Currently*, the webapp stacks that will no longer be supported are as follows:
*These lists will change over time since the values will be set by the API.
Example Usage az webapp list-runtimes output using no arguments:
az webapp list-runtimes output using --os argument:
az functionapp list-runtimes output without an --os argument:
az functionapp list-runtimes output with an --os argument:
Testing Guide
azdev test --live test_webapp_up_commands test_webapp_commands azdev test --live test_functionapp_commands
History Notes
[App Service] BREAKING CHANGE: az webapp up : Change supported runtimes
[App Service] BREAKING CHANGE: az webapp create : Change supported runtimes
[App Service] BREAKING CHANGE: az webapp list-runtimes : Add --os/--os-type argument, change runtimes, change default behavior to return both linux and windows stacks, and deprecate --linux argument
[App Service] BREAKING CHANGE: az functionapp create : Take runtime names and versions from API instead of hardcoded list
[App Service] az functionapp list-runtimes : Add new command to show function app runtimes, versions, and compatible functions versions
This checklist is used to make sure that common guidelines for a pull request are followed.
@StrawnSC & @calvinsID ,Regarding DIR path & file paths handling - whatever we do should work across windows/ Linux/ all OS file systems. Expecting the path to be a certain format is incorrect. Whatever fixes you do here ensure - doesn't cause any regressions - I recommend keeping this change targeted to Stacks API only & use another PR,, for unrelated changes/ fixes.
Thanks so much for doing this, glad to see we're off the hardcoded lists :D
Np! By the way, this may cause some issues with the command az webapp deployment github-actions add, although it seems the command was already broken: #20808
Thanks for making the fix for removing the "/". If there are further fixes needed for gh actions (especially if the workflow file needs any changes) I'm thinking we can do those in a later PR
Edit: Or we can do all the changes in later PR as well
@panchagnula here's the output without an --os argument. It's cut off, but lower down there's a section for windows stacks. It's essentially the same as the webapps command in how it shows the stacks by OS
@zhoxing-ms thanks for the help with the CI issues. Was the credential scan check changed recently? It was passing last week on the test recordings, but now it appears to be failing
@zhoxing-ms any chance we could get this merged soon? @panchagnula has another big upcoming change that's blocked until this is in dev
zhoxing-ms
changed the title
[App Service] BREAKING CHANGE : Use new web app and function app stacks APIs
[App Service] BREAKING CHANGE: Use new web app and function app stacks APIs
Feb 11, 2022
panchagnula
changed the title
[App Service] BREAKING CHANGE: Use new web app and function app stacks APIs
[App Service] BREAKING CHANGE: az webapp list-runtimes : use new stacks APIs
Feb 11, 2022
zhoxing-ms
changed the title
[App Service] BREAKING CHANGE: az webapp list-runtimes : use new stacks APIs
[App Service] BREAKING CHANGE: az webapp list-runtimes: Use new stacks APIs
Feb 11, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Changes the commands
az webapp up,az webapp createandaz webapp list-runtimesto use web app stacks from the API rather than a hardcoded list.Also does the same for
az functionapp createand creates a new commandaz functionapp list-runtimes. Note that the commandaz functionapp list-runtimeshas more verbose output that it's webapp equivalent because function app stacks availability depends on the functions version (v3, v4, etc).Unrelated to the other changes, this also uses the
:delimiter foraz webapp list-runtimesinstead of|to avoid PowerShell issues.Currently*, the webapp stacks that will no longer be supported are as follows:
*These lists will change over time since the values will be set by the API.
Example Usage

az webapp list-runtimesoutput using no arguments:az webapp list-runtimesoutput using--osargument:az functionapp list-runtimesoutput without an--osargument:az functionapp list-runtimesoutput with an--osargument:Testing Guide
azdev test --live test_webapp_up_commands test_webapp_commandsazdev test --live test_functionapp_commandsHistory Notes
[App Service] BREAKING CHANGE:
az webapp up: Change supported runtimes[App Service] BREAKING CHANGE:
az webapp create: Change supported runtimes[App Service] BREAKING CHANGE:
az webapp list-runtimes: Add--os/--os-typeargument, change runtimes, change default behavior to return both linux and windows stacks, and deprecate--linuxargument[App Service] BREAKING CHANGE:
az functionapp create: Take runtime names and versions from API instead of hardcoded list[App Service]
az functionapp list-runtimes: Add new command to show function app runtimes, versions, and compatible functions versionsThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.