Edit

Grant Azure Monitor access to Azure Managed Grafana

Azure Managed Grafana can use its system-assigned managed identity, a user-assigned managed identity, or an app registration to authenticate to an Azure Monitor data source. The selected identity also needs an Azure role that authorizes it to read the monitoring data.

During workspace creation in the Azure portal, Monitoring Reader at the subscription scope is selected by default for the system-assigned managed identity. The role assignment is created only if the person creating the workspace has permission to assign Azure roles at that scope.

If the role wasn't assigned during creation, or if you want to use a narrower scope, follow the steps in this article. Grant access at the smallest scope that contains the monitoring data your dashboards need. You can assign the role at the subscription, resource group, or individual resource scope.

Note

The Monitoring Reader role provides access to Azure Monitor metrics and logs. To query Prometheus data in an Azure Monitor workspace, grant Monitoring Data Reader instead. For more information, see Connect an Azure Monitor workspace.

Prerequisites

Sign in to Azure

For the portal instructions, sign in to the Azure portal with your Azure account.

For the Azure CLI instructions, sign in by running az login.

Edit Azure Monitor permissions

Use either the Azure portal or Azure CLI to assign a role to the identity used by your Azure Monitor data source.

  1. Open the subscription, resource group, or resource that contains the monitoring data you want Azure Managed Grafana to access.

  2. Select Access control (IAM).

  3. Select Add > Add role assignment.

    Screenshot of the Azure platform to add role assignment in App Insights.

  4. On the Role tab, select Monitoring Reader, and then select Next.

    Screenshot of the Azure platform to choose the Monitoring Reader role.

  5. On the Members tab, select the member type for your data source identity:

    • For a system-assigned or user-assigned managed identity, select Managed identity, and then select Select members.
    • For an app registration, select User, group, or service principal, and then select Select members.

    Screenshot of the Azure platform selecting members.

  6. Select the identity used by your Azure Monitor data source:

    • For the system-assigned identity, select Azure Managed Grafana, and then select your workspace.
    • For a user-assigned identity, select User-assigned managed identity, and then select the identity.
    • For an app registration, search for and select its name.
  7. Select Select.

    Screenshot of the Azure platform selecting the workspace.

  8. Select Review + assign, and then select Review + assign again to create the assignment.

To verify the assignment, return to Access control (IAM), select Role assignments, and confirm that your workspace has the Monitoring Reader role.

For more information about using Azure Managed Grafana with Azure Monitor, see Use Azure Managed Grafana with Azure Monitor.