An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
Hello @ Bart Vreeken
Thank you for reaching out to Microsoft Q&A.
Thanks for providing the detailed scenario and error details. The generic InternalServerError during provisioning of Application Gateway for Containers (AGC) is unfortunately quite common and usually occurs deep in the data-plane when Azure tries to inject the managed proxies into the delegated subnet.
Double-checking:
- Confirm the subnet is empty (no other resources, no NSG conflicts) and correctly delegated to Microsoft.ServiceNetworking/trafficControllers.
- Ensure your AKS cluster uses Azure CNI (not Kubenet) and resides in the same Virtual Network as the AGC subnet.
- Verify that the ALB Controller is installed correctly in the cluster and that the managed identity has the necessary permissions (at minimum Network Contributor on the VNet/subnet).
- Make sure all required resource providers are registered: Microsoft.ServiceNetworking, Microsoft.Network, and Microsoft.ContainerService.
Recommended next steps:
- Clean up completely — Delete the failed Traffic Controller resource, the subnet association, and any lingering resources in the Failed state.
- Wait a few minutes, then try recreating it using Azure CLI instead of Terraform or the Portal. CLI often surfaces slightly better diagnostic. Then create the association and frontend separately.
- If it still fails, retry after 30–60 minutes. These errors can sometimes be transient on the service side, especially during subnet association.
Microsoft Documentation:
- Troubleshoot Application Gateway for Containers
- Components and prerequisites
- Quickstart: Deploy with ALB Controller
- Diagnostics and monitoring
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".