Issue
I am trying to deploy an application on Azure App Service. I have created a deployment with Python 3.9.7
, but my app needs Python 3.9.12
. How do I upgrade python's version?
In Azure App Service > Configuration > General Settings > Python minor version, there is no 3.9.12 available. So I have to upgrade it by SSH. But, I don't understand Linux.
Can anyone tell me a command to upgrade my python version to 3.9.12 using bash?
Solution
Created the Python Web App from the Azure Portal with the version 3.9 and shown as 3.9.7 in the SSH Console.
In the Configuration, it shown me only these versions in minor and major dropdown lists:
Using this Azure CLI cmdlet az webapp config set ...
, I have set the Python version from 3.9.7
to 3.9.12
but not reflected specifically like 3.9.X
in the SSH Console. It is showing the current python version of that web app with the az webapp config show
cmdlet:
az webapp config set --resource-group HariTestRG --name krishpywebapp101 --linux-fx-version "PYTHON|3.9.12"
Result:
az webapp config show --resource-group HariTestRG --name krishpywebapp101 --query linuxFxVersion
Answered By - Hari Krishna Answer Checked By - David Marino (WPSolving Volunteer)