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

AAD registered Azure Functions + GraphAP Delegated + SharePoint Online?

If my Azure function app and SPO are registered in the same AAD. Can GraphAPI Delegated be used to write to SPO Lists as the calling/current user without additional authentication? If so, do i need auth library code for this like ADAL? Why? Any…
4
votes
1 answer

Azure service bus: Use functions vs service fabric vs web job?

I am considering three ways to to build a service bus topic listener: Azure functions: https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-service-bus Service fabric:…
4
votes
1 answer

Azure Function Authorization

I'm converting a WebApi to an Azure Function app. It authenticates using a SecurityToken in the header. With the api, I put in an attribute to call the authentication logic, but this doesn't work in Azure functions. [ApiAuthentication()] …
Founder
  • 626
  • 6
  • 19
4
votes
2 answers

Cross-Origin Request Blocked Microsoft Azure Function

When trying to call a remote Azure function from my client side, I get this error (URL censored): Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://x.x.com (Reason: CORS header…
Charlie Niekirk
  • 1,015
  • 1
  • 10
  • 15
4
votes
0 answers

.NET Core and Azure Functions - build error System.Runtime 4.2.0.0

I'm creating Azure Functions for .NET Core, following the documentations on Microsoft and Github So the key for using all functionality, and the publish functions from VisualStudio is package microsoft.net.sdk.functions. However, after adding this…
Stefan R.
  • 438
  • 1
  • 5
  • 22
4
votes
3 answers

Azure functions with service bus: How to keep a message in the queue if something goes wrong with its processing?

I'm new to service bus and not able to figure this out. Basically i'm using Azure function app which is hooked onto the service bus queue. Let's say a trigger is fired from the service bus and I receive a message from the queue, and in the…
90abyss
  • 7,037
  • 19
  • 63
  • 94
4
votes
2 answers

VNET Integration for Azure function using Consumption plan

My azure function is running on a Consumption plan and it needs to access a resource running on a VM on a Azure VNET. The resource cannot be exposed via http. Is there a solution other then switching to App Service Plan?
Mayank
  • 908
  • 9
  • 14
4
votes
1 answer

How do I let an executing azure function complete during a shut down?

Active functions are killed when a Function App is restarted which includes restarts, stop/starts, publishing on top, and swapping deployment slots. For a functions that are run frequently, that's a problem. We are sticking with the goal of our…
retsvek
  • 385
  • 4
  • 15
4
votes
3 answers

Can Azure Functions written in Node.js access Connection Strings?

The App Settings for an Azure Function App contain values for database connection strings that can be set in the portal. In C# they can be accessed using ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString For an Azure…
Aidan
  • 4,783
  • 5
  • 34
  • 58
4
votes
0 answers

Azure Functions 2.0 Not Loading Referenced Libraries

I've created a new Azure Function in VS 2017. Ran it, debugged it. Then referenced a library of shared code and modified the code to call into the library. Re-ran the function, upon calling the function it dies loading one of the dependent DLLs.…
Montané Hamilton
  • 547
  • 1
  • 7
  • 17
4
votes
1 answer

Whats the connection in a ServiceBusTrigger?

What is the connection that needs to be defined with my service bus trigger (topic) for my Azure Function? The Run looks like this public static void Run([ServiceBusTrigger("testtopic", "testsubscription", AccessRights.Manage, Connection =…
fUrious
  • 434
  • 5
  • 14
4
votes
2 answers

Where to initialize singleton clients in Azure Functions

I'm creating a new Azure Function that will send email notifications. This function, first needs to get users' email addresses from CosmosDB. I have a CosmosDB client wrapper class. How would I create a singleton instance of my CosmosDB client and…
Sam
  • 26,817
  • 58
  • 206
  • 383
4
votes
2 answers

Azure function connectionstring for Azure SQL trough VNet

I would like to know how to access my Azure SQL database in a secure way from my Azure Function App, meaning not via public Internet. I have an Function App (Function App Plan - standard tier), using VNET/Gateway integration. I have specified a…
Paul0515
  • 23,515
  • 9
  • 32
  • 47
4
votes
3 answers

log4net accessing context properties from custom appender

I am using log4net with a custom appender that logs to Azure Storage Tables, and am having issues accessing log4net.GlobalContext properties from within my Appender. I am logging from inside an Azure Function. The appending is pretty straight…
Cam Bruce
  • 5,632
  • 19
  • 34
4
votes
0 answers

Visual Studio looking in my asp.net publish profiles folder for my azure function pubxml file

I got something messed up in the publishing of my azure function. Visual studio is looking for my azure function's publish profile file in another projects folder (my asp.net site). It doesn't seem like this is the way it's supposed to work,…
chuckd
  • 13,460
  • 29
  • 152
  • 331