Skip to content

Commit

Permalink
setting location
Browse files Browse the repository at this point in the history
  • Loading branch information
anagarajan97 committed Nov 22, 2023
1 parent 41c051e commit ff785dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
- name: bootstrap resources
run: |
export RUN_BOOTSTRAP='true'
export LOCATION="northcentralus"
echo '${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}';
bash bootstrap_oai_v2.sh
working-directory: infra/bootstrapping
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
- name: bootstrap resources
run: |
export RUN_BOOTSTRAP='true'
export LOCATION="northcentralus"
echo '${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}';
bash bootstrap_oai_v2.sh
working-directory: infra/bootstrapping
Expand Down
5 changes: 3 additions & 2 deletions infra/bootstrapping/bootstrap_oai_v2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ echo_title "RESOURCE_GROUP_NAME = \"${RESOURCE_GROUP_NAME}\" & LOCATION=\"${LOCA
az configure --defaults group="${RESOURCE_GROUP_NAME}" workspace="${WORKSPACE_NAME}" location="${LOCATION}" # for subsequent commands.
az account set -s "${SUBSCRIPTION_ID}" || exit 1

LOCATION=${LOCATION:-"northcentralus"}

# RUN_BOOTSTRAP=1
if [[ ! -z "${RUN_BOOTSTRAP:-}" ]]; then
Expand All @@ -82,8 +83,8 @@ if [[ ! -z "${RUN_BOOTSTRAP:-}" ]]; then
"$SCRIPT_DIR"/sdk_helpers.sh ensure_ml_workspace "mlw-mevnet"
"$SCRIPT_DIR"/sdk_helpers.sh ensure_vnet "vnet-mevnet"
"$SCRIPT_DIR"/sdk_helpers.sh ensure_subnet "vnet-mevnet" "snet-scoring"
"$SCRIPT_DIR"/sdk_helpers.sh ensure_identity "uaimevnet"
"$SCRIPT_DIR"/sdk_helpers.sh grant_permission_identity_on_acr "uaimevnet"
"$SCRIPT_DIR"/sdk_helpers.sh ensure_identity "uaimevnet-oai-v2"
"$SCRIPT_DIR"/sdk_helpers.sh grant_permission_identity_on_acr "uaimevnet-oai-v2"

echo_title "Ensuring Permissions on RG"
"$SCRIPT_DIR"/sdk_helpers.sh grant_permission_app_id_on_rg "${APP_NAME}"
Expand Down

0 comments on commit ff785dc

Please sign in to comment.