azure-functions-runtime

Debugging two Azure Functions projects locally

拥有回忆 提交于 2020-01-14 18:46:39
问题 I have two Azure Functions projects. I have one project, A, running on localhost:7071/api/.... I have changed the other project, B, to run on localhost:8888/api/... I am calling a function which is running on project A from a function in Project B! How can I debug two Azure Functions projects locally? I cannot find any docs to help me. 回答1: To fix the issue add the command line switch --nodeDebugPort 5859 to your launching of func host to set the port for one of the sessions. If you are

Debugging two Azure Functions projects locally

爱⌒轻易说出口 提交于 2020-01-14 18:45:33
问题 I have two Azure Functions projects. I have one project, A, running on localhost:7071/api/.... I have changed the other project, B, to run on localhost:8888/api/... I am calling a function which is running on project A from a function in Project B! How can I debug two Azure Functions projects locally? I cannot find any docs to help me. 回答1: To fix the issue add the command line switch --nodeDebugPort 5859 to your launching of func host to set the port for one of the sessions. If you are

Azure Function gives error: System.Drawing is not supported on this platform

自古美人都是妖i 提交于 2020-01-09 03:49:26
问题 (If this question is poorly worded, could someone please help me clear it up?) I have an Azure Function (2.0) which relies on some System.Drawing code. I've added a NuGet reference to System.Drawing.Common (4.5.0). After publishing the app, however, when the function is called, it produces the error: System.Private.CoreLib: Exception while executing function: [MyFunctionName]. System.Drawing.Common: System.Drawing is not supported on this platform. As far as I'm aware, System.Drawing.Common

Azure Functions: Application freezes - “UnableToLoadExpressionAssembly” in error message

五迷三道 提交于 2019-12-24 01:19:22
问题 I have an Azure Functions application which once in a while "freezes" and stops processing messages and timed events. When this happens I do not see much in the logs (AppInsight), except for the following error message telling me "UnableToLoadExpressionAssembly": timestamp [UTC]: 2018-02-13T09:18:19.609Z message: UnableToLoadExpressionAssembly severityLevel: 3 customDimensions: LogLevel: Error prop__{OriginalFormat}: UnableToLoadExpressionAssembly Category: Host.Startup client_Type: PC client

Http Trigger Azure Function in Docker with non anonymous authLevel

▼魔方 西西 提交于 2019-12-23 18:34:20
问题 I am playing around with an Http Triggered Azure Functions in a Docker container. Up to now all tutorials and guides I found on setting this up configure the Azure Function with the authLevel" set to anonymous . After reading this blog carefully it seems possible (although tricky) to also configure other authentication levels. Unfortunately the promised follow up blogpost has not (yet) been written. Can anyone help me clarify on how I would go about and set this up? 回答1: To control the master

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

纵饮孤独 提交于 2019-12-22 10:39:23
问题 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

“The function runtime is unable to start”

流过昼夜 提交于 2019-12-22 10:18:24
问题 I know it probably has something to do with a misconfiguration, but unfortunately the most info I get is The function runtime is unable to start. Session Id: b939c608ae424150878a55eeac6e7d36 Timestamp: 2018-10-04T18:05:22.023Z My function looks like [FunctionName("DoJob")] public static async Task DoJobAsync([ServiceBusTrigger("job-queue", Connection = "MyServiceBusConnection")] string json, ILogger log) { … } and my my local.settings.json is like { "IsEncrypted": false, "Values": {

Azure Function fails to bind ILogger

醉酒当歌 提交于 2019-12-21 06:51:33
问题 My function is referencing an assembly that references Microsoft.Extensions.Logging.Abstractions 2.0.0. If I add a nuget reference to that version to the function's assembly, function execution fails with: [1/25/2018 11:14:46 PM] Microsoft.Azure.WebJobs.Host: Error indexing method 'TrainingFunction.Run'. Microsoft.Azure.WebJobs.Host: Cannot bind parameter 'log' to type ILogger. Make sure the parameter Type is supported by the binding. If you're using binding extensions (e.g. ServiceBus,

Azure Functions binding redirect

☆樱花仙子☆ 提交于 2019-12-17 09:34:00
问题 Is it possible to include a web.config or app.config file in the azure functions folder structure to allow assembly binding redirects? 回答1: Assuming you are using the latest (June'17) Visual Studio 2017 Function Tooling, I derived a somewhat-reasonable config-based solution for this following a snippet of code posted by npiasecki over on Issue #992. It would be ideal if this were managed through the framework, but at least being configuration-driven you have a bit more change isolation. I

Azure Functions binding redirect

懵懂的女人 提交于 2019-12-17 09:33:03
问题 Is it possible to include a web.config or app.config file in the azure functions folder structure to allow assembly binding redirects? 回答1: Assuming you are using the latest (June'17) Visual Studio 2017 Function Tooling, I derived a somewhat-reasonable config-based solution for this following a snippet of code posted by npiasecki over on Issue #992. It would be ideal if this were managed through the framework, but at least being configuration-driven you have a bit more change isolation. I