Skip to content

Commit 9d2d120

Browse files
added image tage parameter
1 parent a5f8225 commit 9d2d120

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

docs/CustomizingAzdParameters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ By default this template will use the environment name as the prefix to prevent
1414
| `AZURE_ENV_MODEL_NAME` | string | `'gpt-4o'` | Set the Model Name (allowed values: gpt-4o). |
1515
| `AZURE_ENV_MODEL_CAPACITY` | integer | `'200'` | Set the Model Capacity (choose a number based on available GPT model capacity in your subscription). |
1616
| `AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID` | string | `'<Existing Workspace Id>'` | Set this if you want to reuse an existing Log Analytics Workspace instead of creating a new one. |
17+
| `AZURE_ENV_IMAGETAG` | string | `'latest'` | Set the Image tag Like (allowed values: latest, dev, hotfix) |
1718

1819
---
1920

infra/main.bicep

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ param AzureAiServiceLocation string // The location used for all deployed resou
3434
param capacity int = 5
3535
param deploymentType string = 'GlobalStandard'
3636
param llmModel string = 'gpt-4o'
37+
param imageVersion string = 'latest'
38+
3739

3840
param existingLogAnalyticsWorkspaceId string = ''
3941

4042
var uniqueId = toLower(uniqueString(subscription().id, safePrefix, resourceGroup().location))
4143
var UniquePrefix = 'cm${padLeft(take(uniqueId, 12), 12, '0')}'
4244
var ResourcePrefix = take('cm${safePrefix}${UniquePrefix}', 15)
43-
var imageVersion = 'latest'
4445
var location = resourceGroup().location
4546
var dblocation = resourceGroup().location
4647
var cosmosdbDatabase = 'cmsadb'

infra/main.bicepparam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ param AzureAiServiceLocation = readEnvironmentVariable('AZURE_LOCATION','japanea
55
param capacity = int(readEnvironmentVariable('AZURE_ENV_MODEL_CAPACITY', '200'))
66
param deploymentType = readEnvironmentVariable('AZURE_ENV_MODEL_DEPLOYMENT_TYPE', 'GlobalStandard')
77
param llmModel = readEnvironmentVariable('AZURE_ENV_MODEL_NAME', 'gpt-4o')
8+
param imageVersion = readEnvironmentVariable('AZURE_ENV_IMAGETAG', 'latest')
89
param existingLogAnalyticsWorkspaceId = readEnvironmentVariable('AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID', '')

0 commit comments

Comments
 (0)