'Is there a way to deploy a Python code in Azure and run it in webjob?

I have a Python code and received specific instructions saying 'deploy it in Azure and run the job'. Could anyone help me understand the same? I have access to the Blob storage (from where the code is picking the input files and is uploading the output), as well as to Azure Devops. PS- Non technical person here so would appreciate any help on that.

Thank you



Solution 1:[1]

The workaround follows:

Create a python Script

Create a python Script (fileName.py)

import sys  
print(sys.version)  
print("our test web job running....")

After creating the file run locally.

Make a .Zip file of python script and required folders

enter image description here

Deploy web jobs in Azure App Service

In your AppService -> Settings Blade -> Select Web Jobs -> Add your Web Job Application

enter image description here

enter image description here

Go to the Logs it will show the details of web job information

enter image description here

Reference:

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 DelliganeshS-MT