File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -130,13 +130,20 @@ jobs:
130130 # Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
131131 current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ")
132132
133+ EFFECTIVE_AI_REGION="${{ env.VALID_REGION }}"
134+ if [ -z "$EFFECTIVE_AI_REGION" ]; then
135+ EFFECTIVE_AI_REGION="eastus"
136+ echo "⚠️ WARNING: VALID_REGION not set, falling back to eastus"
137+ fi
138+ echo "✅ Using AI Deployments Region: $EFFECTIVE_AI_REGION"
139+
133140 az deployment group create \
134141 --name ${{ env.SOLUTION_PREFIX }}-deployment \
135142 --resource-group ${{ env.RESOURCE_GROUP_NAME }} \
136143 --template-file infra/main.bicep \
137144 --parameters \
138145 solutionName="${{ env.SOLUTION_PREFIX }}" \
139- aiDeploymentsLocation="eastus " \
146+ aiDeploymentsLocation="$EFFECTIVE_AI_REGION " \
140147 capacity=${{ env.GPT_MIN_CAPACITY }} \
141148 imageVersion="${IMAGE_TAG}" \
142149 createdBy="Pipeline" \
You can’t perform that action at this time.
0 commit comments