Questions tagged [azure-functions-runtime]

1

votes
1

answer
951

Views

How to create a Azure Function, Function Key when your functions are set to Readonly

Summary: I'm authoring a function directly in Visual Studio which by design results in readonly function management in the portal. My question is how does one easily create a function key for said webhook? Context: I'm trying to hook up a generic webhook to Event Grid. This process has led me down...
ThatCreole
1

votes
2

answer
281

Views

Does azure functions share context between the running instances?

I'm working on one project based on the Azure Functions, and I have one static helper class with buffer (private static ConcurrentDictionary) which holds some list of items to be processed at the end of execution, the question does this buffer will be shared between the multiple running instances?
1

votes
1

answer
94

Views

Azure Function - Report a faliure

I developed an azure function and deployed it in my subscription. Initially I had hard time setting up correct connection string and that lead Azure Function to fail functionally. But Azure reported it to be successful because the exception generated by code was handled. How do you report a failure...
Hiren Desai
1

votes
1

answer
404

Views

Azure Function - SqlConnection connection pool & timeouts

Note - I have read the other topics on S.O about this but not quite the same... .net 461 function, c# I have an app-service-environment with an app service plan dedicated to this single azure function, using 2x P2 workers. The function itself responds to a service bus topic event, at a rate of about...
watdo
1

votes
1

answer
657

Views

Azure function: Could not load file or assembly Microsoft.IdentityModel.Tokens, Version=5.2.1.0

Im writing an azure function to generate a JWT token and return it to the client. The code is tested locally in a console app and all seems to work fine. This is the package reference included in the working console app, and in my functions app: When running the function host locally with func host...
Craigt
1

votes
2

answer
617

Views

Azure function published but not running, “no data available”

I can publish a Azure function from Visual Studio without an error. This funtion is set to run every 4 seconds ('*/4 * * * * *') but it is not running at all. Even if I try to run it manually it do not run and show the following error: Status: 404 Not FoundThe resource you are looking for has been r...
user576510
1

votes
2

answer
250

Views

Trigger multiple concurrent service bus trigger azure functions without time degradation

I have a service bus trigger function that when receiving a message from the queue will do a simple db call, and then send out emails/sms. Can I run > 1000 calls in my service bus queue to trigger a function to run simultaneously without the run time being affected? My concern is that I queue up 10...
user1186050
1

votes
2

answer
178

Views

Function gets stuck with runtime v2 and service bus topic trigger

I've created a function with runtime v2. The function gets stuck periodically due to out of data in the service bus topic. The function remains down and doesn't work. One way to restore the function back to work is to enter the portal, and look at the streaming log. It will cold start the function,...
Dor Zion
1

votes
0

answer
41

Views

Monitoring Azure Functions Container Instances and fetching meta data

I'm trying to monitor Azure Functions instances. Is there an event invoked when Azure Functions creates/destroys a new instance due to load? I would like Azure to notify me upon creation or destruction of Function instances. Where can I see container instances list and their meta data (instance id,...
NOP-MOV
1

votes
0

answer
142

Views

Adding connection settings during runtime for Azure Function App

I'm searching for ways to modify and edit app settings for Azure function during runtime. from the links below, I was able to find how to add bindings locally and add connection settings through azure portal or Azure Cli https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local#loca...
user2662520
1

votes
1

answer
200

Views

How to access API (authenticated with Azure Ad B2C token) from a Azure function?

I have an API which is set up with 'Azure AD B2C' authentication. I want to access my API from an Azure function. However, Azure Ad B2C has few limitations. I think I cannot get 'Azure AD B2C' token without user interaction. My Azure function is running in a scheduled mode and will not have any user...
1

votes
1

answer
42

Views

How Often Is The Azure Functions Beta Host Updated on the Azure Portal

I'm using the Azure Functions v2 in a project that I've started recently and I'm trying to use a proxy to redirect a request to /.well-known to one of my functions. Proxies do not work on Azure Functions v2 (as stated here). They have now been fixed in release v2.0.11737-alpha but the Azure Portal i...
bacon1986
1

votes
2

answer
1.2k

Views

How can I resolve this NewtonSoft version conflict?

I'm working on an Azure function. I'm using Microsoft.Azure.Devices.Shared, which requires NewtonSoft v11, so I've implemented some manual binding redirects with the app domain which seems to be working (see below). But somehow, there is a hard reference to the WebJob app domain that NewtonSoft is c...
1

votes
0

answer
125

Views

Azure function javax.xml.bind.JAXBException

I'm trying to run this sample function following the instruction provided by Microsoft. I'm currently running java version 10.0.1 and I get the javax.xml.bind.jaxbexception. I know that it references a github article that is supposed to provide me with a workaround but I'm still getting the same err...
Jim
1

