Skip to content

Commit cea084d

Browse files
Changed the location to australiaeast
1 parent 0dc923a commit cea084d

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- main
1010
- dev
1111
- demo
12+
- psl-deploypipeissue
1213
schedule:
1314
- cron: '0 5,17 * * *' # Runs at 5:00 AM and 5:00 PM GMT
1415
workflow_dispatch:
@@ -98,7 +99,7 @@ jobs:
9899
rg_exists=$(az group exists --name ${{ env.RESOURCE_GROUP_NAME }})
99100
if [ "$rg_exists" = "false" ]; then
100101
echo "Resource group does not exist. Creating..."
101-
az group create --name ${{ env.RESOURCE_GROUP_NAME }} --location northcentralus || { echo "Error creating resource group"; exit 1; }
102+
az group create --name ${{ env.RESOURCE_GROUP_NAME }} --location australiaeast || { echo "Error creating resource group"; exit 1; }
102103
else
103104
echo "Resource group already exists."
104105
fi
@@ -382,7 +383,7 @@ jobs:
382383
383384
# Purge OpenAI Resource
384385
echo "Purging the OpenAI Resource..."
385-
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
386+
if ! az resource delete --ids /subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/providers/Microsoft.CognitiveServices/locations/australiaeast/resourceGroups/${{ env.RESOURCE_GROUP_NAME }}/deletedAccounts/${{ env.OPENAI_RESOURCE_NAME }} --verbose; then
386387
echo "Failed to purge openai resource: ${{ env.OPENAI_RESOURCE_NAME }}"
387388
else
388389
echo "Purged the openai resource: ${{ env.OPENAI_RESOURCE_NAME }}"

infra/main.bicep

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ var replicaRegionPairs = {
4949
eastus: 'centralus'
5050
eastus2: 'centralus'
5151
japaneast: 'eastasia'
52-
northcentralus: 'southcentralus'
5352
northeurope: 'westeurope'
5453
southeastasia: 'eastasia'
5554
uksouth: 'westeurope'

infra/main_custom.bicep

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ var replicaRegionPairs = {
4949
eastus: 'centralus'
5050
eastus2: 'centralus'
5151
japaneast: 'eastasia'
52-
northcentralus: 'southcentralus'
5352
northeurope: 'westeurope'
5453
southeastasia: 'eastasia'
5554
uksouth: 'westeurope'

0 commit comments

Comments
 (0)