@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.
- Folder structure and also about webjobs
- zip Deploy to app service cmdlet.
- Deployment scripts in Bicep.
Hope this helps. let me know if you have any further questions on this.