if I activate AGIC for AKS via Terraform for an existing Application Gateway:
addon_profile {
ingress_application_gateway {
enabled = true
gateway_id = azurerm_application_gateway.application-gateway-network-1.id
}
}
and I deploy a hello-world ingress-application the rules etc. within the existing Application Gateway are not automatically created. If I change nothing but disabling AGIC via Azure Portal and enable it again: all works fine! Rules/health probes etc. are created automatically if I deploy the same hello-world ingress-application. It seems to be a bug on Terraform or Azure API side but cannot find anything. maybe someone as a hint or even a solution?
I tried it with different AKS versions and use the latest Terraform Azurem provider 2.98.
Thanks in advance