|
5 | 5 | "_generator": { |
6 | 6 | "name": "bicep", |
7 | 7 | "version": "0.35.1.17967", |
8 | | - "templateHash": "13536585236097147854" |
| 8 | + "templateHash": "5708668410773165410" |
9 | 9 | } |
10 | 10 | }, |
11 | 11 | "parameters": { |
|
619 | 619 | "_generator": { |
620 | 620 | "name": "bicep", |
621 | 621 | "version": "0.35.1.17967", |
622 | | - "templateHash": "6302547316976018886" |
| 622 | + "templateHash": "1643731277148896194" |
623 | 623 | } |
624 | 624 | }, |
625 | 625 | "parameters": { |
|
905 | 905 | "name": "[parameters('deploymentType')]", |
906 | 906 | "capacity": "[parameters('gptDeploymentCapacity')]" |
907 | 907 | }, |
| 908 | + "version": "2024-05-13", |
908 | 909 | "raiPolicyName": "Microsoft.Default" |
909 | 910 | }, |
910 | 911 | { |
|
914 | 915 | "name": "Standard", |
915 | 916 | "capacity": "[parameters('embeddingDeploymentCapacity')]" |
916 | 917 | }, |
| 918 | + "version": "2", |
917 | 919 | "raiPolicyName": "Microsoft.Default" |
918 | 920 | } |
919 | 921 | ], |
|
1059 | 1061 | "properties": { |
1060 | 1062 | "model": { |
1061 | 1063 | "format": "OpenAI", |
1062 | | - "name": "[variables('aiModelDeployments')[copyIndex()].model]" |
| 1064 | + "name": "[variables('aiModelDeployments')[copyIndex()].model]", |
| 1065 | + "version": "[variables('aiModelDeployments')[copyIndex()].version]" |
1063 | 1066 | }, |
1064 | | - "raiPolicyName": "[variables('aiModelDeployments')[copyIndex()].raiPolicyName]" |
| 1067 | + "raiPolicyName": "[variables('aiModelDeployments')[copyIndex()].raiPolicyName]", |
| 1068 | + "versionUpgradeOption": "OnceCurrentVersionExpired" |
1065 | 1069 | }, |
1066 | 1070 | "sku": { |
1067 | 1071 | "name": "[variables('aiModelDeployments')[copyIndex()].sku.name]", |
|
1404 | 1408 | "storageAccountName": { |
1405 | 1409 | "type": "string", |
1406 | 1410 | "value": "[variables('storageNameCleaned')]" |
| 1411 | + }, |
| 1412 | + "applicationInsightsConnectionString": { |
| 1413 | + "type": "string", |
| 1414 | + "value": "[reference(resourceId('Microsoft.Insights/components', variables('applicationInsightsName')), '2020-02-02').ConnectionString]" |
1407 | 1415 | } |
1408 | 1416 | } |
1409 | 1417 | } |
|
1667 | 1675 | "AZURE_COSMOSDB_DATABASE": { |
1668 | 1676 | "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_cosmos_db'), '2022-09-01').outputs.cosmosDatabaseName.value]" |
1669 | 1677 | }, |
| 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 | + }, |
1670 | 1681 | "AZURE_COSMOSDB_ENABLE_FEEDBACK": { |
1671 | 1682 | "value": "True" |
1672 | 1683 | }, |
|
1684 | 1695 | "_generator": { |
1685 | 1696 | "name": "bicep", |
1686 | 1697 | "version": "0.35.1.17967", |
1687 | | - "templateHash": "2607460382594511507" |
| 1698 | + "templateHash": "16988932665267526316" |
1688 | 1699 | } |
1689 | 1700 | }, |
1690 | 1701 | "parameters": { |
|
1907 | 1918 | }, |
1908 | 1919 | "applicationInsightsId": { |
1909 | 1920 | "type": "string" |
| 1921 | + }, |
| 1922 | + "appInsightsConnectionString": { |
| 1923 | + "type": "securestring", |
| 1924 | + "metadata": { |
| 1925 | + "description": "The Application Insights connection string" |
| 1926 | + } |
1910 | 1927 | } |
1911 | 1928 | }, |
1912 | 1929 | "variables": { |
|
1971 | 1988 | "name": "APPINSIGHTS_INSTRUMENTATIONKEY", |
1972 | 1989 | "value": "[reference(parameters('applicationInsightsId'), '2015-05-01').InstrumentationKey]" |
1973 | 1990 | }, |
| 1991 | + { |
| 1992 | + "name": "APPLICATIONINSIGHTS_CONNECTION_STRING", |
| 1993 | + "value": "[parameters('appInsightsConnectionString')]" |
| 1994 | + }, |
1974 | 1995 | { |
1975 | 1996 | "name": "AZURE_SEARCH_SERVICE", |
1976 | 1997 | "value": "[parameters('aiSearchService')]" |
|
0 commit comments