From 15fa48bd631dd6aa22d25a75996e8c51d47e284b Mon Sep 17 00:00:00 2001 From: Yuval Yaron <43217306+yuvalyaron@users.noreply.github.com> Date: Fri, 8 Nov 2024 11:24:21 +0200 Subject: [PATCH] make the ARM_CLIENT_ID non mandatory in the bootstrap script (#4128) --- devops/terraform/bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devops/terraform/bootstrap.sh b/devops/terraform/bootstrap.sh index b7dba954a8..1623159ddf 100755 --- a/devops/terraform/bootstrap.sh +++ b/devops/terraform/bootstrap.sh @@ -15,7 +15,7 @@ az storage account create --resource-group "$TF_VAR_mgmt_resource_group_name" \ # Grant user blob data contributor permissions echo -e "\n\e[34m»»» 🔑 \e[96mGranting Storage Blob Data Contributor role to the current user\e[0m..." -if [ -n "$ARM_CLIENT_ID" ]; then +if [ -n "${ARM_CLIENT_ID:-}" ]; then USER_OBJECT_ID=$(az ad sp show --id "$ARM_CLIENT_ID" --query id --output tsv) else USER_OBJECT_ID=$(az ad signed-in-user show --query id --output tsv)