diff --git a/capz/run-capz-e2e.sh b/capz/run-capz-e2e.sh index ed40469d..4ff3e212 100755 --- a/capz/run-capz-e2e.sh +++ b/capz/run-capz-e2e.sh @@ -46,13 +46,7 @@ main() { echo "testing az mi" kubectl get --raw "/.well-known/openid-configuration" - echo "file:" - cat /var/run/secrets/azure-token/serviceaccount/token - cat /var/run/secrets/azure-token/serviceaccount/token | jq -r '.iss' - cat /var/run/secrets/azure-token/serviceaccount/token | jq -r '.sub' - cat /var/run/secrets/azure-token/serviceaccount/token | jq -r '."kubernetes.io"' - - az login --identity --username 6755ccd3-1c03-4b09-aa0d-166f1f719b30 + az login -i -u 6755ccd3-1c03-4b09-aa0d-166f1f719b30 --federated-token "$(cat /var/run/secrets/azure-token/serviceaccount/token)" az account show echo "shutting down"