Skip to content

Commit dd01570

Browse files
Merge branch 'dev' into CI-Pipeline-cad
2 parents d6b65c0 + 185a83a commit dd01570

File tree

3 files changed

+132
-73
lines changed

3 files changed

+132
-73
lines changed

.github/workflows/CAdeploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
DEPLOY_OUTPUT=$(az deployment group create \
156156
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
157157
--template-file infra/main.bicep \
158-
--parameters azureAiServiceLocation=${{ env.AZURE_LOCATION }} solutionName=${{ env.SOLUTION_PREFIX }} cosmosLocation=westus gptModelCapacity=${{ env.GPT_MIN_CAPACITY }} embeddingDeploymentCapacity=${{ env.TEXT_EMBEDDING_MIN_CAPACITY }} containerImageTag=${{ env.IMAGE_TAG }} createdBy="Pipeline" \
158+
--parameters location=${{ env.AZURE_LOCATION }} azureAiServiceLocation=${{ env.AZURE_LOCATION }} solutionName=${{ env.SOLUTION_PREFIX }} cosmosLocation=westus gptModelCapacity=${{ env.GPT_MIN_CAPACITY }} embeddingDeploymentCapacity=${{ env.TEXT_EMBEDDING_MIN_CAPACITY }} containerImageTag=${{ env.IMAGE_TAG }} createdBy="Pipeline" \
159159
--query "properties.outputs" -o json)
160160
161161
echo "Deployment output: $DEPLOY_OUTPUT"

infra/main.bicep

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,20 @@ param embeddingDeploymentCapacity int = 80
8282
@description('Required. Location for AI Foundry deployment. This is the location where the AI Foundry resources will be deployed.')
8383
param azureAiServiceLocation string
8484

85-
@description('Optional. Set this if you want to deploy to a different region than the resource group. Otherwise, it will use the resource group location by default.')
86-
param AZURE_LOCATION string = ''
87-
var solutionLocation = empty(AZURE_LOCATION) ? resourceGroup().location : AZURE_LOCATION
85+
@allowed([
86+
'australiaeast'
87+
'centralus'
88+
'eastasia'
89+
'eastus2'
90+
'japaneast'
91+
'northeurope'
92+
'southeastasia'
93+
'uksouth'
94+
])
95+
@metadata({ azd: { type: 'location' } })
96+
@description('Required. Azure region for all services. Regions are restricted to guarantee compatibility with paired regions and replica locations for data redundancy and failover scenarios based on articles [Azure regions list](https://learn.microsoft.com/azure/reliability/regions-list) and [Azure Database for MySQL Flexible Server - Azure Regions](https://learn.microsoft.com/azure/mysql/flexible-server/overview#azure-regions).')
97+
param location string
98+
var solutionLocation = empty(location) ? resourceGroup().location : location
8899

89100
@maxLength(5)
90101
@description('Optional. A unique token for the solution. This is used to ensure resource names are unique for global resources. Defaults to a 5-character substring of the unique string generated from the subscription ID, resource group name, and solution name.')

0 commit comments

Comments
 (0)