|
5 | 5 | "_generator": { |
6 | 6 | "name": "bicep", |
7 | 7 | "version": "0.34.44.8038", |
8 | | - "templateHash": "9069472348906461560" |
| 8 | + "templateHash": "11801658341418670293" |
9 | 9 | } |
10 | 10 | }, |
11 | 11 | "parameters": { |
|
711 | 711 | "_generator": { |
712 | 712 | "name": "bicep", |
713 | 713 | "version": "0.34.44.8038", |
714 | | - "templateHash": "5261858450796622588" |
| 714 | + "templateHash": "3569608512312433081" |
715 | 715 | } |
716 | 716 | }, |
717 | 717 | "parameters": { |
|
1292 | 1292 | "dependsOn": [ |
1293 | 1293 | "[resourceId('Microsoft.MachineLearningServices/workspaces', variables('aiHubName'))]" |
1294 | 1294 | ] |
| 1295 | + }, |
| 1296 | + { |
| 1297 | + "type": "Microsoft.KeyVault/vaults/secrets", |
| 1298 | + "apiVersion": "2021-11-01-preview", |
| 1299 | + "name": "[format('{0}/{1}', parameters('keyVaultName'), 'TENANT-ID')]", |
| 1300 | + "properties": { |
| 1301 | + "value": "[subscription().tenantId]" |
| 1302 | + } |
| 1303 | + }, |
| 1304 | + { |
| 1305 | + "type": "Microsoft.KeyVault/vaults/secrets", |
| 1306 | + "apiVersion": "2021-11-01-preview", |
| 1307 | + "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-OPENAI-KEY')]", |
| 1308 | + "properties": { |
| 1309 | + "value": "[listKeys(resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName')), '2021-10-01').key1]" |
| 1310 | + }, |
| 1311 | + "dependsOn": [ |
| 1312 | + "[resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName'))]" |
| 1313 | + ] |
| 1314 | + }, |
| 1315 | + { |
| 1316 | + "type": "Microsoft.KeyVault/vaults/secrets", |
| 1317 | + "apiVersion": "2021-11-01-preview", |
| 1318 | + "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-OPEN-AI-DEPLOYMENT-MODEL')]", |
| 1319 | + "properties": { |
| 1320 | + "value": "[parameters('gptModelName')]" |
| 1321 | + } |
| 1322 | + }, |
| 1323 | + { |
| 1324 | + "type": "Microsoft.KeyVault/vaults/secrets", |
| 1325 | + "apiVersion": "2021-11-01-preview", |
| 1326 | + "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-OPENAI-PREVIEW-API-VERSION')]", |
| 1327 | + "properties": { |
| 1328 | + "value": "[parameters('azureOpenaiAPIVersion')]" |
| 1329 | + } |
| 1330 | + }, |
| 1331 | + { |
| 1332 | + "type": "Microsoft.KeyVault/vaults/secrets", |
| 1333 | + "apiVersion": "2021-11-01-preview", |
| 1334 | + "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-OPENAI-ENDPOINT')]", |
| 1335 | + "properties": { |
| 1336 | + "value": "[reference(resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName')), '2021-10-01').endpoint]" |
| 1337 | + }, |
| 1338 | + "dependsOn": [ |
| 1339 | + "[resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName'))]" |
| 1340 | + ] |
| 1341 | + }, |
| 1342 | + { |
| 1343 | + "type": "Microsoft.KeyVault/vaults/secrets", |
| 1344 | + "apiVersion": "2021-11-01-preview", |
| 1345 | + "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-AI-PROJECT-CONN-STRING')]", |
| 1346 | + "properties": { |
| 1347 | + "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'))]" |
| 1348 | + }, |
| 1349 | + "dependsOn": [ |
| 1350 | + "[resourceId('Microsoft.MachineLearningServices/workspaces', variables('aiProjectName'))]" |
| 1351 | + ] |
| 1352 | + }, |
| 1353 | + { |
| 1354 | + "type": "Microsoft.KeyVault/vaults/secrets", |
| 1355 | + "apiVersion": "2021-11-01-preview", |
| 1356 | + "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-SEARCH-KEY')]", |
| 1357 | + "properties": { |
| 1358 | + "value": "[listAdminKeys(resourceId('Microsoft.Search/searchServices', variables('aiSearchName')), '2023-11-01').primaryKey]" |
| 1359 | + }, |
| 1360 | + "dependsOn": [ |
| 1361 | + "[resourceId('Microsoft.Search/searchServices', variables('aiSearchName'))]" |
| 1362 | + ] |
| 1363 | + }, |
| 1364 | + { |
| 1365 | + "type": "Microsoft.KeyVault/vaults/secrets", |
| 1366 | + "apiVersion": "2021-11-01-preview", |
| 1367 | + "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-SEARCH-ENDPOINT')]", |
| 1368 | + "properties": { |
| 1369 | + "value": "[format('https://{0}.search.windows.net', variables('aiSearchName'))]" |
| 1370 | + }, |
| 1371 | + "dependsOn": [ |
| 1372 | + "[resourceId('Microsoft.Search/searchServices', variables('aiSearchName'))]" |
| 1373 | + ] |
| 1374 | + }, |
| 1375 | + { |
| 1376 | + "type": "Microsoft.KeyVault/vaults/secrets", |
| 1377 | + "apiVersion": "2021-11-01-preview", |
| 1378 | + "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-SEARCH-SERVICE')]", |
| 1379 | + "properties": { |
| 1380 | + "value": "[variables('aiSearchName')]" |
| 1381 | + }, |
| 1382 | + "dependsOn": [ |
| 1383 | + "[resourceId('Microsoft.Search/searchServices', variables('aiSearchName'))]" |
| 1384 | + ] |
| 1385 | + }, |
| 1386 | + { |
| 1387 | + "type": "Microsoft.KeyVault/vaults/secrets", |
| 1388 | + "apiVersion": "2021-11-01-preview", |
| 1389 | + "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-SEARCH-INDEX')]", |
| 1390 | + "properties": { |
| 1391 | + "value": "transcripts_index" |
| 1392 | + } |
| 1393 | + }, |
| 1394 | + { |
| 1395 | + "type": "Microsoft.KeyVault/vaults/secrets", |
| 1396 | + "apiVersion": "2021-11-01-preview", |
| 1397 | + "name": "[format('{0}/{1}', parameters('keyVaultName'), 'COG-SERVICES-ENDPOINT')]", |
| 1398 | + "properties": { |
| 1399 | + "value": "[reference(resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName')), '2021-10-01').endpoint]" |
| 1400 | + }, |
| 1401 | + "dependsOn": [ |
| 1402 | + "[resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName'))]" |
| 1403 | + ] |
| 1404 | + }, |
| 1405 | + { |
| 1406 | + "type": "Microsoft.KeyVault/vaults/secrets", |
| 1407 | + "apiVersion": "2021-11-01-preview", |
| 1408 | + "name": "[format('{0}/{1}', parameters('keyVaultName'), 'COG-SERVICES-KEY')]", |
| 1409 | + "properties": { |
| 1410 | + "value": "[listKeys(resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName')), '2021-10-01').key1]" |
| 1411 | + }, |
| 1412 | + "dependsOn": [ |
| 1413 | + "[resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName'))]" |
| 1414 | + ] |
| 1415 | + }, |
| 1416 | + { |
| 1417 | + "type": "Microsoft.KeyVault/vaults/secrets", |
| 1418 | + "apiVersion": "2021-11-01-preview", |
| 1419 | + "name": "[format('{0}/{1}', parameters('keyVaultName'), 'COG-SERVICES-NAME')]", |
| 1420 | + "properties": { |
| 1421 | + "value": "[variables('aiServicesName')]" |
| 1422 | + } |
| 1423 | + }, |
| 1424 | + { |
| 1425 | + "type": "Microsoft.KeyVault/vaults/secrets", |
| 1426 | + "apiVersion": "2021-11-01-preview", |
| 1427 | + "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-SUBSCRIPTION-ID')]", |
| 1428 | + "properties": { |
| 1429 | + "value": "[subscription().subscriptionId]" |
| 1430 | + } |
| 1431 | + }, |
| 1432 | + { |
| 1433 | + "type": "Microsoft.KeyVault/vaults/secrets", |
| 1434 | + "apiVersion": "2021-11-01-preview", |
| 1435 | + "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-RESOURCE-GROUP')]", |
| 1436 | + "properties": { |
| 1437 | + "value": "[resourceGroup().name]" |
| 1438 | + } |
| 1439 | + }, |
| 1440 | + { |
| 1441 | + "type": "Microsoft.KeyVault/vaults/secrets", |
| 1442 | + "apiVersion": "2021-11-01-preview", |
| 1443 | + "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-LOCATION')]", |
| 1444 | + "properties": { |
| 1445 | + "value": "[parameters('solutionLocation')]" |
| 1446 | + } |
1295 | 1447 | } |
1296 | 1448 | ], |
1297 | 1449 | "outputs": { |
|
1735 | 1887 | "_generator": { |
1736 | 1888 | "name": "bicep", |
1737 | 1889 | "version": "0.34.44.8038", |
1738 | | - "templateHash": "4594074647868199313" |
| 1890 | + "templateHash": "4179944107717925300" |
1739 | 1891 | } |
1740 | 1892 | }, |
1741 | 1893 | "parameters": { |
|
1752 | 1904 | "type": "string" |
1753 | 1905 | }, |
1754 | 1906 | "serverName": { |
1755 | | - "type": "securestring", |
| 1907 | + "type": "string", |
1756 | 1908 | "metadata": { |
1757 | 1909 | "description": "The name of the SQL logical server." |
1758 | 1910 | } |
1759 | 1911 | }, |
1760 | 1912 | "sqlDBName": { |
1761 | | - "type": "securestring", |
| 1913 | + "type": "string", |
1762 | 1914 | "metadata": { |
1763 | 1915 | "description": "The name of the SQL Database." |
1764 | 1916 | } |
|
1888 | 2040 | "outputs": { |
1889 | 2041 | "sqlServerName": { |
1890 | 2042 | "type": "string", |
1891 | | - "value": "[format('{0}.database.windows.net', parameters('serverName'))]" |
| 2043 | + "value": "[parameters('serverName')]" |
1892 | 2044 | }, |
1893 | 2045 | "sqlDbName": { |
1894 | 2046 | "type": "string", |
1895 | 2047 | "value": "[parameters('sqlDBName')]" |
1896 | | - }, |
1897 | | - "sqlDbUser": { |
1898 | | - "type": "string", |
1899 | | - "value": "[parameters('administratorLogin')]" |
1900 | 2048 | } |
1901 | 2049 | } |
1902 | 2050 | } |
|
2035 | 2183 | "value": "True" |
2036 | 2184 | }, |
2037 | 2185 | "SQLDB_SERVER": { |
2038 | | - "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db'), '2022-09-01').outputs.sqlServerName.value]" |
| 2186 | + "value": "[format('{0}.database.windows.net', reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db'), '2022-09-01').outputs.sqlServerName.value)]" |
2039 | 2187 | }, |
2040 | 2188 | "SQLDB_DATABASE": { |
2041 | 2189 | "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db'), '2022-09-01').outputs.sqlDbName.value]" |
2042 | 2190 | }, |
2043 | 2191 | "SQLDB_USERNAME": { |
2044 | | - "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db'), '2022-09-01').outputs.sqlDbUser.value]" |
| 2192 | + "value": "sqladmin" |
2045 | 2193 | }, |
2046 | 2194 | "SQLDB_PASSWORD": { |
2047 | 2195 | "reference": { |
|
2887 | 3035 | }, |
2888 | 3036 | "SQLDB_SERVER": { |
2889 | 3037 | "type": "string", |
2890 | | - "value": "[replace(reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db'), '2022-09-01').outputs.sqlServerName.value, '.database.windows.net', '')]" |
| 3038 | + "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db'), '2022-09-01').outputs.sqlServerName.value]" |
2891 | 3039 | }, |
2892 | 3040 | "SQLDB_DATABASE": { |
2893 | 3041 | "type": "string", |
|
0 commit comments