Differences
This shows you the differences between the selected revisions of the page.
2014-09-11 | 2014-09-12 | ||
fixing links to implementation section (martin) | automating webjob update (martin) | ||
Line 25: | Line 25: | ||
//You can also deploy the job using Visual Studio, see [[#consoleapp|C# Console Application]] section below.// | //You can also deploy the job using Visual Studio, see [[#consoleapp|C# Console Application]] section below.// | ||
+ | |||
+ | ==== [[deploying_auto]] Automating WebJob Update ==== | ||
+ | If you update your WebJob frequently, or if you have multiple instances of similar WebJobs, you can automate the update using WinSCP [[scripting]]. | ||
+ | |||
+ | First, learn how to [[guide_microsoft_azure#website|setup FTPS access to the WebJob (WebSite)]]. | ||
+ | |||
+ | Example script: | ||
+ | |||
+ | <code winscp> | ||
+ | option batch abort | ||
+ | option confirm off | ||
+ | open ftps://winscp\winscp:mypassword@waws-prod-am1-234.ftp.azurewebsites.windows.net/ | ||
+ | put C:\myjob\* /site/wwwroot/App_Data/jobs/type/name/ | ||
+ | exit | ||
+ | </code> | ||
+ | |||
+ | Make sure you update the example with your actual [[guide_microsoft_azure#website|FTP credentials]], %%FTP%% host name, the job type (see above) and name. | ||
===== [[environment]] WebJob Environment ===== | ===== [[environment]] WebJob Environment ===== |