How to Deploy Python Codes in Azure

Promit Bhattacherjee 1 Reputation point
2022-04-11T15:13:56.03+00:00

Hello Experts,

I am a practicing noob in Azure and Meanwhile also learning Python. I am Creating Applications and Automated programs in Python. Need help regarding how can I Deploy these Python apps that I create onto Azure App Service. I have Recently Created an Automated Birthday Email Sender Code in Python, Want to Deploy that in App Service with Web jobs running it as Scheduled. Please help me with how to do this task.

Many Many Thanks

Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
237 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,880 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Takahito Iwasa 4,851 Reputation points MVP
    2022-04-11T20:45:22.2+00:00

    Hi, @Promit Bhattacherjee

    I understand that you want to deploy a web job program to App Service instead of a web application.

    First, are you using the App Service for Windows?
    Please note that web jobs are not supported on Linux. In that case, we recommend migrating to Azure Functions.

    Next, for deployment, you can upload via the Azure portal by following the steps below.
    https://learn.microsoft.com/en-us/azure/app-service/webjobs-create#acceptablefiles

    If you have any additional questions, please comment in this thread. We can support you.

    0 comments No comments

  2. brtrach-MSFT 16,506 Reputation points Microsoft Employee
    2022-04-12T02:50:59.017+00:00

    @Promit Bhattacherjee to add to the great answer that @Takahito Iwasa provided, Python is no longer supported on Windows Azure Web Apps so you would have to use a Linux Azure Web App for your Python App.

    To assist you further, I would suggest checking out this document here, which talks about the steps of how to create a web app and then deploy your site files.

    As previously shared, Web Jobs are not supported on Linux Web Apps. The workaround for that, you would need to do something like creating a time triggered Function app. Steps on how to do that are covered here.

    If you have further questions, please let us know. We are excited to have you use Azure!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.