How to add configuration (bicep template) details for adding the WebJob under the API App?

Vamshi 151 Reputation points
2024-01-24T19:36:03.8066667+00:00

Hi, I have below configuration for adding an Receiver API App in Azure environment. I have attached configuration text file which includes main-deploy.bicep File and params.dev.json File configuration code.

configuration.txt

I need to add a WebJob underneath the  Receiver API App. Need inputs to add configuration for adding the WebJob. Need help and please share inputs. Thankyou.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,468 questions
{count} vote

Accepted answer
  1. VenkateshDodda-MSFT 24,141 Reputation points Microsoft Employee
    2024-01-25T08:49:21.0866667+00:00

    @Vamshi Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this. I understand that you're looking to create a webjob using a Bicep template. Typically, webjobs are stored in a specific path in the app service file system, depending on whether they are continuous or triggered.

    Triggered --> d:\home\site\wwwroot\app_data\jobs\triggered<webjobCode> 
    Continuous --> d:\home\site\wwwroot\app_data\jobs\continuous<webjobCode>   
    

    To deploy a web job, you'll need to create a zip file with the webjob code and then run the az webapp deployment source config-zip command from your Bicep template using deployment scripts.

    You can find more information on folder structure of webjobs, zip deployment to app service cmdlet, and deployment scripts in Bicep in the documentation that I'll provide below.

    1. Folder structure and also about webjobs
    2. zip Deploy to app service cmdlet.
    3. Deployment scripts in Bicep.

    Hope this helps. let me know if you have any further questions on this.


0 additional answers

Sort by: Most helpful

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.