azure-webjobs

How to connect remote SFTP from Azure web site scheduled job

断了今生、忘了曾经 提交于 2019-12-12 07:23:13
问题 I have one console app which will be scheduled as job in AZURE web site. From that console app I want to connect remote SFTP and get all files and save them in my folder inside AZURE web site.Also if it possible remove them from SFTP after transfer. 回答1: First of all best and free option to use in this case is WinSCP .NET assembly. You can download it from here So lets start this is the function: public static void GetSftp(string host, string user, string password, int port, string source,

Using WebBrowser control in an Azure webjob

╄→гoц情女王★ 提交于 2019-12-12 05:45:02
问题 Does anyone have any experience running a .NET console application which contains a WebBrowser control inside an Azure WebJob? Given that the WebBrowser control has a dependency on IE, I'm not sure whether the Azure WebJob runtime environment would support that dependency? Thanks. 回答1: This will likely not work due to limitations in the sandbox that Web Apps run in. See this document for details, in particular relating to GDI limitations. 来源: https://stackoverflow.com/questions/32969738/using

How to debug why azure web job does not start?

我怕爱的太早我们不能终老 提交于 2019-12-12 05:17:08
问题 In Visual Studio, I am deploying a web site to Azure via the Publish menu option, and the project has an existing web job added to it (via the Add menu). It was added as a continuous job, and has the correct entries in the 'webjob-publish-settings.json' and 'webjobs-list.json' files. When I publish the web site, the job is compiled and put into place in the 'jobs' folder and published with the web site. However, it is not started. No entry is added automatically to the WebJobs settings page

azure - scheduling a webjob

浪子不回头ぞ 提交于 2019-12-12 04:38:01
问题 I've developed a webjob and while I've been testing it, I set it to be manually triggered. I'm happy with the functionality and now I want to set it to run every 30 minutes. In the publish file (webjob-publish-settings.json) I set this "runMode": "Continuous" and I included a setings.job file with this setting { "schedule": "0 */30 * * * *" } I initially set it to 'copy if newer' and I uploaded the webjob. In the azure webjobs section I had a listing for this webjob, type = continuous and it

“InactiveInstance” WebJob Status for Continuous and Singleton jobs

ぐ巨炮叔叔 提交于 2019-12-12 03:32:29
问题 i have created a continuous webjob on azure, and it is running as singleton by adding is_singelton to true in the settings.job. sometimes, i notice that it gives me status of InativeInstance. what does this mean? please if any one can describe it simply! and the reason i have made it singleton, because for some reason the continuous webjob is calling [NoAutomaticTrigger] function multiple times, and because the function i am calling is billing, that is causing in creating multiple invoices

PhantomJs webdriver issue on Azure web job Exception- Cannot start the driver service on http://localhost:51293/

╄→гoц情女王★ 提交于 2019-12-12 03:32:09
问题 I am working with Phantomjs web diver to get page source .it's working fine on local but when i host webjob on azure then its giving me exception; OpenQA.Selenium.WebDriverException: Cannot start the driver service on http://localhost:51293/ http://localhost:51293/ this path changed at every run . 回答1: PhantomJS is not supported by Azure Web App/Web Jobs currently. It is noted in the end of following official document. Azure Web App sandbox - Unsupported frameworks Other scenarios that are

Azure WebJobs Include PDB

流过昼夜 提交于 2019-12-12 03:12:18
问题 I'm trying to find out how to include the PDB files when I upload a Publish an Azure WebJob This article explains how to do this for a normal website Deploy PDBs on an Azure Web Role but I've been unable to find anything for WebJobs Do I just need to manually copy them up to the server? 回答1: You can manually include the files in the Publish section of the project properties. See attached screen shot. Under Publish, select "Application Files" and then click the "Show all files" box. You should

Azure webjobs failed [Access is denied]

被刻印的时光 ゝ 提交于 2019-12-12 01:44:07
问题 I created a console application to read gmail inbox.I need my console app to read emails every 15 minutes.So i published the console app as webjobs with runmode : "On demand" and published the app using azure services (web apps). But my webjobs doesn't seem to run and there is no option to schedule a webjob when i select publish as azure webjobs. As soon as i publish i get this error in visual studio : 'ICICIEmailParser.sstageEntities-Web.config Connection String' argument cannot be null or

X509CertificateCollection problems in an Azure webjob

孤街醉人 提交于 2019-12-12 01:42:49
问题 We are developing an Azure webjob that needs to communicate to several servers, each one of them demanding a separate SSL connection. We have our certificates stored in an external server and load them at runtime together with the corresponding SSL connection settings. When we invoke the X509Certificate2 constructor in order to add it to the X509CertificateCollection, the webjob gets stopped with exit code -1073740940 and its status becomes "PendingRestart". Our guess is that the

Access Azure Function runtime settings

蓝咒 提交于 2019-12-12 01:14:22
问题 Is it possible to access/update the Web.config used by WebJobs.Script.WebHost or the func.exe.Config (in C:\Users\{user}\AppData\Local\Azure.Functions.Cli\1.0.0-beta.91\ )? When I create an Azure Function using the Consumption plan and browse the file share, I do not see either of these files in any of the directories, but I'm assuming that the runtime is getting the settings from one of these files, or something similar. Essentially, I would like to remove the standard .NET headers being