How to automate the process of adding datasources to grafana using terraform using azure auth instead of basic auth

  • What Grafana version and what operating system are you using?
    Grafana Enterprise edition and Linux OS
  • What are you trying to achieve?
    Trying to automate the adding of datasources
  • How are you trying to achieve it?
    using terraform
  • What happened?
    In the documentation I find only the basic authentication method, whereas I need to azure auth , but I don’t find the properties related to azure auth
  • What did you expect to happen?
    I expect some support from any one who implemented this already
  • Can you copy/paste the configuration(s) that you are having problems with?
resource "grafana_data_source" "prometheus" {
  type                = "prometheus"
  name                = "mimir"
  url                 = "https://my-instances.com"
  basic_auth_enabled  = true
  basic_auth_username = "username"

  json_data_encoded = jsonencode({
    httpMethod        = "POST"
    prometheusType    = "Mimir"
    prometheusVersion = "2.4.0"
  })