azure-webjobs

How to generate Bearer Token using C# REST API Authenticate with Bearer Token?

痴心易碎 提交于 2019-12-01 13:06:15
问题 I am trying to create webjob to execute Token end point and generate the bearer token and execute Graph End Point to Query graph? How can I achive the same using C# REST Api? What is token end point? Following is the screenshot for token genrated in Postman tool. 回答1: What is token end point? https://login.windows.net/<tenant-id>/oauth2/token How can I achive the same using C# REST Api? If you want to use Resource Owner Password Credentials Grant in Azure AD OAuth, you may get the answer from

How to deploy a webjob through CI in VSO with vNext

落爺英雄遲暮 提交于 2019-12-01 13:02:13
I'm trying to deploy a scheduled webjob through CI and vNext tasks in VSO . I followed the steps in the following tutorial to deploy a webjob along with a web app ("Enable automatic deployment with a web project"): https://azure.microsoft.com/en-us/documentation/articles/websites-dotnet-deploy-webjobs/ I succeeded partially: the webjob gets deployed along with the web application. However, it is marked as On Demand instead of Scheduled (or whatever the proper status is). I can run the webjob manually and it runs just fine. I checked the files webjob-publish-settings.json (in the webjob) and

publish dnx based WebJob with local dependencies

天大地大妈咪最大 提交于 2019-12-01 11:24:40
问题 I'm trying to publish my DNX-based WebJob to Azure. To do this I add my project.json and Program.cs files to some ZIP-archive and upload it through Azure portal. This works fine, but now i want my WebJob project to reference some other local DNX-based project (just a simple class library). How do I upload it in this case? 回答1: Here is a sample repo that works https://github.com/ahmelsayed-test/DnxWebJobWithClassLibrary. Clone it, zip it, and upload it. It should work! Unfortunately the

How to deploy a webjob through CI in VSO with vNext

不羁的心 提交于 2019-12-01 10:00:44
问题 I'm trying to deploy a scheduled webjob through CI and vNext tasks in VSO . I followed the steps in the following tutorial to deploy a webjob along with a web app ("Enable automatic deployment with a web project"): https://azure.microsoft.com/en-us/documentation/articles/websites-dotnet-deploy-webjobs/ I succeeded partially: the webjob gets deployed along with the web application. However, it is marked as On Demand instead of Scheduled (or whatever the proper status is). I can run the webjob

Publishing web app to Azure Websites Staging deployment slot fails with webjob

爱⌒轻易说出口 提交于 2019-12-01 07:16:52
I just created a new deployment slot for my app, imported the publishing profile to Visual Studio, but after deployment I get this error message: Error 8: An error occurred while creating the WebJob schedule: No website could be found which matches the WebSiteName [myapp__staging] and WebSiteUrl [ http://myapp-staging.azurewebsites.net] supplied. I have 2 webjobs, a continuous and a scheduled webjob. I already signed in to the correct Azure account, as stated by this answer . Will I need to set something else up in order to deploy my app to a staging Deployment Slot with webjobs? My app is

Polling an Azure Service Bus Queue from an Azure WebJob using Node.js

房东的猫 提交于 2019-12-01 07:12:01
问题 Trying to poll an Azure Service Bus Queue using a WebJob written in Node.js. I created 2 WebJobs. The first is on demand and sends 10 unique messages to the queue. The second job is continuous and polls the queue for messages. Encountering the following issues: The polling is SLOW. It takes an average of about 10 minutes to receive 10 messages. See sample log details below. Basically unusable at this speed. All the delay is from getting a response from receiveQueueMessage . Response times

Programmatically Schedule one-time execution of Azure function

你。 提交于 2019-12-01 06:25:38
I have looked through documentation for WebJobs, Functions and Logic Apps in Azure but I cannot find a way to schedule a one-time execution of a process through code. My users need to be able to schedule notifications to go out at a specific time in the future (usually within a few hours or a day from being scheduled). Everything I am reading on those processes is using CRON expressions which is not designed for one-time executions. I realize that I could schedule the job to run on intervals and check the database to see if the rest of the job needs to run, but I would like to avoid running

Publishing web app to Azure Websites Staging deployment slot fails with webjob

拜拜、爱过 提交于 2019-12-01 05:32:30
问题 I just created a new deployment slot for my app, imported the publishing profile to Visual Studio, but after deployment I get this error message: Error 8: An error occurred while creating the WebJob schedule: No website could be found which matches the WebSiteName [myapp__staging] and WebSiteUrl [http://myapp-staging.azurewebsites.net] supplied. I have 2 webjobs, a continuous and a scheduled webjob. I already signed in to the correct Azure account, as stated by this answer. Will I need to set

Programmatically Schedule one-time execution of Azure function

a 夏天 提交于 2019-12-01 04:14:56
问题 I have looked through documentation for WebJobs, Functions and Logic Apps in Azure but I cannot find a way to schedule a one-time execution of a process through code. My users need to be able to schedule notifications to go out at a specific time in the future (usually within a few hours or a day from being scheduled). Everything I am reading on those processes is using CRON expressions which is not designed for one-time executions. I realize that I could schedule the job to run on intervals

continuous WebJob stops automatically

放肆的年华 提交于 2019-12-01 02:49:10
I have an Webjob associated with the Website that is configured to run continuously and all it does is watches a queue for a message and process it. My website is in a shared mode and hardly has any traffic at the moment so I have set up dummy service that is requesting the home page every 1 min to keep the website from being shut down as part of this testing, and that seams to work as expected and I can notice that website itself is not shutdown. however this webjob keeps shutting down in about an hour unless I go to the Azure Management portal and look for the webjob status. Moment I go