Set the Python version with az webapp config set az webapp config set -resource-group -name -linux-fx-version "PYTHON|3.7" Replace and with the names appropriate for your web app. Show the current Python version with az webapp config show: az webapp config show -resource-group -name -query linuxFxVersion Configure Python versionĪzure portal: use the General settings tab on the Configuration page as described on Configure general settings for Linux containers. For more information, see use a custom Docker image. You can however build your own custom Windows container image and run that in App Service. Python on Windows is no longer supported. Linux is the only operating system option for running Python apps in App Service. Run commands locally by installing the latest version of the Azure CLI, then sign in to Azure using az login.You can use either the Azure portal or the Azure CLI for configuration:Īzure portal, use the app's Settings > Configuration page as described on Configure an App Service app in the Azure portal. If you've never used Azure App Service, first follow the Python quickstart and Python with PostgreSQL tutorial. This guide provides key concepts and instructions for Python developers who use a built-in Linux container in App Service. The App Service deployment engine automatically activates a virtual environment and runs pip install -r requirements.txt for you when you deploy a Git repository, or a zip package with build automation enabled. Python apps must be deployed with all the required pip modules. This article describes how Azure App Service runs Python apps, how you can migrate existing apps to Azure, and how you can customize the behavior of App Service when needed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |