Disabling pod security policy in Azure Kubernetes Cluster may lead to unauthorized access.
The Pod Security feature was removed from Kubernetes and is no longer available in AKS.
In Terraform -
In Provider versions prior to 2.x (deprecated):
References:
https://kubernetes.io/docs/concepts/security/pod-security-policy/
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster
https://registry.terraform.io/providers/hashicorp/azurerm/1.44.0/docs/resources/kubernetes_cluster#enable_pod_security_policy