Skip to content

Commit f6d18ea

Browse files
author
Shreyas-Microsoft
committed
fix variables
1 parent 36cd758 commit f6d18ea

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ jobs:
113113
az deployment group create \
114114
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
115115
--template-file infra/main.bicep \
116-
--parameters solutionName=${{env.SOLUTION_PREFIX}}
116+
--parameters solutionName=${{env.SOLUTION_PREFIX}} \
117+
--parameters location=${{ env.AZURE_LOCATION }} \
118+
--parameters aiDeploymentLocation=${{ env.AZURE_LOCATION }} \
119+
--parameters azureAiServiceLocation=${{ env.AZURE_LOCATION }}
117120
118121
119122
- name: Extract AI Services and Key Vault Names

infra/main.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ param azureAiServiceLocation string
5353
'westus3'
5454
])
5555
@description('Required. Azure region for AI model deployment. Should match azureAiServiceLocation for optimal performance.')
56-
param aiDeploymentLocation string
56+
param aiDeploymentLocation string = azureAiServiceLocation
5757

5858
@description('Optional. The host (excluding https://) of an existing container registry. This is the `loginServer` when using Azure Container Registry.')
5959
param containerRegistryHost string = 'containermigrationacr.azurecr.io'
@@ -739,7 +739,7 @@ module aiFoundry 'br/public:avm/ptn/ai-ml/ai-foundry:0.4.0' = if(!useExistingAiF
739739
#disable-next-line BCP334
740740
baseName: take(aiFoundryAiServicesResourceName, 12)
741741
baseUniqueName: null
742-
location: empty(aiDeploymentLocation) ? location : aiDeploymentLocation
742+
location: empty(azureAiServiceLocation) ? location : azureAiServiceLocation
743743
aiFoundryConfiguration: {
744744
accountName:aiFoundryAiServicesResourceName
745745
allowProjectManagement: true

0 commit comments

Comments
 (0)