votes
1

answer
424

Views

Azure Function - HTTP Trigger and Response - Python

Im working off of the Azure Function HTTP Python Template that has this code: import os import json postreqdata = json.loads(open(os.environ['req']).read()) response = open(os.environ['res'], 'w') response.write('hello world from '+postreqdata['name']) response.close() This all works great. But when...
1

votes
1

answer
101

Views

How do I keep Azure Functions v2 runtime running in a container after an assembly reference change?

Following Azure Functions runtime v2 container definitions available on Docker Hub and GitHub I start the runtime with CMD ['dotnet', 'C:\\runtime\\Microsoft.Azure.WebJobs.Script.WebHost.dll'] When accessing certain functions log shows 'Assembly reference changes detected' and stops the host... > do...
Kai Walter
1

votes
1

answer
241

Views

Providing UserProperties when testing locally on Azure Functions with Service Bus Triggers

When developing Azure Functions locally with a Service Bus binding, it is possible to send a request to test the function using an HTTP request to http://localhost:{port}/admin/functions/{function_name} (see Non HTTP triggered functions at https://docs.microsoft.com/en-us/azure/azure-functions/funct...
1

votes
1

answer
99

Views

Azure functions with Javascript runtime slow to read httptrigger requests

I am sending data (4MB) as gipped request to azure functions with javascript runtime and HttpTrigger. In the function, I decompress the data and process it. It takes 6-7 Seconds to run the code in function but the round trip of request takes almost 60 Seconds. I understand that it takes some time to...
ygnr
1

votes
1

answer
204

Views

System.Data.SqlClient 4.6.0 in Azure Functions

I'm currently using System.Data.SqlClient 4.5.1 in my Azure Functions but I would like to use 4.6.0, as it supports Access Tokens. The last two preview releases also supported Access Tokens, I believe. The feature was committed to the .NET Core repository back in June. I'm not sure what the differen...
James S.
1

votes
0

answer
62

Views

How to return value from azure async function v2?

