How to deploy an Azure WebJob?
I was looking at the documentation for deploying an Azure WebJob with AppVeyor.
I'm using the Azure WebJobs SDK to create/code my webjob.
It says this:
- Create a zip file
- Archive it
- Deploy the archived zip file to the Azure portal.
Ok ... so my questions are:
1. What do I zip?
This page sorta explains what file format we need .. but I have
no idea what the Azure WebJobs SDK actually creates? (It looks like
it's an .exe when i view the Debug or
Release folders.) .. so just confirming.
2. My webjob is a Scheduled webjob using the provided
TimerTrigger As such, I'm not sure about the
job_schedule deployment setting. Do I need this still?
Will the AppVeyor deployment magic be smart enough to put my code
into the correct folder If I don't set anything, here?
I'm thinking something like this ... as a starting point
artifacts:
# This will zip up all files in the bin\debug or bin\release folder.
- path: MyProject\bin\$(configuration)
name: myjob
deploy:
- provider: AzureWebJob
website: mywebsite
username: $mywebsite
password:
secure: AAABBB33CC/DDD+EEE==
artifact: myjob
-- or ---
should I archive my bin\debug or
bin\release folder and then FTP the zip up to
azure?
EDIT: Update post with more info.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

1 Posted by Ilya Finkelshte... on 24 Aug, 2016 12:02 AM
Hello,
Sorry for some delay with reply.
As I understand type if file to achieve defines by type of project which uses WebJobs SDK. In case of web jobs it is most it is Console application, and in this case it should be
.exePlease deploy it as a continuous WebJob, TimerTrigger should take care of schedule.
Your YAML sample looks correct, you do not have to FTP this to Azure. Appveyor will upload job file using WebJobs API.
Thank you,
Ilya.
2 Posted by Pure Krome on 24 Aug, 2016 12:26 AM
Thanks for the reply - i'll give this a try soon :)
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:08 AM.