File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,6 @@ export RANDOM_SUFFIX := $(shell /bin/bash -c "echo $$RANDOM")
200200export AZWI_RESOURCE_GROUP ?= capz-wi-$(RANDOM_SUFFIX )
201201export CI_RG ?= $(AZWI_RESOURCE_GROUP )
202202export USER_IDENTITY ?= $(addsuffix $(RANDOM_SUFFIX ) ,$(CI_RG ) )
203- export AZWI_LOCATION ?= eastus
204203export AZURE_IDENTITY_ID_FILEPATH ?= $(ROOT_DIR ) /azure_identity_id
205204
206205# # --------------------------------------
Original file line number Diff line number Diff line change @@ -28,10 +28,12 @@ redact_vars=(
2828 " ${AZURE_SUBSCRIPTION_ID:- } "
2929 " ${AZURE_TENANT_ID:- } "
3030 " ${AZURE_JSON_B64:- } "
31+ " ${AZURE_CLIENT_ID_USER_ASSIGNED_IDENTITY:- } "
3132 " $( echo -n " ${AZURE_SUBSCRIPTION_ID:- } " | base64 | tr -d ' \n' ) "
3233 " $( echo -n " ${AZURE_TENANT_ID:- } " | base64 | tr -d ' \n' ) "
3334 " $( echo -n " ${AZURE_CLIENT_ID:- } " | base64 | tr -d ' \n' ) "
3435 " $( echo -n " ${AZURE_CLIENT_SECRET:- } " | base64 | tr -d ' \n' ) "
36+ " $( echo -n " ${AZURE_CLIENT_ID_USER_ASSIGNED_IDENTITY:- } " | base64 | tr -d ' \n' ) "
3537)
3638
3739for log_file in " ${log_files[@]} " ; do
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ AZWI_ENABLED="${AZWI_ENABLED:-true}"
3131RANDOM_SUFFIX=" ${RANDOM_SUFFIX:- $RANDOM } "
3232export AZWI_STORAGE_ACCOUNT=" oidcissuer${RANDOM_SUFFIX} "
3333export AZWI_STORAGE_CONTAINER=" \$ web"
34+ export AZWI_LOCATION=" ${AZURE_LOCATION:- southcentralus} "
3435export SERVICE_ACCOUNT_ISSUER=" ${SERVICE_ACCOUNT_ISSUER:- } "
3536export SERVICE_ACCOUNT_SIGNING_PUB_FILEPATH=" ${SERVICE_ACCOUNT_SIGNING_PUB_FILEPATH:- } "
3637export SERVICE_ACCOUNT_SIGNING_KEY_FILEPATH=" ${SERVICE_ACCOUNT_SIGNING_KEY_FILEPATH:- } "
@@ -92,10 +93,6 @@ function checkAZWIENVPreReqsAndCreateFiles() {
9293 echo " AZWI_RESOURCE_GROUP environment variable required - Azure resource group to store required Workload Identity artifacts"
9394 exit 1
9495 fi
95- if [ -z " ${AZWI_LOCATION} " ]; then
96- echo " AZWI_LOCATION environment variable required - Azure location where required Workload Identity artifacts reside"
97- exit 1
98- fi
9996 if [ " $( az group exists --name " ${AZWI_RESOURCE_GROUP} " --output tsv) " == ' false' ]; then
10097 echo " Creating resource group '${AZWI_RESOURCE_GROUP} ' in '${AZWI_LOCATION} '"
10198 az group create --name " ${AZWI_RESOURCE_GROUP} " --location " ${AZWI_LOCATION} " --output none --only-show-errors --tags creationTimestamp=" ${TIMESTAMP} " jobName=" ${JOB_NAME} " buildProvenance=" ${BUILD_PROVENANCE} "
You can’t perform that action at this time.
0 commit comments