Application Gateway Ingress Controller, BackEnd pools are not been created automatically when you deploy new pods in AKS.

Ely Saul Vicente Espinal 5 Reputation points
2025-08-07T20:55:57.61+00:00

I am creating a new architecture using Bicep Templates, I am creating an Application Gateway to be used as Ingress Controller by an AKS cluster, I have added all the permissions posted in the tutorials, but everytime I deploy new pods and the ingress controller, the Application Gateway's backend pool is no updated automatically, I have tried lot of different options and nothing works. Can you help with this problem.

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
{count} votes

2 answers

Sort by: Most helpful
  1. Ely Saul Vicente Espinal 5 Reputation points
    2025-08-17T19:37:20.52+00:00

    Hello, after trying many things to make this work, I will drop here the solution, thanks @Malthi Durga Reshma and @Akram Kathimi for your help:

    1.- Once you deploy your AKS cluster, you need to get the Kubelete Managed Identity (Not the user managed identity for your bicep deployment).
    2.- You need to assign the next roles to the Kubelet Identity:

    • Contributor Role with scope: Application Gateway.
    • Reader role with Scope: Application Gateway's Resource Group.
    • Network Contributor with scopes: App Gateway's Subnet and your BackEnd Services Subnet.
    • Managed Identity Operator with scope: User Managed Identity used for your Bicep Deployment.

    I hope this is helpful for others in the future.

    1 person found this answer helpful.
    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.