-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In-Process And Isolated .NET 8 Azure Function throws exception Azure.RequestFailedException during start time locally #9759
Comments
In public override void ConfigureAppConfiguration(IFunctionsConfigurationBuilder builder)
{
var context = builder.GetContext();
// authorized by DefaultAzureCredential
var cosmosClient = new CosmosClient("https://my-cosmos.documents.azure.com:443/", new DefaultAzureCredential());
var database = cosmosClient.GetDatabase("mydb");
var container = database.GetContainer("mycontainer");
var queryDefinition = new QueryDefinition($"SELECT * FROM c");
var iterator = container.GetItemQueryIterator<dynamic>(queryDefinition,
requestOptions: new QueryRequestOptions()
{
PartitionKey = new PartitionKey(""),
});
var results = new List<dynamic>();
while (iterator.HasMoreResults)
{
var result = iterator.ReadNextAsync().Result;
results.AddRange(result.Resource);
}
} and it works like a charm.. There is some issue during start time of Azure Function that my functions using triggers are not registered |
Fyi, i moved my function from in process mode to isolated .net 8 and i face the same error |
The in-process model does not support .NET8, but the .NET isolated model does. If you are experiencing issues with .NET isolated model, please open a new GH issue with relevant details / repro steps in the isolated worker model repro. |
Is your question related to a specific version? If so, please specify:
Azure Functions V4 - In-Process mode
What language does your question apply to? (e.g. C#, JavaScript, Java, All)
C#, .NET 6
Question
When i want to startup In-Process Azure Function project with functions like:
Project throws exceptions like:
And i didn't use
DefaultAzureCredential
yet as in other StackOverflow questions. Previously, my environment worked really well (I didnt touch this project for a moths) but anyIn-process
function throws this way that it can not reach169.254.169.254:80
network.Isolated functions works fine with
ServiceBus
triggersMy
.csproj
:my
dotnet --info
:EDIT
After moving from in process to isoleted function:
I have the same errors during function start time
The text was updated successfully, but these errors were encountered: