Enabling kubernetes dashboard in Azure Kubernetes Cluster may lead to unauthorized access.
The AKS add-on for the Kubernetes dashboard has been deprecated and replaced by the standard AKS Portal. To disable it from Terraform, follow the steps below.
In Terraform -
For Azure Provider versions prior to 2.90.x (kube_dashboard has been removed from current versions):
References:
https://learn.microsoft.com/en-us/azure/aks/kubernetes-portal
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster
https://registry.terraform.io/providers/hashicorp/azurerm/2.89.0/docs/resources/kubernetes_cluster