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

Not able to Debug Azure Timer Function in Visual Studio 2017

When I debug the Timer Function, I get the message (forever) and cannot continue debugging... "The host is taking longer than expected to start"
naag
  • 401
  • 1
  • 4
  • 4
4
votes
2 answers

Azure Function Structure

I'm trying to wrap my head around how we're supposed to build Azure functions. I love the idea of building serverless, compact, single-function apps that respond to events. Here are the problems I'm running into: I have nice class libraries built…
Sam
  • 26,817
  • 58
  • 206
  • 383
4
votes
1 answer

Using Cosmos DB table API from Azure function

I'm trying to use Cosmos DB table API from an Azure function. Using the local.settings.json file I'm able to read the connection string and parse it successfully as I'm used to: local.settings.json: { "IsEncrypted": false, "Values": { …
Kim Lindqvist
  • 363
  • 4
  • 15
4
votes
2 answers

Azure Function App Programmatically Change Schedule

I have a number of function apps that run based on "Timer Triggers" At the moment they are running every 5 minutes. public static async Task Run([TimerTrigger("0 */5 * * * *")]TimerInfo myTimer, TraceWriter log) I want to be able to read the…
Trevor Daniel
  • 3,785
  • 12
  • 53
  • 89
4
votes
1 answer

Invoking SignalR from Azure Function

I'm trying to set up SignalR with my Azure system. The setup is fairly standard Main web portal in Azure App Service written in ASP.NET MVC A cloud service worker role that performs business logic. The worker role listens on a queue that the portal…
Ishyc
  • 318
  • 3
  • 13
4
votes
1 answer

Validating Azure Functions CRUD operations

I have just started to look at Azure Functions and one of my biggest concerns currently is validation. I have only really looked at the CRUD operations so far, but there doesn't look like a way to easily validate data coming from the request or into…
Andrew Davis
  • 460
  • 3
  • 17
4
votes
1 answer

Can't build Azure Functions project from dotnet CLI

I'm having some troubles with a newly created Azure Functions project (the new precompiled version). It's a TimerTrigger function which I created from template in VS2017. It builds just fine from within Visual Studio, but when I try to build it…
Marcus W
  • 589
  • 6
  • 11
4
votes
2 answers

HTTP trigger azure function won't bind route parameter with encoded slashes

I've created an Azure C# HTTP triggered function with a route url: subscriptions/{token}/t. It works fine for urls such as subscriptions/blah/t but it fails with a 404 for parameters that contain encoded slashes: subscriptions/blah%2fblah/t. Any way…
marius-O
  • 395
  • 3
  • 15
4
votes
2 answers

Build Error with pre-compiled Azure Function Library

Recently, I converted an Azure Function that used a C# script (*.csx) to a pre-complied class library using the Visual Studio Studio Tools for Azure Functions. It builds successfully in Visual Studio 2017 (as well as running and debugging too). I'd…
Ray
  • 187,153
  • 97
  • 222
  • 204
4
votes
1 answer

Azure Function blob binding

I'm not able to bind an input parameter of type blob to either string/TextReader without using the [BlobAttribute] in a C# implementation (not CSX). The error I'm getting is: Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.Harvester'.…
marius-O
  • 395
  • 3
  • 15
4
votes
1 answer

How to use an Azure Function Binding to send a scheduled Service Bus Queue message?

I have an Azure Function written in node.js that is successfully sending a message to an Azure Service Bus Queue using an output binding. How can I send a scheduled message into the same Queue still using the binding syntax? I'd rather do this…
4
votes
3 answers

how to use structured logging in Azure Functions

I am using the relatively new ILogger (vs. TraceWriter) option in Azure functions and trying to understand how logs are captured. Here's my function: public static async Task Run([HttpTrigger(AuthorizationLevel.Anonymous,…
Jim O'Neil
  • 23,344
  • 7
  • 42
  • 67
4
votes
1 answer

In Azure Functions, using a Bash script, is it possible to access properties from the queue message trigger?

Using Azure Functions, I'd like use the properties from a dequeued message as arguments in my Bash script. Is this possible? And if so, how? It seems documentation on Bash azure functions is a bit sparse. I have looked at: This documentation on…
Earl
  • 43
  • 1
  • 3
4
votes
2 answers

Issue with returning JArray from Azure Functions HttpTrigger

I'm trying to return JArray object from Azure Function of HttpTrigger type: JArray a = JArray.Parse("[{\"reportId\": \"1111\",\"reportName\": \"AAAA\"}]"); return req.CreateResponse(HttpStatusCode.OK, a); However, for some reason, the response body…
Boris Lipschitz
  • 9,236
  • 5
  • 53
  • 63
4
votes
1 answer

Send SqlQuery in Azure Function's DocumentDB Attribute

I have an Azure Function that uses the DocumentDB attribute to connect to Cosmos DB. I'm using the Azure Functions for Visual Studio 2017 tooling. Here is the simple Function [FunctionName("DocumentDbGet")] public static HttpResponseMessage…