Skip to content

Support user assigned identities in Grafana monitor integrations #8991

@Droppers

Description

@Droppers

It appears as if the Azure CLI AMG extension does not have support for user assigned identities, because with the following command I get the following error: "The Grafana instance does not have a managed identity.".

az grafana integrations monitor add --name amg-example --resource-group rg-grafana --monitor-name monitor-workspace-example --monitor-resource-group-name rg-monitor-workspace --skip-role-assignments

az grafana show output, replaced the guids with empty guids:

{
 ...,
  "identity": {
    "type": "UserAssigned",
    "userAssignedIdentities": {
      "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-grafana/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mi-amg-example": {
        "clientId": "00000000-0000-0000-0000-000000000000",
        "principalId": "00000000-0000-0000-0000-000000000000"
      }
    }
  },
  ...
}

principal_id = grafana.identity.principal_id
if not principal_id:
raise ArgumentUsageError("The Grafana instance does not have a managed identity.")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-AssignAuto assign by botService AttentionThis issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.extension/grafanaaz grafanaquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions