Why I am seeing "Resource not found" for all the statistics in the overview of my Static Web App?

Gunnar Braaten 1 Reputation point
2021-03-21T22:26:01.233+00:00

I hope the title says it all. I have created an app and deployed it successfully, but I am not seeing any statistics. I can't figure out why. Please advice.

79926-stats.png

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
851 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 24,971 Reputation points Microsoft Employee
    2021-03-22T18:40:35.927+00:00

    @Gunnar Braaten ,

    Exploring metrics requires Microsoft.Insights resource provider registered in your subscription. In many cases, it is registered automatically (that is, after you configure an alert rule, customize diagnostic settings for any resource, or configure an autoscale rule). If the Microsoft.Insights resource provider is not registered, you must manually register it by following steps described in Azure resource providers and types.

    Try these steps:
    In Azure Portal> Open Subscriptions, Resource providers tab, and verify that Microsoft.Insights is registered for your subscription.

    If the issue still persist; from the issue description I believe it's a new subscription and you just started provisioning the resources. Are you an admin or co-admin/or have any specific RBAC role assigned on the subscription?
    The doc, you referenced is however related to API support in Azure Static Web Apps with Azure Functions; but linked to Application Insights itself.