Terraform Kubernetes provider auth to apply manifest into Private AKS cluster

Kubectl Provider authentication into managed AKS error.

I’m blocked for about a week when I try deploying a kubernetes manifest.yaml using the terraform provider kubectl. The manifest was generated by Helm.

Error: failed to create kubernetes rest client for update of resource: Get "XXXXXX.privatelink.westus.azmk8s.io/api?timeout=32s"): getting credentials: exec: executable kubelogin failed with exit code 1
with kubectl_manifest.natty_k8s_manifest,
on main.tf line 82, in resource “kubectl_manifest” “natty_k8s_manifest”:
82: resource “kubectl_manifest” “natty_k8s_manifest” {