Skip to content

Commit 08206e2

Browse files
Update imageVersion parameter to include specific tag format
1 parent 2f2cbe0 commit 08206e2

File tree

3 files changed

+150
-51
lines changed

3 files changed

+150
-51
lines changed

infra/main.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ param llmModel string = 'gpt-4o'
9090

9191
@minLength(1)
9292
@description('Set the Image tag:')
93-
param imageVersion string = 'latest'
93+
param imageVersion string = 'latest_2025-09-22_455'
9494

9595
@minLength(1)
9696
@description('Version of the GPT model to deploy:')

infra/main.json

Lines changed: 148 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"metadata": {
66
"_generator": {
77
"name": "bicep",
8-
"version": "0.36.177.2456",
9-
"templateHash": "12716753818171697569"
8+
"version": "0.37.4.10188",
9+
"templateHash": "4708808767614470236"
1010
},
1111
"name": "Modernize Your Code Solution Accelerator",
12-
"description": "CSA CTO Gold Standard Solution Accelerator for Modernize Your Code. \r\n"
12+
"description": "CSA CTO Gold Standard Solution Accelerator for Modernize Your Code. \n"
1313
},
1414
"parameters": {
1515
"useWafAlignedArchitecture": {
@@ -165,7 +165,7 @@
165165
},
166166
"imageVersion": {
167167
"type": "string",
168-
"defaultValue": "latest",
168+
"defaultValue": "latest_2025-09-22_455",
169169
"minLength": 1,
170170
"metadata": {
171171
"description": "Set the Image tag:"
@@ -189,6 +189,13 @@
189189
"existingLogAnalyticsWorkspaceId": {
190190
"type": "string",
191191
"defaultValue": ""
192+
},
193+
"createdBy": {
194+
"type": "string",
195+
"defaultValue": "[if(empty(deployer().userPrincipalName), '', split(deployer().userPrincipalName, '@')[0])]",
196+
"metadata": {
197+
"description": "Optional created by user name"
198+
}
192199
}
193200
},
194201
"variables": {
@@ -450,7 +457,7 @@
450457
"apiVersion": "2021-04-01",
451458
"name": "default",
452459
"properties": {
453-
"tags": "[shallowMerge(createArray(variables('allTags'), createObject('TemplateName', 'Code Modernization')))]"
460+
"tags": "[shallowMerge(createArray(variables('allTags'), createObject('TemplateName', 'Code Modernization', 'CreatedBy', parameters('createdBy'))))]"
454461
}
455462
},
456463
"avmTelemetry": {
@@ -4779,8 +4786,8 @@
47794786
"metadata": {
47804787
"_generator": {
47814788
"name": "bicep",
4782-
"version": "0.36.177.2456",
4783-
"templateHash": "17070629679271156682"
4789+
"version": "0.37.4.10188",
4790+
"templateHash": "8046497849303973351"
47844791
}
47854792
},
47864793
"parameters": {
@@ -5057,8 +5064,8 @@
50575064
"metadata": {
50585065
"_generator": {
50595066
"name": "bicep",
5060-
"version": "0.36.177.2456",
5061-
"templateHash": "10117915409222818461"
5067+
"version": "0.37.4.10188",
5068+
"templateHash": "10645092392603021381"
50625069
}
50635070
},
50645071
"definitions": {
@@ -5397,8 +5404,8 @@
53975404
"metadata": {
53985405
"_generator": {
53995406
"name": "bicep",
5400-
"version": "0.36.177.2456",
5401-
"templateHash": "6056713917589230954"
5407+
"version": "0.37.4.10188",
5408+
"templateHash": "1936468723755149871"
54025409
}
54035410
},
54045411
"definitions": {
@@ -8018,8 +8025,8 @@
80188025
"metadata": {
80198026
"_generator": {
80208027
"name": "bicep",
8021-
"version": "0.36.177.2456",
8022-
"templateHash": "16831488907503271264"
8028+
"version": "0.37.4.10188",
8029+
"templateHash": "3082168335446205769"
80238030
}
80248031
},
80258032
"definitions": {
@@ -10684,8 +10691,8 @@
1068410691
"metadata": {
1068510692
"_generator": {
1068610693
"name": "bicep",
10687-
"version": "0.36.177.2456",
10688-
"templateHash": "4959660856295638020"
10694+
"version": "0.37.4.10188",
10695+
"templateHash": "40464970328764907"
1068910696
}
1069010697
},
1069110698
"definitions": {
@@ -20578,8 +20585,8 @@
2057820585
"metadata": {
2057920586
"_generator": {
2058020587
"name": "bicep",
20581-
"version": "0.36.177.2456",
20582-
"templateHash": "11399294166440815272"
20588+
"version": "0.37.4.10188",
20589+
"templateHash": "10914722088267065272"
2058320590
},
2058420591
"name": "AI Services and Project Module",
2058520592
"description": "This module creates an AI Services resource and an AI Foundry project within it. It supports private networking, OpenAI deployments, and role assignments."
@@ -21893,8 +21900,8 @@
2189321900
"metadata": {
2189421901
"_generator": {
2189521902
"name": "bicep",
21896-
"version": "0.36.177.2456",
21897-
"templateHash": "11000727597406726019"
21903+
"version": "0.37.4.10188",
21904+
"templateHash": "7512268633167491994"
2189821905
}
2189921906
},
2190021907
"parameters": {
@@ -22004,8 +22011,8 @@
2200422011
"metadata": {
2200522012
"_generator": {
2200622013
"name": "bicep",
22007-
"version": "0.36.177.2456",
22008-
"templateHash": "11000727597406726019"
22014+
"version": "0.37.4.10188",
22015+
"templateHash": "7512268633167491994"
2200922016
}
2201022017
},
2201122018
"parameters": {
@@ -22115,8 +22122,8 @@
2211522122
"metadata": {
2211622123
"_generator": {
2211722124
"name": "bicep",
22118-
"version": "0.36.177.2456",
22119-
"templateHash": "11000727597406726019"
22125+
"version": "0.37.4.10188",
22126+
"templateHash": "7512268633167491994"
2212022127
}
2212122128
},
2212222129
"parameters": {
@@ -22249,8 +22256,8 @@
2224922256
"metadata": {
2225022257
"_generator": {
2225122258
"name": "bicep",
22252-
"version": "0.36.177.2456",
22253-
"templateHash": "11270933172961789567"
22259+
"version": "0.37.4.10188",
22260+
"templateHash": "9510507771164523365"
2225422261
}
2225522262
},
2225622263
"definitions": {
@@ -24058,8 +24065,8 @@
2405824065
"metadata": {
2405924066
"_generator": {
2406024067
"name": "bicep",
24061-
"version": "0.36.177.2456",
24062-
"templateHash": "9150529619101779014"
24068+
"version": "0.37.4.10188",
24069+
"templateHash": "2491273843075489892"
2406324070
}
2406424071
},
2406524072
"definitions": {
@@ -24212,8 +24219,8 @@
2421224219
"metadata": {
2421324220
"_generator": {
2421424221
"name": "bicep",
24215-
"version": "0.36.177.2456",
24216-
"templateHash": "18131656256983910282"
24222+
"version": "0.37.4.10188",
24223+
"templateHash": "13991828250771551903"
2421724224
}
2421824225
},
2421924226
"definitions": {
@@ -24433,8 +24440,8 @@
2443324440
"metadata": {
2443424441
"_generator": {
2443524442
"name": "bicep",
24436-
"version": "0.36.177.2456",
24437-
"templateHash": "11270933172961789567"
24443+
"version": "0.37.4.10188",
24444+
"templateHash": "9510507771164523365"
2443824445
}
2443924446
},
2444024447
"definitions": {
@@ -26242,8 +26249,8 @@
2624226249
"metadata": {
2624326250
"_generator": {
2624426251
"name": "bicep",
26245-
"version": "0.36.177.2456",
26246-
"templateHash": "9150529619101779014"
26252+
"version": "0.37.4.10188",
26253+
"templateHash": "2491273843075489892"
2624726254
}
2624826255
},
2624926256
"definitions": {
@@ -26396,8 +26403,8 @@
2639626403
"metadata": {
2639726404
"_generator": {
2639826405
"name": "bicep",
26399-
"version": "0.36.177.2456",
26400-
"templateHash": "18131656256983910282"
26406+
"version": "0.37.4.10188",
26407+
"templateHash": "13991828250771551903"
2640126408
}
2640226409
},
2640326410
"definitions": {
@@ -26692,8 +26699,8 @@
2669226699
"metadata": {
2669326700
"_generator": {
2669426701
"name": "bicep",
26695-
"version": "0.36.177.2456",
26696-
"templateHash": "6558993818536161993"
26702+
"version": "0.37.4.10188",
26703+
"templateHash": "10161123205071565555"
2669726704
}
2669826705
},
2669926706
"definitions": {
@@ -26913,8 +26920,8 @@
2691326920
"metadata": {
2691426921
"_generator": {
2691526922
"name": "bicep",
26916-
"version": "0.36.177.2456",
26917-
"templateHash": "11000727597406726019"
26923+
"version": "0.37.4.10188",
26924+
"templateHash": "7512268633167491994"
2691826925
}
2691926926
},
2692026927
"parameters": {
@@ -27024,8 +27031,8 @@
2702427031
"metadata": {
2702527032
"_generator": {
2702627033
"name": "bicep",
27027-
"version": "0.36.177.2456",
27028-
"templateHash": "11000727597406726019"
27034+
"version": "0.37.4.10188",
27035+
"templateHash": "7512268633167491994"
2702927036
}
2703027037
},
2703127038
"parameters": {
@@ -32951,8 +32958,8 @@
3295132958
"metadata": {
3295232959
"_generator": {
3295332960
"name": "bicep",
32954-
"version": "0.36.177.2456",
32955-
"templateHash": "5637162512351801321"
32961+
"version": "0.37.4.10188",
32962+
"templateHash": "12465019174954183633"
3295632963
}
3295732964
},
3295832965
"definitions": {
@@ -33316,8 +33323,8 @@
3331633323
"metadata": {
3331733324
"_generator": {
3331833325
"name": "bicep",
33319-
"version": "0.36.177.2456",
33320-
"templateHash": "11000727597406726019"
33326+
"version": "0.37.4.10188",
33327+
"templateHash": "7512268633167491994"
3332133328
}
3332233329
},
3332333330
"parameters": {
@@ -36649,8 +36656,8 @@
3664936656
"metadata": {
3665036657
"_generator": {
3665136658
"name": "bicep",
36652-
"version": "0.36.177.2456",
36653-
"templateHash": "9062224490726814247"
36659+
"version": "0.37.4.10188",
36660+
"templateHash": "14888974788316430208"
3665436661
}
3665536662
},
3665636663
"definitions": {
@@ -36872,8 +36879,8 @@
3687236879
"metadata": {
3687336880
"_generator": {
3687436881
"name": "bicep",
36875-
"version": "0.36.177.2456",
36876-
"templateHash": "11000727597406726019"
36882+
"version": "0.37.4.10188",
36883+
"templateHash": "7512268633167491994"
3687736884
}
3687836885
},
3687936886
"parameters": {
@@ -44818,6 +44825,98 @@
4481844825
"WEB_APP_URL": {
4481944826
"type": "string",
4482044827
"value": "[format('https://{0}', reference('containerAppFrontend').outputs.fqdn.value)]"
44828+
},
44829+
"COSMOSDB_ENDPOINT": {
44830+
"type": "string",
44831+
"value": "[reference('cosmosDb').outputs.endpoint.value]"
44832+
},
44833+
"AZURE_BLOB_ACCOUNT_NAME": {
44834+
"type": "string",
44835+
"value": "[reference('storageAccount').outputs.name.value]"
44836+
},
44837+
"AZURE_BLOB_ENDPOINT": {
44838+
"type": "string",
44839+
"value": "[format('https://{0}.blob.core.windows.net/', reference('storageAccount').outputs.name.value)]"
44840+
},
44841+
"AZURE_OPENAI_ENDPOINT": {
44842+
"type": "string",
44843+
"value": "[format('https://{0}.openai.azure.com/', reference('aiServices').outputs.name.value)]"
44844+
},
44845+
"AZURE_AI_AGENT_PROJECT_NAME": {
44846+
"type": "string",
44847+
"value": "[reference('aiServices').outputs.aiProjectInfo.value.name]"
44848+
},
44849+
"AZURE_AI_AGENT_ENDPOINT": {
44850+
"type": "string",
44851+
"value": "[reference('aiServices').outputs.aiProjectInfo.value.apiEndpoint]"
44852+
},
44853+
"AZURE_AI_AGENT_PROJECT_CONNECTION_STRING": {
44854+
"type": "string",
44855+
"value": "[reference('aiServices').outputs.aiProjectInfo.value.apiEndpoint]"
44856+
},
44857+
"AZURE_AI_AGENT_RESOURCE_GROUP_NAME": {
44858+
"type": "string",
44859+
"value": "[resourceGroup().name]"
44860+
},
44861+
"AZURE_AI_AGENT_SUBSCRIPTION_ID": {
44862+
"type": "string",
44863+
"value": "[subscription().subscriptionId]"
44864+
},
44865+
"AI_PROJECT_ENDPOINT": {
44866+
"type": "string",
44867+
"value": "[reference('aiServices').outputs.aiProjectInfo.value.apiEndpoint]"
44868+
},
44869+
"AZURE_CLIENT_ID": {
44870+
"type": "string",
44871+
"value": "[reference('appIdentity').outputs.clientId.value]"
44872+
},
44873+
"AZURE_AI_AGENT_MODEL_DEPLOYMENT_NAME": {
44874+
"type": "string",
44875+
"value": "[variables('modelDeployment').name]"
44876+
},
44877+
"AZURE_BLOB_CONTAINER_NAME": {
44878+
"type": "string",
44879+
"value": "[variables('appStorageContainerName')]"
44880+
},
44881+
"COSMOSDB_DATABASE": {
44882+
"type": "string",
44883+
"value": "[reference('cosmosDb').outputs.databaseName.value]"
44884+
},
44885+
"COSMOSDB_BATCH_CONTAINER": {
44886+
"type": "string",
44887+
"value": "[reference('cosmosDb').outputs.containerNames.value.batch]"
44888+
},
44889+
"COSMOSDB_FILE_CONTAINER": {
44890+
"type": "string",
44891+
"value": "[reference('cosmosDb').outputs.containerNames.value.file]"
44892+
},
44893+
"COSMOSDB_LOG_CONTAINER": {
44894+
"type": "string",
44895+
"value": "[reference('cosmosDb').outputs.containerNames.value.log]"
44896+
},
44897+
"APPLICATIONINSIGHTS_CONNECTION_STRING": {
44898+
"type": "string",
44899+
"value": "[if(parameters('enableMonitoring'), reference('applicationInsights').outputs.connectionString.value, '')]"
44900+
},
44901+
"MIGRATOR_AGENT_MODEL_DEPLOY": {
44902+
"type": "string",
44903+
"value": "[variables('modelDeployment').name]"
44904+
},
44905+
"PICKER_AGENT_MODEL_DEPLOY": {
44906+
"type": "string",
44907+
"value": "[variables('modelDeployment').name]"
44908+
},
44909+
"FIXER_AGENT_MODEL_DEPLOY": {
44910+
"type": "string",
44911+
"value": "[variables('modelDeployment').name]"
44912+
},
44913+
"SEMANTIC_VERIFIER_AGENT_MODEL_DEPLOY": {
44914+
"type": "string",
44915+
"value": "[variables('modelDeployment').name]"
44916+
},
44917+
"SYNTAX_CHECKER_AGENT_MODEL_DEPLOY": {
44918+
"type": "string",
44919+
"value": "[variables('modelDeployment').name]"
4482144920
}
4482244921
}
4482344922
}

0 commit comments

Comments
 (0)