Snapshot debugging does not work with Azure function in Consumption tier

Casper Rubæk 246 Reputation points
2021-07-03T04:21:30.143+00:00

I have enabled snapshot debugging by adding this in the host.json file in the azure function and redeploying the function app:

{
"version": "2.0",
"logging": {
"applicationInsights": {
"snapshotConfiguration": {
"isEnabled": true
}
}
}
}

according the docs: https://learn.microsoft.com/da-dk/azure/azure-monitor/app/snapshot-debugger-function-app

However even though I can see the exception I generated and the end to end transaction, the button to see snapshot debug is not visible, even though I have waited 10 minutes for the debug snapshot to be created:

111513-image.png

I have also tried adding the nuget package: Microsoft.ApplicationInsights.SnapshotCollector.

However it still does not work.

Can you advise how to fix this?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,778 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,186 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 67,986 Reputation points
    2021-07-05T04:06:19.587+00:00

    Hi @Casper Rubæk

    Sharing previous discussion on the same.
    As mentioned in the document Snapshot Debugger currently works for ASP.NET and ASP.NET Core apps that are running on Azure Functions on Windows Service. We recommend you run your application on the Basic service tier or higher when using Snapshot Debugger.

    Let me know if you have any queries or concerns.


1 additional answer

Sort by: Most helpful
  1. Casper Rubæk 246 Reputation points
    2021-07-09T12:40:15.227+00:00

    For anyone with this problem, please add your vote on this feature request I have created for both Consumption and Premium hosting plans to use snapshot debugging:

    https://feedback.azure.com/forums/355860-azure-functions/suggestions/43771764-snapshot-de

    0 comments No comments