This my Terraform code to create an AKS cluster and allow it to use my ACR (in the same subscription) :
resource "azurerm_kubernetes_cluster" "