Questions tagged [azure-functions]

Azure Functions is an event-driven serverless compute platform in Azure and Azure Stack. Its open-source runtime also works on multiple destinations including Kubernetes, Azure IoT Edge, on-premises, and other clouds.

Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. You can write just the code you need for the problem at hand, without worrying about a whole application or the infrastructure to run it. Functions can make development even more productive, and you can use your development language of choice, such as C#, F#, Node.js, Java, or PHP. Pay only for the time your code runs and trust Azure to scale as needed. Azure Functions lets you develop serverless applications on Microsoft Azure.


###Getting Started

15299 questions
4
votes
1 answer

Calling Azure Function 150 times by HTTP results in exception

I am running an asp.net mvc Web App on Azure. In one method I make several HTTP calls to an Azure Function Web API. Within this Azure Function I use a DbContext for inserting new records into the database. // Method in web application making http…
4
votes
2 answers

Fixing PlatformNotSupportedException when referencing System.Data.SqlClient from C# Azure Function

I am creating an Azure Function in C# using a target framework of netstandard2.0 in a Windows 10 environment. The function calls a method that's in another class library and that method creates an instance of SqlConnection. When I run the function I…
Paul Hunt
  • 3,395
  • 2
  • 24
  • 39
4
votes
0 answers

java.lang.ClassNotFoundException when building Azure JAVA function

I am trying to build a JAVA based Azure function that has a maven jar dependency of json simple 1.1.1 I have added the MAVEN dependency: com.googlecode.json-simple json-simple
mack
  • 345
  • 5
  • 18
4
votes
1 answer

How to add Azure Functions extension

I'm experimenting with extensions in Azure Functions as shown in this question but can't get it to work. My code looks like this: (pre-compiled, consumption plan) public static class FirstFunction { [FunctionName("FirstFunction"),] public…
adrianm
  • 14,468
  • 5
  • 55
  • 102
4
votes
1 answer

Azure function Skype bot output binding

I'm building a bot which should receive message from azure function and display that message to the user. In this page there is the documentation for bindings of all azure services, but the bot output binding isn't documented. I know that the output…
4
votes
1 answer

Unittest project Azure Functions could not load file or assembly 'Newtonsoft.Json'

I created a test project for a Function App as mentioned here. The Http triggered Azure Function I wrote, uses dependency injection (AzureFunctions.AutoFac) and looks like this: [DependencyInjectionConfig(typeof(DependencyConfig))] public static…
Melissa
  • 463
  • 5
  • 18
4
votes
2 answers

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…
4
votes
0 answers

Azure Functions, nuget package installation failed on West Europe region

I'm trying to use NuGet in azure function on West Europe region. I can not install packages. The reason is "The user name or password is incorrect". But North Europe region was succeed. I think this is a problem in the West Europe region. I created…
4
votes
2 answers

How do you test Azure Queue trigger functions locally?

I have created an Azure Functions project and am testing it locally. Below is my code that creates a cloud queue. It then adds id returned from my CarComponent. [FunctionName("CarDiscovery")] public static void Run([TimerTrigger("0 */5 * * *…
RyeGuy
  • 4,213
  • 10
  • 33
  • 57
4
votes
1 answer

Catch all exceptions

Is it possible to catch all Azure Function exceptions in one place, just like IExceptionFilter or Application_Error in global.asax for ASP.NET? Also, is it possible to grab the current HttpRequestMessage to get the context of the exception?
NOP-MOV
  • 792
  • 2
  • 8
  • 28
4
votes
3 answers

Azure Functions develop locally with input and output bindings

Looking at the examples for developing Azure Functions in Visual Studio 2017 and can see that a new function template can be set up with a trigger. So for a queue, the template would be the following: using System; using…
Chris
  • 3,113
  • 5
  • 24
  • 46
4
votes
2 answers

Can I use Visual Studio 2017 to develop Python Azure Functions?

I have added the Azure Functions and Web Jobs Tools Extension to Visual Studio Professional 2017. I have then created an Azure Function project via File >> New Project >> Visual C# >> Azure Functions I could not see a python version of the Azure…
PHC
  • 173
  • 2
  • 11
4
votes
3 answers

Delete document in CosmosDB through azure function

Reading the Azure portal I've understood how to make a POST, PUT and GET operation with CosmosDB through the Azure Functions. But deleting, I don't understand how to do this. Which bindings should I use. Should it occur either through sql query or…
AlfredBauer
  • 105
  • 2
  • 6
4
votes
2 answers

authentication in mobile app with azure functions

I am trying to develop a serverless backend for my xamarin app. and for that I chose azure functions. Now I already know that Azure Mobile Apps provide an SDK for this purpose with which we can easily enable Authentication with multiple ways which…
Muhammad Touseef
  • 4,357
  • 4
  • 31
  • 75
4
votes
1 answer

What’s the best way to signal a failure in an Azure Function?

When writing an Azure Function in compiled C#/F#, what's the cleanest way to signal to the Function runtime that the function failed? I know that throwing an exception will result in a failure, but I'd prefer to handle those internally. I've also…
John Hoerr
  • 7,955
  • 2
  • 30
  • 40