Assuming below cli modules are installed and configured
- Terraform
- Docker
- Openssl
- AZ Cli
cd terraform
openssl genrsa 2048 > private.pem
openssl req -x509 -new -key private.pem -out public.pem
openssl pkcs12 -export -in public.pem -inkey private.pem -out mycert.pfx
az login
# Before running terraform scripts verify certificate file generated
terraform init
terraform plan
terraform apply
Note:- Assign user to newly provisioned AKS cluster admin group
az aks get-credentials -n <AKS NAME> -g <RG NAME> --overwrite-existing
kubectl get nodes
#Expect device login message here
terraform destroy