azure-webjobs

Dynamically enable/ disable a triggered function in Azure WebJob

我的梦境 提交于 2020-08-04 07:16:45
问题 We have an azure web job that has two methods in the Functions.cs file. Both jobs are triggered off different Topics in Azure Service Bus. As this uses reflection at run time to determine the functions that are to be run/triggered by messages hitting the topics, there are no references to these methods in code. public static async Task DoWork([ServiceBusTrigger("topic-one", "%environmentVar%")] BrokeredMessage brokeredMessage, TextWriter log) {} public static async Task DoOtherWork(

How to create a app background job for multi-tenancy Azure App

假装没事ソ 提交于 2020-06-28 06:35:41
问题 I would like to create a background task for my Azure Saas application. The task is to look at the date field of an Azure SQL database table and take action based on the the result. The task should run once a day against all SaaS tenants. I have multi-tenancy with ShardMapManager with a separate Azure SQL database per tenant. I cannot find any information on how to set up WebJobs or Web functions to cycle through each of the tenant databases automatically. Would Elastic Job be involved which

Azure Webjob ERROR: An assembly specified in the application dependencies manifest (appname.deps.json) was not found

一世执手 提交于 2020-06-17 09:34:05
问题 I published a webjob on Azure -> Visual Studio 2019 - Adding WebJob project in WebApp but now it shows this error: The webJob is developed in netcore 2.2 来源: https://stackoverflow.com/questions/61923589/azure-webjob-error-an-assembly-specified-in-the-application-dependencies-manife

Azure webjob using .NET core 3.1

三世轮回 提交于 2020-05-17 06:05:33
问题 I am writing a azure webjob using .net core 3.1 and I am getting the following runtime exception: InvalidOperationException: %EventHubName% does not resolve to a value. where my trigger looks like: ProcessEvent([EventHubTrigger("%EventHubName%", ConsumerGroup = "%ConsumerGroupName%")] EventData eventData) I have registered the configuration in program.cs I have added appSettings.environment.json file which contains something like: "EventHubConfig": { "EventHubConnectionString": "..",