188 questions
0
votes
0
answers
58
views
Why are Application Insights logs missing intermittently in .NET isolated Azure Functions despite disabling sampling in host.json?
Problem Statement
We are using .NET isolated Azure Functions and noticed that Application Insights logs intermittently go missing, even though we explicitly disabled sampling in the host.json ...
0
votes
0
answers
99
views
Grpc.Core.RpcException: Error starting gRPC call in Azure Functions isolated worker after upgrading to Visual Studio 2022 17.14.x
I’m running into an issue when launching an Azure Functions isolated worker (v4.2.2) project in Visual Studio 2022 (tested with 17.14.12 and 17.14.16).
As soon as the function host starts, I get the ...
0
votes
0
answers
78
views
How to get Information log messages to appear in Azure Application Insights from Azure Function?
I have an Azure Function (timer triggered) that doesn't seem to be writing information log messages into Application Insights. When I use LogError/Warning/Critical it works, but LogInformation does ...
0
votes
0
answers
106
views
Not able to bind the data in a servicebus triggered function, .NET 8 isolated model
I have a servicebus triggered Azure function in .NET 8 with multiple parameters. Data is not binding automatically.
[Function("name")]
public void functionName([ServiceBusTrigger("topic&...
1
vote
1
answer
213
views
MCP Extension for Azure Function not accepted in host.json
I'm following the official Microsoft articleModel Context Protocol bindings for Azure Functions overview to make MCP-callable a function of my Azure function app, which works well through input and ...
0
votes
1
answer
74
views
Service Bus Concurrency Setup in Function app isolated model
I'm migrating my in process functions to isolated.
While migrating I'm having this difficulty:
It seems like ServiceBus's maxConcurrentCalls can only be set using host.json file.
{
"version&...
1
vote
1
answer
150
views
Disabling Dependency Tracking - Azure Functions (Isolated, v4) - .NET 9
I'm struggling to disable dependency tracking in a project that uses Azure Functions (v4) using .NET 9 as an Isolated Process. I want to do this as these entries are clogging up our log files with ...
0
votes
2
answers
103
views
Azure Function Request body is NullStream
I have an Azure V4 Isolated function that has been running ok. Recently it started throwing an exception with the request body being null (NullStream).
[Function("SomeFunc")]
public Task<...
0
votes
1
answer
177
views
Durable Task RaiseEventAsync not triggering orchestration after upgrading from .NET 6 to .NET 8 (Isolated)
We recently upgraded our Azure Functions project from .NET 6 to .NET 8 using the isolated worker model. After the upgrade, durable orchestrations that were originally created in .NET 6 are no longer ...
2
votes
1
answer
848
views
Configure Swagger in Azure Functions (.NET 8)
We have a set of APIs built using Azure Functions (.NET 8 & Isolated). I am trying to configure Swagger for the same. I tried using Microsoft.Azure.Functions.Worker.Extensions.OpenApi, but
builder....
0
votes
1
answer
191
views
Failed to sync triggers for function app 'funcsintest03'. Error: BadRequest - Encountered an error (BadGateway) from host runtime. (CODE: 400)
I have an Linux Azure function with runtimeStack as 'DOTNET-ISOLATED|9.0'. I am using consumption plane and AzureFunctionApp@2 Azure DevOps pipeline task to deploy my code from Azure DevOps.
- ...
1
vote
0
answers
147
views
Issue Running .NET 8 Isolated Azure Function with gRPC Locally
I'm currently working with a .NET 8 Azure Function using the isolated process model and encountered the following issue when running the function locally: I have no idea what am I missing and how to ...
0
votes
0
answers
42
views
Access FunctionContext.Items inside GraphQL resolver with HotChocolate.AzureFunctions.IsolatedProcess?
How to access FunctionContext.Items inside GraphQL resolver with HotChocolate.AzureFunctions.IsolatedProcess?
Environment: .NET 8.0
Azure Functions Isolated Worker
HotChocolate.AzureFunctions....
2
votes
1
answer
243
views
How can I have my Isolated Azure Function log at trace level to the console?
We are migrating our Functions from .NET 6.0 In-process to .NET 8.0 Isolated. In the old situation, when running locally, using ILogger.LogTrace outputs that to the console, provided you set the log ...
0
votes
1
answer
51
views
Failed to retrieve appconfiguration in Azure Functions
Can we retrieve the app configuration from Azure Functions in the dev or prod environment? It works locally, but not in the dev environment.
I'm trying to fetch connections from Azure App ...
2
votes
2
answers
145
views
Type or namespace Azure does not exist in the namespace 'Microsoft'
I am new to C# development. I tried to create a new Azure function app by following online tutorial.
As soon as I created I am getting attached error. I tried the same in Visual Studio Code and Visual ...
0
votes
1
answer
315
views
Visual Studio is having trouble creating a new Azure Function. Instead of the Azure Function icon, it's showing the C# icon
I'm trying to create a new Azure Function in Visual Studio, but I'm encountering an issue. When I attempt to create the function, instead of the Azure Function icon, it displays the C# icon. This is ...
2
votes
1
answer
370
views
Azure C# Function - Handling 499 Errors
I have an Azure C# Http triggered function which is an API call that returns a Json payload. The function is run in an Isolated Worker Model and contains several separate async tasks that run ...
0
votes
1
answer
331
views
ADO pipeline breaks because of grpc dll not compiled with control flow guard
I am working on a Azure Durable Function in Isolated Worker Model and using durable task extension "Microsoft.Azure.Functions.Worker.Extensions.DurableTask" for the same. This package ...
0
votes
0
answers
213
views
Upgrading Dotnet-Isolated Azure Function from .NET 6.0 to .NET 8.0 causing problems
I've been trying to update my .NET Isolated Azure Function from .NET 6.0 to .NET 8.0.
My project is using the following packages
<PackageReference Include="Microsoft.Azure.Functions.Worker&...
0
votes
1
answer
144
views
Azure Function Isolated Model dependency library sharing between worker and host process
Regarding Azure Functions Isolated model.
Help me with below question
Often saw in Microsoft docs that says, In-Process model shares the dependency libraries between Host & Function worker process....
0
votes
1
answer
563
views
Azure Isolated Function | Host and worker process initialization and execution flow
I'm bit unclarified with Azure Functions Isolated model.
Below are the points gathered from the web.
Azure Function code runs in the different process (worker process) and Function host runs in the ...
0
votes
2
answers
163
views
Azure HttpTrigger function avoid waiting for response
In Visual Studio I created a new Azure Function project with an HttpTrigger function.
This is the code for the function:
public class DoSomething
{
private readonly ILogger<DoSomething> ...
0
votes
2
answers
250
views
Azure function topic output binding - set custom properties
I am trying to use Azure function output bindings to send message to a service bus topic having one subscription
Following piece of code is doing the job but I am not able to set
Custom Properties
...
0
votes
1
answer
171
views
Error when using the ExponentialBackoffRetry attributed in an Azure isolated function
I've got an Azure isolated function like so:
[Function("TransactionEventsIntegration")]
[ExponentialBackoffRetry(maxRetryCount: 3, minimumInterval: "00:00:02", ...
0
votes
1
answer
99
views
No job functions found. Try making your job classes and methods public. error when converting to isolated worker model function
I did the upgrade from .NET 6 to .NET 8 and then converted my Azure function from in-process to isolated worker model. After that, when I run the function app, I get this error:
Error image
This is my ...
0
votes
1
answer
126
views
How can I send debug logs directly to Application Insights from an Azure Function app without modifying host.json?
I'm developing an Azure Function app with C# / .NET 9 in the isolated worker model.
According to the docs, it should be possible to send application logs directly to Application Insights instead of ...
0
votes
1
answer
119
views
EventData having serialisation problem after migrating Azure function app from .NET 6 In Process to .NET 8 Isolated
I have migrated an Azure function from .NET 6 in-process to .NET 8 isolated. After the migration, everything works fine except EventData. I have a timer function which sends an array of EventData as ...
1
vote
2
answers
243
views
Upgrading to .NET 8 / isolated worker model changes http return status code
I have the following function that should return either a 200 response with a book as payload or a 404 with empty body:
using System.Collections.Generic;
using System.Threading;
using System.Threading....
-1
votes
1
answer
208
views
Copying a Service Bus Message issue with .NET 8.0 upgrade?
I have a service bus trigger function that attempts to retrieve an order and if the order is not available (not found) it will copy the service bus message and resubmit it with a 5 min enqueue time. ...
1
vote
1
answer
192
views
How do you modify the serialization options for Azure Functions v4 isolated?
Background problem:
I have a document POCO that I would like to use with the CosmosDbOutput binding extension (latest, v4).
I prefer to have my POCO property names in PascaLCase, and my Cosmos / Json ...
0
votes
1
answer
335
views
Azure HttpTrigger function with Blob() output issue with .NET 8.0 upgrade
I am having an issue with upgrading a repo to .NET 8. The issue is with an Azure HttpTrigger function that outputs to blob storage. I did notice that when I used the upgrade tool in Visual Studio to ...
0
votes
1
answer
257
views
Azure Functions Isolated worker model adding to Azure Storage queue error: System.ObjectDisposedException
Has anyone tried the following Microsoft quickstart "Connect Azure Functions to Azure Storage using Visual Studio Code" with Isolated worker model?
https://learn.microsoft.com/en-gb/azure/...
0
votes
1
answer
192
views
Azure Functions - Could not load file or assembly 'Microsoft.Extensions.Configuration.Abstractions, Version=8.0.0.0
I'm attempting to create an Azure Function with a Service Bus Trigger. It builds fine locally however when I come to trying to run it, I receive this error:
[2024-11-28T12:47:02.953Z] A host error has ...
1
vote
1
answer
137
views
Set name and/or container name dynamically when using BlobOutputAttribute
I'm working on an azure function that is triggered by a service bus queue and finally posts content to a blob storage container using "BlobOutputAttribute" binding:
[Function(nameof(...
8
votes
4
answers
6k
views
How to fix worker runtime metadata for Azure .net8 isolated worker model functions?
I have upgraded a .net6 Azure function (using an App Service plan, not Consumption) to an isolated .net8 function. All my assemblies have <TargetFramework>net8.0</TargetFramework>
The ...
0
votes
1
answer
125
views
Azure Function Configuration values not available in function attributes
I have an Azure Function running in Azure Portal. Its configuration resides in a configuration resource, some values are in a key vault resource. The Azure Function was implemented in .NET 6 with the ...
0
votes
1
answer
1k
views
Azure Functions Payload Size Limit
I have a .NET 8 isolated Azure functions project. I do have a HTTP triggered function that should receive some document content as payload. Initially, I was getting 413 Entity Too Large every time I ...
0
votes
1
answer
663
views
CustomDimensions not showing in ApplicationInsights traces in Azure Functions Isolated
I am trying to add a customDimension to my Azure Function logs but they don't seem to be coming through and I have no idea why. I have tried using BeginScope and sending the args with the individual ...
0
votes
2
answers
1k
views
Running Isolated-worker Azure Function in Docker Container
I'm trying to get an isolated worker model Azure function to run in a container, but it fails with the following error:
Unhandled exception. System.InvalidOperationException: The gRPC channel URI '...
2
votes
2
answers
575
views
Swagger UI freeze when response is too large around 2mb
I have added OpenAPI doc to my Function app project using Microsoft.Azure.Functions.Worker.Extensions.OpenApi, but the swagger/ui freeze when the response is too large, around 2mb. Is there anything I ...
1
vote
2
answers
860
views
How to send SignalR multiple async messages from one function .Net 8
I'm currently migrating my azure functions from .NET 6 to 8 in an isolated worker model. Below is an example of how my real code works. basically the signalR is used to send messages to the front end ...
-1
votes
1
answer
263
views
How to log startup errors to the console and view them, when Application Insights is not yet configured in Azure Function App?
How to log startup errors to the console and view them, when Application Insights are not yet configured and no ILogger<T> instance is available?
I want to catch and log errors during to ...
4
votes
3
answers
1k
views
.Net Azure Function app publish does not generate a bin folder
I work a lot to migrate an azure function app from net core 3.1 to net 6. After a long time i made all the azure functions to work fine in local. The next step was to deploy the azure function. The ...
3
votes
2
answers
6k
views
Update Azure function to isolated worker model gives 'FUNCTIONS_WORKER_RUNTIME' warning
I have updated an Azure function app from the in process model to the Isolated worker model but get this warning message in the portal.
The 'FUNCTIONS_WORKER_RUNTIME' setting is required. Please ...
0
votes
0
answers
943
views
Should OpenTelemetry AddSqlClientInstrumentation work with Azure functions?
I have an azure function running in the isolated worker process locally. My intention is to use the OpenTelemetry contrib packages rather than the built in features with the functions runtime, as I ...
2
votes
1
answer
502
views
.Net8 Isolated FunctionApp not showing up in Azure after deployment
FunctionApp works fine when deployed from Visual Studio using the downloaded publish profile from Azure. But when I try to deploy from Gitlab using ci/cd pipeline, the FunctionApp is not displayed in ...
1
vote
1
answer
374
views
How is the proper way to migrate a SignalR Azure Function from in process .NET 6 to isolated worker .NET8?
I could not find examples of how to replace some of the classes and attributes of SignalR that has changed from in process .NET 6 Azure Functions to isolated ones in .NET 8.
Examples:
[Function("...
0
votes
1
answer
63
views
Azure functions in .net6.0
I have an azure function in .net6.0 converted from framework 4.72. My code as follows,
[FunctionName("GetAllProducts")]
public static async Task<HttpResponseMessage> ...
3
votes
2
answers
1k
views
Azure Functions - Trigger Variables - Isolated Functions
In Azure Functions you can use the nomenclature of %token% to have at runtime that token being replaced by an Environment Variable. e.g.
public Task FunctionName(
[ServiceBusTrigger("%...