Skip to content

Commit 57acc45

Browse files
fix: updated main.json
1 parent 229a5c7 commit 57acc45

1 file changed

Lines changed: 26 additions & 5 deletions

File tree

infra/main.json

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.35.1.17967",
8-
"templateHash": "13536585236097147854"
8+
"templateHash": "5708668410773165410"
99
}
1010
},
1111
"parameters": {
@@ -619,7 +619,7 @@
619619
"_generator": {
620620
"name": "bicep",
621621
"version": "0.35.1.17967",
622-
"templateHash": "6302547316976018886"
622+
"templateHash": "1643731277148896194"
623623
}
624624
},
625625
"parameters": {
@@ -905,6 +905,7 @@
905905
"name": "[parameters('deploymentType')]",
906906
"capacity": "[parameters('gptDeploymentCapacity')]"
907907
},
908+
"version": "2024-05-13",
908909
"raiPolicyName": "Microsoft.Default"
909910
},
910911
{
@@ -914,6 +915,7 @@
914915
"name": "Standard",
915916
"capacity": "[parameters('embeddingDeploymentCapacity')]"
916917
},
918+
"version": "2",
917919
"raiPolicyName": "Microsoft.Default"
918920
}
919921
],
@@ -1059,9 +1061,11 @@
10591061
"properties": {
10601062
"model": {
10611063
"format": "OpenAI",
1062-
"name": "[variables('aiModelDeployments')[copyIndex()].model]"
1064+
"name": "[variables('aiModelDeployments')[copyIndex()].model]",
1065+
"version": "[variables('aiModelDeployments')[copyIndex()].version]"
10631066
},
1064-
"raiPolicyName": "[variables('aiModelDeployments')[copyIndex()].raiPolicyName]"
1067+
"raiPolicyName": "[variables('aiModelDeployments')[copyIndex()].raiPolicyName]",
1068+
"versionUpgradeOption": "OnceCurrentVersionExpired"
10651069
},
10661070
"sku": {
10671071
"name": "[variables('aiModelDeployments')[copyIndex()].sku.name]",
@@ -1404,6 +1408,10 @@
14041408
"storageAccountName": {
14051409
"type": "string",
14061410
"value": "[variables('storageNameCleaned')]"
1411+
},
1412+
"applicationInsightsConnectionString": {
1413+
"type": "string",
1414+
"value": "[reference(resourceId('Microsoft.Insights/components', variables('applicationInsightsName')), '2020-02-02').ConnectionString]"
14071415
}
14081416
}
14091417
}
@@ -1667,6 +1675,9 @@
16671675
"AZURE_COSMOSDB_DATABASE": {
16681676
"value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_cosmos_db'), '2022-09-01').outputs.cosmosDatabaseName.value]"
16691677
},
1678+
"appInsightsConnectionString": {
1679+
"value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry'), '2022-09-01').outputs.applicationInsightsConnectionString.value]"
1680+
},
16701681
"AZURE_COSMOSDB_ENABLE_FEEDBACK": {
16711682
"value": "True"
16721683
},
@@ -1684,7 +1695,7 @@
16841695
"_generator": {
16851696
"name": "bicep",
16861697
"version": "0.35.1.17967",
1687-
"templateHash": "2607460382594511507"
1698+
"templateHash": "16988932665267526316"
16881699
}
16891700
},
16901701
"parameters": {
@@ -1907,6 +1918,12 @@
19071918
},
19081919
"applicationInsightsId": {
19091920
"type": "string"
1921+
},
1922+
"appInsightsConnectionString": {
1923+
"type": "securestring",
1924+
"metadata": {
1925+
"description": "The Application Insights connection string"
1926+
}
19101927
}
19111928
},
19121929
"variables": {
@@ -1971,6 +1988,10 @@
19711988
"name": "APPINSIGHTS_INSTRUMENTATIONKEY",
19721989
"value": "[reference(parameters('applicationInsightsId'), '2015-05-01').InstrumentationKey]"
19731990
},
1991+
{
1992+
"name": "APPLICATIONINSIGHTS_CONNECTION_STRING",
1993+
"value": "[parameters('appInsightsConnectionString')]"
1994+
},
19741995
{
19751996
"name": "AZURE_SEARCH_SERVICE",
19761997
"value": "[parameters('aiSearchService')]"

0 commit comments

Comments
 (0)