|
4 | 4 | "metadata": { |
5 | 5 | "_generator": { |
6 | 6 | "name": "bicep", |
7 | | - "version": "0.33.93.31351", |
8 | | - "templateHash": "16851365929061577011" |
| 7 | + "version": "0.35.1.17967", |
| 8 | + "templateHash": "13571363186442322406" |
9 | 9 | } |
10 | 10 | }, |
11 | 11 | "parameters": { |
|
386 | 386 | "name": "COSMOSDB_ENDPOINT", |
387 | 387 | "value": "[reference(resourceId('Microsoft.Resources/deployments', toLower(format('{0}{1}databaseAccount', variables('abbrs').databases.cosmosDBDatabase, variables('ResourcePrefix')))), '2022-09-01').outputs.endpoint.value]" |
388 | 388 | }, |
| 389 | + { |
| 390 | + "name": "APPLICATIONINSIGHTS_CONNECTION_STRING", |
| 391 | + "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry'), '2022-09-01').outputs.applicationInsightsConnectionString.value]" |
| 392 | + }, |
389 | 393 | { |
390 | 394 | "name": "COSMOSDB_DATABASE", |
391 | 395 | "value": "[variables('cosmosdbDatabase')]" |
|
614 | 618 | "metadata": { |
615 | 619 | "_generator": { |
616 | 620 | "name": "bicep", |
617 | | - "version": "0.33.93.31351", |
618 | | - "templateHash": "4801202077166882355" |
| 621 | + "version": "0.35.1.17967", |
| 622 | + "templateHash": "4754404420489871145" |
619 | 623 | } |
620 | 624 | }, |
621 | 625 | "parameters": { |
|
714 | 718 | "metadata": { |
715 | 719 | "_generator": { |
716 | 720 | "name": "bicep", |
717 | | - "version": "0.33.93.31351", |
718 | | - "templateHash": "3632224099881800620" |
| 721 | + "version": "0.35.1.17967", |
| 722 | + "templateHash": "14711167186840027914" |
719 | 723 | } |
720 | 724 | }, |
721 | 725 | "parameters": { |
|
850 | 854 | "metadata": { |
851 | 855 | "_generator": { |
852 | 856 | "name": "bicep", |
853 | | - "version": "0.33.93.31351", |
854 | | - "templateHash": "9456018511253136487" |
| 857 | + "version": "0.35.1.17967", |
| 858 | + "templateHash": "6185941478702970428" |
855 | 859 | } |
856 | 860 | }, |
857 | 861 | "parameters": { |
|
1128 | 1132 | "aiHubDescription": "AI Hub for KM template", |
1129 | 1133 | "aiProjectName": "[format('{0}{1}', variables('abbrs').ai.aiHubProject, parameters('solutionName'))]", |
1130 | 1134 | "aiProjectFriendlyName": "[variables('aiProjectName')]", |
1131 | | - "aiSearchName": "[format('{0}{1}', variables('abbrs').ai.aiSearch, parameters('solutionName'))]", |
| 1135 | + "aiSearchName": "[format('{0}-search', parameters('solutionName'))]", |
| 1136 | + "applicationInsightsName": "[format('{0}-appi', parameters('solutionName'))]", |
1132 | 1137 | "storageNameCleaned": "[replace(replace(replace(replace(format('{0}cast', variables('storageName')), '-', ''), '_', ''), '.', ''), '/', '')]" |
1133 | 1138 | }, |
1134 | 1139 | "resources": [ |
|
1166 | 1171 | } |
1167 | 1172 | } |
1168 | 1173 | }, |
| 1174 | + { |
| 1175 | + "type": "Microsoft.Insights/components", |
| 1176 | + "apiVersion": "2020-02-02", |
| 1177 | + "name": "[variables('applicationInsightsName')]", |
| 1178 | + "location": "[variables('location')]", |
| 1179 | + "kind": "web", |
| 1180 | + "properties": { |
| 1181 | + "Application_Type": "web", |
| 1182 | + "publicNetworkAccessForIngestion": "Enabled", |
| 1183 | + "publicNetworkAccessForQuery": "Enabled", |
| 1184 | + "WorkspaceResourceId": "[resourceId('Microsoft.OperationalInsights/workspaces', variables('workspaceName'))]" |
| 1185 | + }, |
| 1186 | + "dependsOn": [ |
| 1187 | + "[resourceId('Microsoft.OperationalInsights/workspaces', variables('workspaceName'))]" |
| 1188 | + ] |
| 1189 | + }, |
1169 | 1190 | { |
1170 | 1191 | "type": "Microsoft.Storage/storageAccounts", |
1171 | 1192 | "apiVersion": "2022-09-01", |
|
1434 | 1455 | "type": "string", |
1435 | 1456 | "value": "[resourceId('Microsoft.Storage/storageAccounts', variables('storageNameCleaned'))]" |
1436 | 1457 | }, |
| 1458 | + "applicationInsightsConnectionString": { |
| 1459 | + "type": "string", |
| 1460 | + "value": "[reference(resourceId('Microsoft.Insights/components', variables('applicationInsightsName')), '2020-02-02').ConnectionString]" |
| 1461 | + }, |
1437 | 1462 | "projectConnectionString": { |
1438 | 1463 | "type": "string", |
1439 | 1464 | "value": "[format('{0};{1};{2};{3}', split(reference(resourceId('Microsoft.MachineLearningServices/workspaces', variables('aiProjectName')), '2024-01-01-preview').discoveryUrl, '/')[2], subscription().subscriptionId, resourceGroup().name, variables('aiProjectName'))]" |
|
0 commit comments