Create an AKS Cluster with AGIC Add On With Bicep?

Ian Joyce 31 Reputation points
2022-07-15T16:33:38.143+00:00

I'm looking for details of how to create an AKS cluster with an AGIC add on via bicep.

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,146 questions
0 comments No comments
{count} votes

Accepted answer
  1. kobulloc-MSFT 26,346 Reputation points Microsoft Employee
    2022-07-15T19:57:15.567+00:00

    Hello, @Ian Joyce !

    How do I deploy an AKS cluster with the Application Gateway Ingress Controller (AGIC) add-on via ARM/Bicep?
    There is a very extensive code sample that goes through the architecture, deployment options (both using the AGIC add-on for AKS and via a Helm chart), and additional considerations. This is an ARM template but I'm including Bicep information below:

    As far as a Bicep deployment is concerned, you can use the AKS Managed Clusters Bicep template for creating an AKS cluster and enable AGIC using a similar approach to the GitHub sample above with ingressApplicationGateway:

    "ingressApplicationGateway": {  
                "config": {  
                  "applicationGatewayId": "[variables('applicationGatewayId')]"  
                },  
                "enabled": true,  
                "identity": {  
                  "clientId": "[reference(variables('applicationGatewayUserDefinedManagedIdentityId')).clientId]",  
                  "objectId": "[reference(variables('applicationGatewayUserDefinedManagedIdentityId')).principalId]",  
                  "resourceId": "[variables('applicationGatewayUserDefinedManagedIdentityId')]"  
                }  
              }  
    

    If this doesn't address what you are looking for, let me know so we can look for a sample that more closely aligns with your design goals.

    A diagram of the overall architecture:

    221292-image.png

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.