Staging slot reporting

By default, the metrics from the Function App staging deployment slot are being reported to the same Application Insights resource as production. This can generate confusion when trying to identify errors created by new code changes pushed to staging only. It is is recommended to separate the reporting of the staging slot metrics into a separate Application Insights resource.

To do so, in Azure Portal, execute the following steps:

  1. Navigate to Application Insights -> Add.
  2. Enter a new resource name.
  3. Set the application type to General, and enter your subscription, resource group, and location.
  4. Once the resource is deployed, go to Properties and copy the instrumentation key.
  5. Go to your Function App -> Slots -> Staging ...

Get Serverless computing in Azure with .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.