hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.6k stars 4.64k forks source link

unable to set aad integration within aks #4010

Closed smartpcr closed 5 years ago

smartpcr commented 5 years ago

provider version: azurerm: 1.28.0 terraform: 1.13.0

service_principal {
    client_id     = "${var.service_principal_id}"
    client_secret = "${var.service_principal_secret}"
  }

  role_based_access_control {
    enabled = true

    azure_active_directory {
      client_app_id     = "${var.client_app_id}"
      server_app_id     = "${var.server_app_id}"
      server_app_secret = "${var.server_app_secret}"
    }
  }

here is the error I got using gitops: Error: module.aks-gitops.module.aks.azurerm_kubernetes_cluster.cluster: role_based_access_control: attribute supports 1 item maximum, config has 2 declared

smartpcr commented 5 years ago

silly mistake, I had two role_based_access_control blocks defined

ghost commented 5 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!