Provisioning Azure Monitor Data Source v9.3.8

  • What Grafana version and what operating system are you using?
    v9.3.8 running on an AKS node using Ubuntu

  • What are you trying to achieve?
    Provision the Azure monitor data source

  • How are you trying to achieve it?
    Run a pipeline with custom values using the managed identity solution for authorizing the data source following this guide

  • What happened?
    The Azure monitor data source is provisioned after pipeline run, it recognizes that the auth type is managed identity, but the subscription is missing from the data source

  • What did you expect to happen?
    The data source would be provisioned with the managed identity auth type and the subscription would be present

  • Can you copy/paste the configuration(s) that you are having problems with?
    No I cannot

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    The Grafana UI shows “Unexpected error” in a bubble in the top right with no further information

  • Did you follow any online instructions? If so, what is the URL?
    Yes, here is the URL Azure Monitor data source | Grafana documentation

To summarize, I am trying to provision the Azure monitor data source using the managed identity solution in the docs. Grafana is using an existing managed identity already so there should be no issues trying to find one. I copied the exact format for the managed identity solution for provisioning the data source and hard coded the subscription ID in the code block for testing purposes. After successfully running the pipeline to provision the data source, Azure monitor is present in the Grafana UI. When I click on the data source in the UI, a bubble pops up saying “Unexpected error” and the subscription ID is missing from the data source but the it recognizes the auth type is managed identity.

You will more likely get any response or advice when you provide reproducible example,e.g. your yaml file in this case. Yes, it may have some private details, but why you don’t mask them.