github.com/Azure/aad-pod-identity@v1.8.17/tutorial/scripts/3-deploy-demo/2-deploy-demo.sh (about) 1 #!/bin/bash 2 3 cd "${0%/*}" 4 5 file="../../../../deploy/demo/deployment.yaml" 6 7 set -e 8 echo "To deploy the demo app, update the /deploy/demo.deployment.yaml arguments with \ 9 your subscription, clientID and resource group. \ 10 Make sure your identity with the client ID has reader permission to the resource group provided in the input." 11 12 read -p "Press enter to continue" 13 14 client_id=$(az identity show -n demo-aad1 -g ${MC_RG} | jq -r .clientId) 15 subscription_id=$(az account show | jq -r .id) 16 17 perl -pi -e "s/CLIENT_ID/${client_id}/" ${file} 18 perl -pi -e "s/SUBSCRIPTION_ID/${subscription_id}/" ${file} 19 perl -pi -e "s/RESOURCE_GROUP/${MC_RG}/" ${file} 20 21 22 23 # aad-pod-identity/deploy/demo/deployment.yaml is the original file 24 set -x 25 26 kubectl apply -f ${file}