Azurerm kubernetes httpApplicationRouting addon: how to get the "routing domain" string in terraform?

Hello,

I have a question about azurerm httpApplicationRouting addon:

I am looking for a way to get in terraform the “HTTP application routing domain” value.

This value is obtains through the az aks cli command below:
az aks show --resource-group kubrg --name kube1 --query addonProfiles.httpApplicationRouting.config.HTTPApplicationRoutingZoneName -o table

expected outputs is the 21 digit generated domain name like this one: ekjzakjzmaldsm.francecentral.aksapp.io

my goal is to use this parameter in the kubernetes_ingress spec rule to file the “host” parameter automatically by replacing “ekjzakjzmaldsm” below:

host = "${kubernetes_service.myservice.metadata.0.name}.ekjzakjzmaldsm.francecentral.aksapp.io"

Thanks,

I found the information far later :slight_smile:

host = "${kubernetes_service.myservice.metadata.0.name}.${var.kube_config_tf.addon_profile[0].http_application_routing[0].http_application_routing_zone_name}"