Hi Anthony,
Thank you for sharing your experience. Based on your insights, I will compile a summary to assist others who may encounter a similar issue, with the hope that your solution will help them resolve it more efficiently.
For those currently experiencing the absence of the Azure App Service (Linux) option in Visual Studio, utilizing Azure CLI or Visual Studio Code presents a practical alternative. These tools offer enhanced flexibility for deploying Python applications.
Here are the recommended steps:
- Prepare Your Project
- Compress your project files into a
.ziparchive. - Ensure that the archive includes a valid
requirements.txtfile.
- Compress your project files into a
- Install Azure CLI: If not already installed, download and install the Azure CLI from the official Microsoft documentation.
- Deploy Using Azure CLI: Execute the following command
az webapp deploy --resource-group <resourceGroupName> --name <appserviceName> --src-path <path-to-zip-file.zip> - Configure Environment Variables: In your Azure App Service settings, add this environment variable:
SCM_DO_BUILD_DURING_DEPLOYMENT = true
If this solution aligns with your experience, we encourage you to engage with the system to help others facing the same challenge. Your contribution is greatly appreciated and may significantly accelerate resolution for many. Thank you once again for your valuable input.