Azure Monitor datasource in helm chart

Hello,

I deployed Grafana using Helm and wanted to set up Azure Monitor as a data source. I followed the documentation on how to add this data source: Azure Monitor data source | Grafana documentation. I added the necessary YAML configuration to my Helm chart, and Azure Monitor appears in the connections section.

However, even though I have already configured the client secret, Grafana is still asking for it. Additionally, the client ID and tenant ID fields are not being populated.

Yaml file which I have used :

apiVersion: 1 # config file version

datasources:

  • name: Azure Monitor
    type: grafana-azure-monitor-datasource
    access: proxy
    jsonData:
    azureAuthType: clientsecret
    cloudName: azuremonitor # See table below
    tenantId:
    clientId:
    subscriptionId: # Optional, default subscription
    secureJsonData:
    clientSecret:
    version: 1

Second one :

datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: Azure Monitor
type: grafana-azure-monitor-datasource
access: proxy
isDefault: true
jsonData:
azureAuthType: clientSecret
clientId: xxxx
cloudName: azuremonitor
subscriptionId: xxxx
tenantId: xxxx
secureJsonData:
clientSecret: xxxx