Home > Back-end >  How to change Azure App Service Python version from 3.9.7 to 3.9.12?
How to change Azure App Service Python version from 3.9.7 to 3.9.12?

Time:11-18

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?

CodePudding user response:

enter image description here

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:

enter image description here

Using this enter image description here

Here is the reference documentation to create custom docker container on Azure app service which has sample Dockerfile as well.

Refer to this Docker Hub registry for python images and select a particular image based on your requirement.

Note: I have looked at the official docker hub registry for python as well unfortunately we do not have any image that support v3.9.12 we have images for V3.9.15.

  • Related