Skip to content

Commit 472fcbd

Browse files
authored
Merge pull request #607 from c3d/select-subscription
podvm: Select subscription after Azure login
2 parents 343e809 + 696c4be commit 472fcbd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config/peerpods/podvm/azure-podvm-image-handler.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ function login_to_azure() {
140140
--tenant="${AZURE_TENANT_ID}" ||
141141
error_exit "Failed to login to Azure"
142142

143+
echo "Selecting subscription"
144+
az account set --subscription ${AZURE_SUBSCRIPTION_ID} ||
145+
error_exit "Failed to select subscription"
146+
143147
echo "Logged in to Azure successfully"
144148
}
145149

0 commit comments

Comments
 (0)