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
3
votes
2 answers

'WorkerOptions' does not contain a definition for 'AddApplicationInsights' in isolated Azure function program.cs file

I'm getting this dependency error below and I'm not sure why? I manually added "Microsoft.Extensions.DependencyInjection" package to try and fix the dependency error and have it referenced in my .csproj file. and I have the using statement at the…
chuckd
  • 13,460
  • 29
  • 152
  • 331
3
votes
2 answers

RestSharp: Could not load file or assembly 'System.Text.Json, Version=7.0.0.0

I have a C# (Azure function app) project in Visual Studio. .Net 6.0 I updated RestSharp to version 110.2.0, and now I get this error: [2023-04-29T21:34:10.399Z] Executed 'RequestItemsPage' (Failed, Id=8eefbb7c-3bc0-44db-81e4-14c56096fc81,…
BenW
  • 737
  • 10
  • 41
3
votes
2 answers

Azure function app (v4 / node.js) no functions found after zip deployment

I have deployed a function app and there are no functions visible: In Kodu what I can see seems correct (the files are under wwwroot): In the app files tab. I can see two folder separators that I'm guessing this could be the problem: I have…
Remo H. Jansen
  • 23,172
  • 11
  • 70
  • 93
3
votes
1 answer

How to change the Node JS Version in Azure Functions local project

Created the Azure Functions Node JS Version 19 which is not yet supported for the Azure Functions as I come to know from this Microsoft Documentation. I know we can change the Node Version in Azure Function App Configuration. But this is after…
anon
3
votes
1 answer

Why is OkObjectResult ignoring JsonIgnore?

I'm returning an object from my Azure function using OkObjectResult, but the object's JSON still contains properties I've marked JsonIgnore. Why is that, and how can I fix it? Details: I have this class: using System.Text.Json.Serialization; //…
T.J. Crowder
  • 1,031,962
  • 187
  • 1,923
  • 1,875
3
votes
2 answers

How can I get Azure Functions keys from Bicep

I have the following code to create an Azure Function App with Bicep lang resource webSite 'Microsoft.Web/sites@2022-03-01' = { name: 'xxxxxx' location: resourceGroup().location kind: 'functionapp' properties: { serverFarmId: 'zzzzzz' …
Sergio
  • 175
  • 5
  • 21
3
votes
1 answer

Is there a way I can call a method from a class that is injected through dependency injection, right after the startup in azure function?

I have an azure function whose startup looks like this internal class Startup : FunctionsStartup { public override void ConfigureAppConfiguration(IFunctionsConfigurationBuilder builder) { } public override void…
3
votes
3 answers

Running Azure Functions locally shows 1 function found but 0 loaded and it doesn't work

I have an Azure Http Trigger function, which builds successfully and runs without errors, but it's not loading the function or functions. The current run output gives out the following in verbose mode: While testing the endpoint, using Postman, it…
Malenko
  • 545
  • 3
  • 15
3
votes
1 answer

How does python version affect Azure Functions?

I'm developing Azure Functions using Python 3.10.10 on my machine, deploying the Function through Azure DevOps which is building the artifact using Python 3.6.8, and the Python Version shown for the Function App host is 3.8. There was a recent…
ericOnline
  • 1,586
  • 1
  • 19
  • 54
3
votes
1 answer

How to recreate or refresh an access token for database connections in Azure functions?

I am trying to use an Entity Framework database context for use with managed identity credentials in an Azure function. I have been able to establish a database connection. The issue is that I am not able to keep the database connection established…
3
votes
1 answer

Azure graphql function api with Cosmos DB returns Invalid URL

I have created a serverless GraphQL API function with Azure functions and have connected it to Cosmos DB. I have been trying to fix the issue that says Invalid URL(snip below) for a week now, but so far I have no clue on whats going on. When I run…
Sumchans
  • 3,088
  • 6
  • 32
  • 59
3
votes
1 answer

Azure Event grid delivery through private endpoint not possible - what are the alternatives?

We have an architecture in Azure sealed within a Vnet with private endpoints on all our services. We mostly work with transactional data, so quite moderate amounts of data throughput. Now, our initial plan was to communicate between Azure functions…
3
votes
0 answers

Azure Function v4 Triggered by Service Bus Sitting Idle

I have an Azure function running on a consumption service plan (Y1:0) on a Windows OS that is triggered by an Azure Service Bus queue item. However, the Azure function idles for extended periods of time and will not pull in queue items from the…
TCR
  • 45
  • 1
  • 4
3
votes
1 answer

Azure functions isolated NET 7 Unable to Add-Migration of Entity Framework Core

I'm trying to connect Azure Functions (Isolated) with EF Core 7.0.1 using NET 7. Add-Migration throw an error: Unable to create an object of type 'MyDbContext'. Error descriptions All necessary packages already installed. Here is my project: Folder…
3
votes
1 answer

How i can create and edit Function App using NET 7 in Visual Studio 2022 version 17.4

I'm already deployed Function App on Azure portal. But i can't create and edit an Azure Functions with NET 7 in Visual studio 2022 v17.4 (supported NET 7). How i can create and edit Function App using NET 7 in Visual studio? Thanks all!