File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,8 @@ jobs:
184184
185185 - name : Run Post-Deployment Script
186186 id : post_deploy
187+ env :
188+ AZURE_SUBSCRIPTION_ID : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
187189 run : |
188190 set -e
189191 az account set --subscription "${{ secrets.AZURE_SUBSCRIPTION_ID }}"
Original file line number Diff line number Diff line change @@ -271,7 +271,9 @@ if [ -z "$aif_resource_id" ]; then
271271 aif_resource_id=$( azd env get-value AI_FOUNDRY_RESOURCE_ID)
272272fi
273273
274- azSubscriptionId=$( azd env get-value AZURE_SUBSCRIPTION_ID)
274+ # Get subscription id from azd env or from environment variable
275+
276+ azSubscriptionId=$( azd env get-value AZURE_SUBSCRIPTION_ID) || azSubscriptionId=" $AZURE_SUBSCRIPTION_ID "
275277
276278# Check if all required arguments are provided
277279if [ -z " $storageAccount " ] || [ -z " $fileSystem " ] || [ -z " $keyvaultName " ] || [ -z " $cosmosDbAccountName " ] || [ -z " $resourceGroupName " ] || [ -z " $aif_resource_id " ] || [ -z " $aiSearchName " ]; then
You can’t perform that action at this time.
0 commit comments