azure-functions-runtime

Azure Functions - Event Hub not triggering Functions

穿精又带淫゛_ 提交于 2019-12-13 03:47:32
问题 I have an Azure infrastructure: 2 HTTP Functions -> Event Hub -> 2 Functions -> Table Storage (so two http functions sending messages to event hub, and two functions triggered by messages in Event Hub, one of them saving message in table storage) The infrastructure is daily automatically created by Azure ARM templates, with the use of Azure CLI. I haven't changed the logic in recent two months but since beginning of April I have noticed the new, weird behaviour. At the end of setting up, E2E

Azure function implemented locally won't work in the cloud

天涯浪子 提交于 2019-12-12 14:23:27
问题 I have the following function, which I define locally and am able to debug it normally. [FunctionName("QueueTrigger")] public static void DUMMYFUNCTION( [QueueTrigger("myqueue", Connection = "AzureWebJobsStorage")]string myQueueItem, TraceWriter log) { log.Info($"C# function processed: {myQueueItem}"); } Locally, "AzureWebJobsStorage" is defined in the local.settings.json file to use the storage account which has "myqueue". In the function settings on Azure "AzureWebJobsStorage" is also set

Azure Functions with runtime 2; binding extensions not automatically created

拈花ヽ惹草 提交于 2019-12-11 13:32:26
问题 When I deploy my Azure Function project to my Function App based on the v2 runtime, the binding extensions my project depend on (Azure Storage in my case), are not automatically created. I deploy my project with an extensions.csproj file on the root, but after deploying I have to manually run the following command to create a bin and obj folder at wwwroot. dotnet build extensions.csproj -o bin --no-incremental --packages D:\home\.nuget If I understand correctly, this should happen

Azure function app native module DLL initialization error

馋奶兔 提交于 2019-12-11 07:23:52
问题 I need to use a native module scrypt in my function app. I have installed the module via the kudu console. (I had to had to install globally and then copy to the local node_modules directory. Installing locally resulted in a strange LINK error) I can run scrypt tests on the local install and they pass. However, when I try to require('scrypt') from within the azure function, I get this error: mscorlib: One or more errors occurred. Error: A dynamic link library (DLL) initialization routine

Azure functions blob trigger - Use same receipts for different host names and new versions of the function

倖福魔咒の 提交于 2019-12-11 06:42:10
问题 I am using azure functions with the blob trigger and with the runtime 2.x. After the function being executed the runtime adds blob receipt into the location below (azure-webjob-hosts>blobreceipt>) Is there any way to make runtime to use the same hostnameid in the path (in this case it's 8a76f42c1c01-2137340777)? Because if run function locally or publish new version of the code it would use different host identifier (like macbook-id). The main problem is when I run func azure functionapp

EventHubTriggerAttribute does not exists in namespace 'Microsoft.Azure.WebJobs'

拈花ヽ惹草 提交于 2019-12-10 17:17:40
问题 Following steps are taken to create Azure Function in Visual Studio Create New Project and choose Azure Function template Select Azure Function V2 (.net code ) and IoT Hub Trigger Code generated but with reference errors. using IoTHubTrigger = Microsoft.Azure.WebJobs.EventHubTriggerAttribute; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Host; using Microsoft.Azure.EventHubs; using System.Text; using System.Net.Http; using Microsoft.Extensions.Logging; namespace

How to Install SharePoint PowerShell Module inside C# for Azure Function App

徘徊边缘 提交于 2019-12-07 22:13:12
问题 Just to manage expectations, I am new to PowerShell and to Azure Functions. Since Azure Functions 2.x no longer supports PowerShell so I am trying to run my PowerShell scripts which requires SPO modules from C# (code below) I am having trouble running the Azure Function App because the PowerShell scripts needed the SPO modules. Anybody who knows how to install the needed modules inside C# PowerShell Instance like Runspace or anything the like? I am even on the right track here? Any comments

No job functions found in Azure Functions project (.NET standard 2.0) local

瘦欲@ 提交于 2019-12-06 10:17:09
问题 I'm trying to create a Azure Functions project in .NET standard 2.0 because I need to use a .NET standard 2.0 class library in this project. However when I try to create a simple Azure Functions project and run it locally, I get the following error: https://imgur.com/iDUrgYB.jpg As I said before my code is very basic but I'll share it anyway. My .csproj file: https://i.imgur.com/z5JiLn4.png My Queue Trigger: https://i.imgur.com/HPzU4P4.png My Program.cs: https://i.imgur.com/9hMujDV.png (I'm

How to Install SharePoint PowerShell Module inside C# for Azure Function App

大兔子大兔子 提交于 2019-12-06 09:22:23
Just to manage expectations, I am new to PowerShell and to Azure Functions. Since Azure Functions 2.x no longer supports PowerShell so I am trying to run my PowerShell scripts which requires SPO modules from C# (code below) I am having trouble running the Azure Function App because the PowerShell scripts needed the SPO modules. Anybody who knows how to install the needed modules inside C# PowerShell Instance like Runspace or anything the like? I am even on the right track here? Any comments is highly appreciated. Thank you all. Sample Code: [FunctionName("TestFunction")] public static async

Is Azure Functions running in Consumption mode appropriate for massively varying, yet time critical Load?

谁说胖子不能爱 提交于 2019-12-05 21:12:15
I’m about to start work on an API that will literally go from 0 RPS to a couple hundred thousand HTTP RPS at the same time and run at that rate for ~2 mins. All processing of those 30 million requests must finish by the end of that 2 min period. This would happen 7 times a WEEK. Going serverless with Azure Functions in Consumption Plan Hosting Mode sounds appealing. This document describes that a scale controller exists to coordinate app instances, but doesn't really discuss what I can expect from it for HTTP triggers. I can’t find any info that says the scale controller will be able to