In this project, I will be creating AKS cluster the right way by using service principle.kubeconfig and service principle will be generated after the terraform plan and secret will be upload to keyvault to be used further.
- Resource Group
- Service Principle
- AKS cluster using the SPN
- Azure key vault to store the client secret
- Secret uploaded to key vault
- kubeconfig for AKS
az login --use-device-code
alias tf=terraform
tf init
tf plan
tf apply --auto-approve
User should have keyvault admin role even if the user has owner role.