Azure Monitor built-in role

Monitoring Metrics Publisher

Publishes custom metrics and telemetry for Azure resources. Its supporting resource-group and provider operations are control-plane Actions, while Metrics/Write and Telemetry/Write are data-plane DataActions; it does not grant permission to read the published metrics.

Role-definition permissions are imported from Microsoft Learn. Practical scope, use cases, prerequisites, best practices, security considerations, assignment guidance, and relationships have been reviewed against the official sources below.

Role definition ID: 3913510d-42f4-4e42-8a64-420c390055eb

Control-plane actions (3)

Data-plane actions (2)

Excluded actions (0)

None

Assignable scopes (1)

Practical scope

Assign to the managed identity or service principal at the specific Azure resource whose custom metrics it emits, or at a resource group only when it must publish for multiple contained resources. Custom metrics cannot be emitted against a subscription or resource-group resource ID.

Common use cases (2)

Prerequisites (2)

Best practices (3)

Security considerations (3)

Assignment guidance

Assign Monitoring Metrics Publisher to the workload identity at each Azure resource it is authorized to represent. Use a broader scope only when the same trusted publisher must emit metrics for every target below that scope.

Related roles (1)

Common questions

When should I assign the Monitoring Metrics Publisher Azure role?

Assign Monitoring Metrics Publisher when you need to: Allow a managed identity to emit custom metrics about its own Azure resource.; and Allow a service principal or managed identity to publish custom metrics for another approved Azure resource through the Azure Monitor REST API.. Practical scope: Assign to the managed identity or service principal at the specific Azure resource whose custom metrics it emits, or at a resource group only when it must publish for multiple contained resources. Custom metrics cannot be emitted against a subscription or resource-group resource ID.

What permissions does the Monitoring Metrics Publisher Azure role grant?

The role definition grants 5 combined control-plane and data-plane actions. Representative operations include: Microsoft.Insights/Register/Action; Microsoft.Support/*; Microsoft.Resources/subscriptions/resourceGroups/read; Microsoft.Insights/Metrics/Write; and Microsoft.Insights/Telemetry/Write. Review the permission sections above for the complete definition and exclusions.

What are the security risks of the Monitoring Metrics Publisher Azure role?

Key considerations when assigning Monitoring Metrics Publisher: The DataActions can write metrics and telemetry that become available to Azure Monitor charts and alerts for the target resource.; The role does not grant metric read access, so viewing and publishing should remain separate responsibilities where required.; and A resource-group or subscription assignment lets the principal publish against more resources than a resource-scoped assignment.. Follow the assignment guidance above and use the narrowest practical scope.

Editorial sources (6)

Official Microsoft Learn documentation →