You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance deploy workflow with new branch and region logic
Updated the deploy workflow to include a new branch for triggering the pipeline and modified the region selection logic for Azure resources based on quota availability.
- name: Assign Contributor role to Service Principal
141
149
if: always()
142
150
run: |
@@ -356,7 +364,7 @@ jobs:
356
364
357
365
# Purge OpenAI Resource
358
366
echo "Purging the OpenAI Resource..."
359
-
if ! az resource delete --ids /subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/providers/Microsoft.CognitiveServices/locations/northcentralus/resourceGroups/${{ env.RESOURCE_GROUP_NAME }}/deletedAccounts/${{ env.OPENAI_RESOURCE_NAME }} --verbose; then
367
+
if ! az resource delete --ids /subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/providers/Microsoft.CognitiveServices/locations/${{ env.SELECTED_REGION }}/resourceGroups/${{ env.RESOURCE_GROUP_NAME }}/deletedAccounts/${{ env.OPENAI_RESOURCE_NAME }} --verbose; then
360
368
echo "Failed to purge openai resource: ${{ env.OPENAI_RESOURCE_NAME }}"
361
369
else
362
370
echo "Purged the openai resource: ${{ env.OPENAI_RESOURCE_NAME }}"
0 commit comments