File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,10 @@ $plainPassword = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR
53
53
54
54
$resourceGroupName = azd env get-value AZURE_RESOURCE_GROUP
55
55
$containerAppName = azd env get-value SERVICE_API_NAME
56
+ $subscriptionId = azd env get-value AZURE_SUBSCRIPTION_ID
57
+
58
+ az account set -- subscription $subscriptionId
59
+ Write-Host " 🎯 Active Subscription: $ ( az account show -- query ' [name, id]' -- output tsv) "
56
60
57
61
58
62
Write-Host " Setup username and password in the secrets..."
Original file line number Diff line number Diff line change 32
32
# Get resource group and container app name from azd
33
33
resourceGroupName=$( azd env get-value AZURE_RESOURCE_GROUP)
34
34
containerAppName=$( azd env get-value SERVICE_API_NAME)
35
+ subscriptionId=$( azd env get-value AZURE_SUBSCRIPTION_ID)
36
+
37
+ az account set --subscription $subscriptionId
38
+ echo " 🎯 Active Subscription: $( az account show --query ' [name, id]' --output tsv) "
35
39
36
40
echo " Setup username and password in the secrets..."
37
41
You can’t perform that action at this time.
0 commit comments