-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
Auto-AssignAuto assign by botAuto assign by botService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.extension/grafanaaz grafanaaz grafanaquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Description
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"
}
}
},
...
}azure-cli-extensions/src/amg/azext_amg/integrations.py
Lines 24 to 26 in 682e555
| principal_id = grafana.identity.principal_id | |
| if not principal_id: | |
| raise ArgumentUsageError("The Grafana instance does not have a managed identity.") |
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.extension/grafanaaz grafanaaz grafanaquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that