Skip to content

Commit

Permalink
Added az login
Browse files Browse the repository at this point in the history
  • Loading branch information
Abby Artagame committed Nov 18, 2024
1 parent 3d2ce35 commit c281c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c281c6a

Please sign in to comment.