AKS - enabling ingress_application_gateway

Hi,
I try to enable Application Gateway Ingress controller on AKS cluster. I just use the below code dynamic “ingress_application_gateway” {
for_each = var.ingress_application_gateway_enabled ? [1] :
content {
}
But I get the error the following error > “ingress_application_gateway.0.subnet_id”: one of
ingress_application_gateway.0.gateway_id,ingress_application_gateway.0.subnet_cidr,ingress_application_gateway.0.subnet_idmust be specified>
However this is not a case if we enable the add-on from Azure Portal, and this part was worked in provider azurerm 2.93.0, but not working on the latest. Any help?