Skip to content

Commit a1e7485

Browse files
Rename AzureAiServiceLocation parameter to aiDeploymentsLocation for consistency in deployment configurations
1 parent ee59c99 commit a1e7485

3 files changed

Lines changed: 20 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
--template-file infra/main.bicep \
9696
--parameters \
9797
Prefix="${{ env.SOLUTION_PREFIX }}" \
98-
AzureAiServiceLocation="eastus" \
98+
aiDeploymentsLocation="eastus" \
9999
capacity=${{ env.GPT_MIN_CAPACITY }} \
100100
imageVersion="${IMAGE_TAG}"\
101101
--debug

azure.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
11
name: modernize-your-code-solution-accelerator
22
metadata:
33
template: modernize-your-code-solution-accelerator@1.0
4+
parameters:
5+
AzureAiServiceLocation:
6+
type: string
7+
default: japaneast
8+
Prefix:
9+
type: string
10+
default: azdtemp
11+
baseUrl:
12+
type: string
13+
default: 'https://raw.githubusercontent.com/microsoft/Modernize-your-code-solution-accelerator'
14+
deployment:
15+
mode: Incremental
16+
template: ./infra/main.bicep # Path to the main.bicep file inside the 'deployment' folder
17+
parameters:
18+
AzureAiServiceLocation: ${{ parameters.AzureAiServiceLocation }}
19+
Prefix: ${{ parameters.Prefix }}
20+
baseUrl: ${{ parameters.baseUrl }}

infra/main.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ param location string = resourceGroup().location
4141
}
4242
})
4343
@description('Optional. Location for all AI service resources. This location can be different from the resource group location.')
44-
param azureAiServiceLocation string
44+
param aiDeploymentsLocation string
4545

4646
@description('Optional. AI model deployment token capacity. Defaults to 150K tokens per minute.')
4747
param capacity int = 150
@@ -219,7 +219,7 @@ module aiServices 'modules/ai-foundry/main.bicep' = {
219219
dependsOn: [logAnalyticsWorkspace, network] // required due to optional flags that could change dependency
220220
params: {
221221
name: 'ais-${resourcesName}'
222-
location: azureAiServiceLocation
222+
location: aiDeploymentsLocation
223223
sku: 'S0'
224224
kind: 'AIServices'
225225
deployments: [modelDeployment]

0 commit comments

Comments
 (0)