From c281c6af9d78f49ba8c99be8187e6d7c7f5274a7 Mon Sep 17 00:00:00 2001 From: Abby Artagame Date: Mon, 18 Nov 2024 16:43:48 +1100 Subject: [PATCH] Added az login --- tf/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tf/main.tf b/tf/main.tf index 595a012..b1e9db7 100644 --- a/tf/main.tf +++ b/tf/main.tf @@ -190,7 +190,7 @@ resource "null_resource" "build_image_template" { # Function for Azure login perform_login() { echo "Performing Azure login..." - az login --service-principal -u "$CLIENT_ID" --tenant "$TENANT_ID" ---p "$CLIENT_SECRET" > /dev/null 2>&1 + az login --service-principal -u "$CLIENT_ID" --tenant "$TENANT_ID" -p "$CLIENT_SECRET" > /dev/null 2>&1 if [ $? -eq 0 ]; then echo "Azure login successful at $(date)" else