microsoft.insights shows not registered

Jagadeswar K 0 Reputation points
2026-06-30T07:37:08.5933333+00:00

Hey team iam working on wazuh azure log analytics so when i try to create diagnostic setting in azure portal with (global administrator) permission iam getting error as microsoft.insights is not registered but when i check the resources provider its registered and i even checked in Azure CLI it shows registered. Our organisation is using Pay as you go account User's image

User's image

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

1 answer

Sort by: Newest
  1. AI answer

    2026-06-30T07:37:35.1766667+00:00

    The error comes from the subscription not having permission to create diagnostic settings, not from the Microsoft.Insights resource provider registration itself.

    When configuring diagnostic settings to export to a Log Analytics workspace, the account (or service principal) must have a role that includes the Microsoft.Insights/diagnosticSettings/write permission at subscription scope. If this permission is missing or only granted at a lower scope (for example, resource group), the portal can surface confusing errors such as “subscription … is not registered to use microsoft.insights”.

    To fix this:

    1. In the Azure portal, go to Subscriptions and select the subscription shown in the error.
    2. Open Access control (IAM)Role assignments.
    3. Confirm that the identity used to create the diagnostic setting has a role at subscription level that includes Microsoft.Insights/diagnosticSettings/write.
    4. If not, create a custom role based on Log Analytics Contributor:
      • Duplicate the Log Analytics Contributor built‑in role.
      • Remove any permissions that are not needed.
      • Ensure Microsoft.Insights/diagnosticSettings/write remains in the permissions list.
    5. Assign this custom role to the identity at the subscription scope.
    6. If the role was just assigned, sign out and sign back in (or refresh credentials) and then retry creating the diagnostic setting.

    This resolves the permission error that is being reported as a microsoft.insights registration issue.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.