az webapp config set --linux-fx-version always deploys "PHP version : 8.0.30" and not the specified linux-fx-version #28638
Labels
app-service-general
Auto-Assign
Auto assign by bot
Auto-Resolve
Auto resolve by bot
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Service Attention
This issue is responsible by Azure service team.
Web Apps
az webapp
Describe the bug
When trying to change the stack (full switch like java => python or just version change python 3.12 => 3.8) with:
az webapp config set --name APP_NAME --slot SLOT_NAME --resource-group RG_NAME --subscription SUB_NAME --linux-fx-version "LINUX_FX_VERSION", the deployed container always ends-up being a PHP container ("PHP version : 8.0.30").
Related command
az webapp config set --name APP_NAME --slot SLOT_NAME --resource-group RG_NAME --subscription SUB_NAME --linux-fx-version "LINUX_FX_VERSION"
Errors
Deploying anything else than a PHP linux-version still deploys a PHP container.
az webapp config set --name APP_NAME --slot SLOT_NAME --resource-group RG_NAME --subscription SUB_NAME --linux-fx-version "PYTHON|3.12"
az webapp config set --name APP_NAME --slot SLOT_NAME --resource-group RG_NAME --subscription SUB_NAME --linux-fx-version "PYTHON:3.12"
az webapp config set --name APP_NAME --slot SLOT_NAME --resource-group RG_NAME --subscription SUB_NAME --linux-fx-version "NODE|18-lts"
az webapp config set --name APP_NAME --slot SLOT_NAME --resource-group RG_NAME --subscription SUB_NAME --linux-fx-version "NODE:18-lts"
They all cause this:
Issue script & Debug output
Pick a linux-fx-version from: az webapp list-runtimes --os-type linux (which seems to give outdated values by the way since JAVA 21is not listed there but can be picked from the Azure Portal).
Run: az webapp config set --name APP_NAME --slot SLOT_NAME --resource-group RG_NAME --subscription SUB_NAME --linux-fx-version "PYTHON:3.12"
Ssh to App Service Container and check what the deployed container is from the welcome message.
Expected behavior
Setting --linux-fx-version as a value from az webapp list-runtimes --os-type linux in az webapp config set should have the right container deployed.
Environment Summary
az --version
azure-cli 2.54.0
core 2.54.0
telemetry 1.1.0
Extensions:
bastion 0.3.0
Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2
Additional context
I tried using the values from function apps as well as linux-fx-version, it doesn't work either (az functionapp list-runtimes --os linux --query "[].{stack:join(' ', [runtime, version]), LinuxFxVersion:linux_fx_version, SupportedFunctionsVersions:to_string(supported_functions_versions[])}" --output table, coming from https://learn.microsoft.com/en-us/azure/azure-functions/functions-app-settings#linuxfxversion.
I also tried fiddling around with --python-version but it seems to have no effect.
The text was updated successfully, but these errors were encountered: