I am working on an offering for the Azure Marketplace of type 'managed application'. I have created an ARM template that deploys an AKS (Azure Kubernetes Service) cluster as part of this offering. The cluster infrastructure is correctly created using the ARM template.
However, I am trying to understand if it is possible to use Azure's Custom Script Extension to deploy my Kubernetes application on the cluster once the infrastructure is in place. I would like to run a script to initialize the environment with the necessary components of the application.
My question is: How to effectively use the Custom Script Extension to deploy a Kubernetes application on an AKS cluster created with an ARM template?
You can use the Custom Script Extension to run scripts on the AKS cluster deployed via ARM template by packaging your application with your custom script, along with the Kubernetes manifests, into a compressed file so that it is accessible to the nodes later
Upload your custom script to your Storage account.
Modify your ARM template to include the Custom Script Extension.
Deploy the ARM template from portal or CLI