Was working all fine then I published a code update via Visual Studio and now no longer get any request data. The Overview page in the Azure Portal just shows flatlined graphs and Live Metrics has the message "Not available: couldn't connect to your application"
This a .NET 8 Asp.Net Core app
What I can see though is under Transaction Search it will show TRACE messages, just nothing else.
The Live metrics in the Application Insights will be enabled by default when you deploy the App to Azure App Service.
Connected Services
.If you want to enable Live metrics
manually, you can do it from the deployed App Service
=> Application Insights
Click on Turn on the Application Insights
.
As mentioned in the MSDoc you can even enable it from code.
I can see both requests and traces in Transaction search.
Refer appsetting.json
file setting in this SOThread for AppInsights Configuration.