An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
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:
- Elevate a Microsoft Entra tenant admin to “Azure tenant admin” (Owner at root
/). - 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.
- Elevate a Microsoft Entra tenant admin to “Azure tenant admin” (Owner at root
You can checkout by trying:
- 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. - 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. - Confirm you’re calling the API with the same tenant as the
{tenantId}in the URL and that your token’stidmatches. A mismatch will cause AuthorizationFailed even with strong roles. - 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)
- Community confirmation that tenant‑admin / elevated access is required for monitored object creation: https://learn.microsoft.com/en-gb/answers/questions/1009482/azure-monitor-agent-on-workstation[learn.microsoft](https://learn.microsoft.com/en-gb/answers/questions/1009482/azure-monitor-agent-on-workstation)
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.