Open mumurug-MSFT opened 5 months ago
@mumurug-MSFT Does this reproduce if you remove the section instead of adding comments in JSON? Comments in JSON are generally not safe.
This issue does not repro if you remove the commented out section in the JSON
Description
I have created an Azure Function in Visual Studio with default template and made changes for ASP.NET core integration as described in doc: https://learn.microsoft.com/en-us/azure/azure-functions/dotnet-isolated-process-guide?tabs=windows#aspnet-core-integration.
If I comment out
applicationInsights
inhost.JSON
, then Azure functions stuck in executing and never completes.applicationInsights
is not mandatory as per my understanding from https://learn.microsoft.com/en-us/azure/azure-functions/functions-host-json#applicationinsights and appears to be a bug.Output:![image](https://github.com/Azure/azure-functions-dotnet-worker/assets/95652148/36b56112-ec07-46fd-8518-8b9cdf55ffec)
Core Tools Version: 4.0.5504 Function Runtime Version: 4.28.3.21820
Steps to reproduce
Create a new Azure Function in Visual Studio (default template) and make changes as below:
host.json
Program.cs
Function1.cs
Output:![image](https://github.com/Azure/azure-functions-dotnet-worker/assets/95652148/d9dd9bde-1acf-438c-85d0-e025f2f31d32)
The issue was submitted based on discussion: https://learn.microsoft.com/en-us/answers/questions/1517505/azure-function-requires-applicationinsight-logging
brokenfunction.zip