I am writing javascript first time. within the azure function app I have one async function to insert data using query see function code as below async function insertData(query) { var connection = new Connection(config); var result = 'Connecting' await connection.on('connect', function (err) { if...
Jignesh Ansodariya
1

votes
0

answer
53

Views

Calling WCF endpoint from Azure Function

I have a v2 Azure function written in dotnet core. I want to call in to a legacy WCF endpoint like this: basicHttpBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Basic; var factory = new ChannelFactory(basicHttpBinding, null); factory.Credentials.UserName.UserName = 'foo';...
Aidan
1

votes
0

answer
54

Views

The graph token has no scopes, while trying to get Azure functions working with Excel output

I'm trying to get Azure Functions working with IoT Hub messages, and on message adding a row to an Excel file. I tried with setting Excel integration as output, which wasn't working, so I changed and tried with Excel input. When I try this, I get the following failure in the console. The graph token...
nisargjhaveri
1

votes
1

answer
1.3k

Views

How to publish azure function from vs code?

https://marketplace.visualstudio.com/items?itemName=bradygaster.azuretoolsforvscode I have installed azure-tools-vscode, but don't know exactly how to use it for publishing the azure function: some steps I have tried as : Windows PowerShell Copyright (C) 2015 Microsoft Corporation. All rights reserv...
1

votes
2

answer
246

Views

Changing CloudQueueMessage type leads to Exception binding parameter 'myQueueItem'. mscorlib: String reference not set to an instance of a String

When creating a new QueueTrigger Azure function, I'd like to switch the string input to a CloudQueueMessage. I have changed the signature to: public async static Task Run([QueueTrigger('%queue-name%', Connection = 'AzureStorageConnection')]CloudQueueMessage myQueueItem, TraceWriter log) I get the er...
aarondcoleman
1

votes
1

answer
416

Views

Azure Functions Not Working VS2017

I've downloaded VS2017 Community Edition to try out Azure functions and I can't get it to work. I've searched many post on Stackoverflow and Azure functions Github pages but nowhere there seems to be a complete documentation about anything. Here's what I have: Azure function: namespace FunctionApp1...
CloudDev
1

votes
1

answer
766

Views

Getting error 'Function host is not running' when trying to access my Azure functions

This happened all of a sudden to one azure functions service I have running, I tried rebuilding the functions locally and deploying them and restarting/stopping starting the service but it didn't work, creating a new azure functions app and deploying to it works though so I don't think it has to do...
tweetypi
1

votes
1

answer
216

Views

CLI v2.0.1-beta.28 proxies.json issue

I add to my project proxies.json file however after that runtime is unable to start with exception. Any ideas? I already look thru GitHub issues without any luck. At the and I add gist with *.csproj and proxies.json file for reproduction. Thanks a lot [02/06/2018 17:10:57] Initializing Azure Functio...
maciejgos
1

votes
1

answer
245

Views

Azure Functions - Referencing the same library as the CLI

I'm working on a precompiled C# Azure Function, and I want to reference a lot of the Microsoft.Extensions dlls. The current version is 2.1.1 for most of these. However, when I run the project, I get an assembly load error. This seems to be caused by the folder the func.exe file is in comes with most...
mccow002
1

votes
1

answer
165

Views

Parametrize runOnStartup in function.json

I have a Azure function with a timer trigger. I want the function to execute immediately, when I start the project locally for debugging purposes. This can be done by setting the runOnStartup property. I cannot keep it in production, because it causes the trigger to fire twice every time it is sched...
1

votes
1

answer
52

Views

How do I Add Azure Functions at Run Time

I have a class library with methods that I want to map and execute as Azure Functions. How those methods should get mapped up (e.g. as timer, http trigger, what http verb or route to use, etc.) for our use case is not known at design/compile time, but at run time. This is at odds with the prescrib...
Jim Noble
1

votes
1

answer
218

Views

Manage SQL connections in Azure Functions

I have an azure function where I am getting failure rate like below. Host thresholds exceeded: [Connections]. For more information, see https://aka.ms/functions-thresholds. On my initial finding I found below link https://aka.ms/functions-thresholds As per above link I found problem is because of Nu...
JARVIS
1

votes
1

answer
0

Views

How to add reference to all DLLs in folder in Blob Triggered Azure Function V 1.x?

I have created Blob Triggered Azure Function. I have added some DLLs in a folder named 'ExternalAssemblies'. If I have 3 DLLs in that folder I have to reference them with following lines at the top of my function: #r '..\ExternalAssemblies\Assembly1.dll' #r '..\ExternalAssemblies\Assembly2.dll' #r '...
Yash
1

votes
1

answer
0

Views

Error while running Spring Cloud Functions sample for Azure functions

I am experimenting with Spring Cloud Functions on top of Azure Functions, and while I was trying to run a sample project for azure functions I came across the following error. Executed 'Functions.uppercase' (Failed, Id=4fd6ef4c-209c-45cb-bf65-ce38e90b6620) System.Private.CoreLib: Exception while...
Tharanga Hewavithana
1

votes
1

answer
0

Views

How to organize multiple Http Functions under same Function App

I am trying to host multiple HttpTrigger functions under one FunctionApp. So under Functions I can have multiple HttpTrigger functions exist. I am using FTP to connect to my server. Below is files take are generated when I use publish option in VS 2017 and below is list of files that should be push...
dotnetavalanche
1

votes
2

answer
434

Views

How do I reuse QueueClient instances to send response messages from Azure Function?

The best practices article from Azure docs recommends reusing QueueClient to send multiple messages to obtain faster performance. https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-performance-improvements#reusing-factories-and-clients I have a scenario of request-response mess...
Amit Kumar
1

votes
1

answer
324

Views

Azure Function - 'AzureWebJobsServiceBusConnectionString' is missing

Use Case: I've an Azure Function that will be triggered by 'serviceBusTrigger'. Following best practices, I've the Azure service bus connection string in 'appsettings.json' and likewise in app-settings on the Azure function app. All is well! Now, I want to run the function locally and I am using c...
Shahzad huq
1

votes
1

answer
109

Views

Azure function app native module DLL initialization error

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 p...
Teomat
1

votes
2

answer
340

Views

How to run Azure Function without a binding

Is it possible for an Azure Function to run without a binding (timer, topic, queue, HTTP) etc? My Azure Function is a process that I want to run continuously in a loop without it completing, unless the Azure Function is stopped through the U.I. I could have the Azure Function run off a timer trigger...
Richard Butterwood
1

votes
3

answer
688

Views

Cannot create an abstract class?

I'm trying to run firebase functions locally but I get the error: Exception while executing function: Functions.TestMe. Microsoft.Azure.WebJobs.Host: One or more errors occurred. Exception binding parameter 'req'. mscorlib: Cannot create an abstract class. I have an azure cloud function project in V...
tweetypi
1

votes
1

answer
266

Views

running Azure Function in VS and error on reading Application settings

I have a function which read 'Application settings' which are manly keys. It works fine in Azure but when I run it locally from VS it through an error: [27/02/2018 5:39:14 AM] A ScriptHost error has occurred [27/02/2018 5:39:14 AM] Exception while executing function: GetFile. OOPInteg: Object refere...
user576510

View additional questions