Questions tagged [dotnet-isolated]

37 questions
1
vote
1 answer

Containerised Azure function (v4, dotnet-isolated) breaks when trying to use environment variables as config source

This follows on from a previous question. I'm trying to build an Azure function to run as a Linux container image in an isolated process using .NET 6 and v4 of the functions runtime. I have followed the Microsoft guide to get a working, running…
Tom Troughton
  • 3,941
  • 2
  • 37
  • 77
0
votes
0 answers

Isolated functions(v4, .Net 7) Default project does not pull through config

I have tried the solutions in multiple cases I have seen this question, I have created a fresh template project to try and get it working simplistically but it still doesn't. Local settings file: { "IsEncrypted": false, "Values": { …
Hawkzey
  • 1,088
  • 1
  • 11
  • 21
0
votes
1 answer

.Net 7 Azure function for isolated process compile error with ServiceBusTrigger

I'm adding a new azure function (isolated process) to a running .net 7 project, but got the compile error "The attribute 'ServiceBusTrigger' is a WebJobs attribute and not supported in the .NET Worker (isolated process)". We're using isolated…
0
votes
1 answer

Azure functions - SignalR output binding failure: ServiceEndpoints is empty. ConnectionString is null, empty, or consists only of white-space

I'm trying to run an Azure function using SignalR output binding in dotnet-isolated process, but I always have this error "Executed 'Functions.SendToGroup' (Failed,..) System.Private.CoreLib: Exception while executing function:…
0
votes
3 answers

Failed to start a new language worker for runtime: dotnet-isolated - latest version of C# .Net 7

I have an Isolated Azure Function. Now I am getting this famous error: Failed to start a new language worker for runtime: dotnet-isolated I have searched and done all possible solutions in Stack overflow and Github. The reason I am asking is most of…
0
votes
1 answer

Isolated Azure functions failed to access Azure Service Bus

My Isolated Azure funtion is accessing Azure Service Bus. The Function App is working locally. [Function("Function1")] public async Task Run([ServiceBusTrigger("email", Connection = "AzureServiceBus:ConnectionString")] string myQueueItem,…
beewest
  • 4,486
  • 7
  • 36
  • 63
0
votes
1 answer

Azure Function Isolated Worker Process - HTTP Trigger firing but not running function

Using the http trigger outlined here - https://learn.microsoft.com/en-us/azure/azure-functions/dotnet-isolated-process-guide [Function("HttpFunction")] public static HttpResponseData Run([HttpTrigger(AuthorizationLevel.Anonymous, "get",…
0
votes
2 answers

Running dotnet isolated in debug mode

I have created an Azure function V4 on .NET6 running in dotnet-isolated mode. When i start the function using the regular run configuration it starts up fine. When i then attach the debugger manually i can succesfully debug the function. However…
0
votes
0 answers

IOptions configuration binding not working in dotnet-isolated function

I have a really simple Azure Function using the dotnet-isolated runtime but having some issues with the dependency injection setup, specifically around the IOptions pattern, my code is as follows var host = new HostBuilder() …
Neil Stevens
  • 3,534
  • 6
  • 42
  • 71
0
votes
1 answer

dotnet-isolated azure function container loads 0 of 1 function from metadata and then gives http status 204 (content not found)

I have .net 6 isolated function docker container that works locally but not in azure. The docker file copies the build output binaries to the home/site/wwwroot directory of the container based on the image…
Paul
  • 693
  • 1
  • 10
  • 25
0
votes
1 answer

What is the purpose of IJobHostContextFactory/JobHostContextFactory?

We are in the process of migrating Azure Functions to isolated in our project. During this process I came across an implementation of Microsoft.Azure.WebJobs.Host.Executors.IJobHostContextFactory. But no one could tell me what it is needed for. I…
Caveman74
  • 127
  • 9
0
votes
1 answer

Include command line to Azure Function

How can I add a command line argument for when my app starts? I'm using the Azure Functions in an isolated process, and after publish command, the worker.config.json file is created. I didn't find much documentation about this file, but I have tried…
0
votes
2 answers

Azure Function V4 Dotnet Isolated unable to connect to cosmos db

I am following some tutorial to connect Azure Function to Cosmosdb like this (the tutorial is for a V3 in-process azure function) [CosmosDBTrigger(databaseName: "Test", collectionName: "collection1", ConnectionStringSetting…
0
votes
1 answer

accessing azure app configuration service values during dependency injection in a Function App

as per the code below, I am connecting to an azure app configuration service in program.cs. This is tested and I can use the config settings in the function app. But I'd also like to configure other services, such as a blob container client. is it…
0
votes
1 answer

How to mock ServiceBusClient with retry options

I'm trying to ensure that the retry functionality is working correctly for ServiceBusSender.SendMessageAsync(). After a number of retries I need to do something else. Currently I'm doing the following to mock both the ServiceBusClient and…