AuthorizationFailed creating Microsoft.Insights/monitoredObjects despite Owner + tenant-root permissions

Admin -AdviceLab 0 Reputation points
2026-08-29T06:37:07.56+00:00

I'm setting up Azure Monitor Agent using the Windows client installer architecture (per Microsoft Learn: "Set up the Azure Monitor Agent on Windows client devices") to collect Critical-only Windows Event Logs into Microsoft Sentinel from ~200 Windows 11 client laptops.

This requires creating a tenant-level Monitored Object resource. Every attempt fails with AuthorizationFailed, regardless of permission level.

Command:

PUT https://management.azure.com/providers/Microsoft.Insights/monitoredObjects/{tenantId}?api-version=2021-09-01-preview

Body: { "properties": { "location": "australiacentral" } }

Error returned every time:

Forbidden({"error":{"code":"AuthorizationFailed","message":"The client does not have authorization to perform action 'Microsoft.Insights/monitoredObjects/write' over scope '/providers/Microsoft.Insights/monitoredObjects/{tenantId}' or the scope is invalid. If access was recently granted, please refresh your credentials."}})

Permissions confirmed in place simultaneously at time of failure:

  • Owner — directly on the target resource itself
  • Owner — at subscription scope
  • User Access Administrator — at tenant root scope (/)
  • Contributor — at Management Group (root) scope
  • Monitoring Contributor — at tenant root scope (/)

Already ruled out:

  • Resource provider registration confirmed (Microsoft.Insights shows monitoredObjects registered, api-version 2021-09-01-preview)
  • No Azure Policy deny assignments found (checked via az policy assignment list)
  • Request body format verified against Microsoft's documented reference script (properties wrapper included)
  • Retried after full token refresh / new Cloud Shell session — identical error every time

Is there a tenant-level feature flag, preview enrollment requirement, or regional restriction for Microsoft.Insights/monitoredObjects that would cause this independent of RBAC role assignments? Any guidance on how to check or request enablement would be appreciated.

Azure Monitor
Azure Monitor

An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.


1 answer

Sort by: Most helpful
  1. Ahamed Musthafa Careem 671 Reputation points
    2026-08-29T10:09:40.7133333+00:00

    Dear @Admin -AdviceLab

    The AuthorizationFailed on Microsoft.Insights/monitoredObjects/write for a tenant‑level monitored object is almost always a permissions/scope issue, not a regional or feature‑flag restriction. The monitored object is a tenant‑level ARM resource, so normal subscription Owner/Monitoring Contributor roles are not sufficient by themselves.

    Key points:

    • A monitored object must be created at scope /providers/Microsoft.Insights/monitoredObjects/{tenantId}.

    Microsoft’s docs state: “Because a monitored object is a tenant-level resource, the scope of permissions is greater than the scope of the permissions required for a subscription. An Azure tenant admin might be required to perform this step.”learn.microsoft

    • The recommended pattern is:
      1. Elevate a Microsoft Entra tenant admin to “Azure tenant admin” (Owner at root /).
      2. Assign the built‑in Monitored Object Contributor role (or equivalent custom role with Microsoft.Insights/monitoredObjects/write) at tenant root scope to the user/app that runs the PUT.

    You can checkout by trying:

    1. Use a Global Administrator account and enable “Elevate access” in Entra ID so that account has Owner at /. Then retry the PUT from that same identity.
    2. Ensure the identity has Monitored Object Contributor (or a custom role including Microsoft.Insights/monitoredObjects/write) at tenant root (/), not just at subscription or management group.
    3. Confirm you’re calling the API with the same tenant as the {tenantId} in the URL and that your token’s tid matches. A mismatch will cause AuthorizationFailed even with strong roles.
    4. Wait a few minutes after new role assignments and refresh tokens (new Cloud Shell / az login) before retrying.

    There is no documented regional restriction or preview enrollment flag specifically for monitoredObjects; the blocking factor in published cases is always tenant‑level RBAC.

    References:

    Set up the Azure Monitor Agent on Windows client devices (monitored object steps): https://learn.microsoft.com/azure/azure-monitor/agents/azure-monitor-agent-windows-client[learn.microsoft](https://learn.microsoft.com/en-us/azure/azure-monitor/agents/azure-monitor-agent-windows-client)

    Azure permissions for Monitor (includes Microsoft.Insights/MonitoredObjects/Write): https://docs.azure.cn/en-us/role-based-access-control/permissions/monitor[docs.azure](https://docs.azure.cn/en-us/role-based-access-control/permissions/monitor)

    Help make this community better for everyone: if this answer resolved your issue, please accept it or leave an upvote. If not, share more details in a comment so we can continue the discussion and find the right solution.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

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.