|
5 | 5 | "_generator": { |
6 | 6 | "name": "bicep", |
7 | 7 | "version": "0.34.44.8038", |
8 | | - "templateHash": "14103938519671400586" |
| 8 | + "templateHash": "17985360808056860425" |
9 | 9 | } |
10 | 10 | }, |
11 | 11 | "parameters": { |
|
21 | 21 | "type": "string", |
22 | 22 | "defaultValue": "EastUs2", |
23 | 23 | "metadata": { |
24 | | - "description": "Location used for Cosmos DB, Container App deployment" |
| 24 | + "description": "Location used for Azure Cosmos DB, Azure Container App deployment" |
25 | 25 | } |
26 | 26 | }, |
27 | 27 | "contentUnderstandingLocation": { |
|
35 | 35 | "azd": { |
36 | 36 | "type": "location" |
37 | 37 | }, |
38 | | - "description": "Location for the Content Understanding service deployment:" |
| 38 | + "description": "Location for the Azure AI Content Understanding service deployment:" |
39 | 39 | }, |
40 | 40 | "minLength": 1 |
41 | 41 | }, |
|
362 | 362 | "solutionPrefix": "[format('cps-{0}', padLeft(take(variables('uniqueId'), 12), 12, '0'))]", |
363 | 363 | "containerImageEndPoint": "cpscontainerreg.azurecr.io", |
364 | 364 | "resourceGroupLocation": "[resourceGroup().location]", |
365 | | - "abbrs": "[variables('$fxv#0')]" |
| 365 | + "abbrs": "[variables('$fxv#0')]", |
| 366 | + "useLocalBuildLower": "[toLower(parameters('useLocalBuild'))]" |
366 | 367 | }, |
367 | 368 | "resources": [ |
368 | 369 | { |
|
934 | 935 | "_generator": { |
935 | 936 | "name": "bicep", |
936 | 937 | "version": "0.34.44.8038", |
937 | | - "templateHash": "13228064894943437182" |
| 938 | + "templateHash": "6622167858340258597" |
938 | 939 | } |
939 | 940 | }, |
940 | 941 | "parameters": { |
|
1432 | 1433 | "dependsOn": [ |
1433 | 1434 | "[resourceId('Microsoft.MachineLearningServices/workspaces', variables('aiHubName'))]" |
1434 | 1435 | ] |
1435 | | - }, |
1436 | | - { |
1437 | | - "type": "Microsoft.KeyVault/vaults/secrets", |
1438 | | - "apiVersion": "2021-11-01-preview", |
1439 | | - "name": "[format('{0}/{1}', parameters('keyVaultName'), 'TENANT-ID')]", |
1440 | | - "properties": { |
1441 | | - "value": "[subscription().tenantId]" |
1442 | | - } |
1443 | | - }, |
1444 | | - { |
1445 | | - "type": "Microsoft.KeyVault/vaults/secrets", |
1446 | | - "apiVersion": "2021-11-01-preview", |
1447 | | - "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-OPENAI-KEY')]", |
1448 | | - "properties": { |
1449 | | - "value": "[listKeys(resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName')), '2021-10-01').key1]" |
1450 | | - }, |
1451 | | - "dependsOn": [ |
1452 | | - "[resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName'))]" |
1453 | | - ] |
1454 | | - }, |
1455 | | - { |
1456 | | - "type": "Microsoft.KeyVault/vaults/secrets", |
1457 | | - "apiVersion": "2021-11-01-preview", |
1458 | | - "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-OPEN-AI-DEPLOYMENT-MODEL')]", |
1459 | | - "properties": { |
1460 | | - "value": "[parameters('gptModelName')]" |
1461 | | - } |
1462 | | - }, |
1463 | | - { |
1464 | | - "type": "Microsoft.KeyVault/vaults/secrets", |
1465 | | - "apiVersion": "2021-11-01-preview", |
1466 | | - "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-OPENAI-PREVIEW-API-VERSION')]", |
1467 | | - "properties": { |
1468 | | - "value": "[parameters('gptModelVersion')]" |
1469 | | - } |
1470 | | - }, |
1471 | | - { |
1472 | | - "type": "Microsoft.KeyVault/vaults/secrets", |
1473 | | - "apiVersion": "2021-11-01-preview", |
1474 | | - "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-OPENAI-ENDPOINT')]", |
1475 | | - "properties": { |
1476 | | - "value": "[reference(resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName')), '2021-10-01').endpoint]" |
1477 | | - }, |
1478 | | - "dependsOn": [ |
1479 | | - "[resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName'))]" |
1480 | | - ] |
1481 | | - }, |
1482 | | - { |
1483 | | - "type": "Microsoft.KeyVault/vaults/secrets", |
1484 | | - "apiVersion": "2021-11-01-preview", |
1485 | | - "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-AI-PROJECT-CONN-STRING')]", |
1486 | | - "properties": { |
1487 | | - "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'))]" |
1488 | | - }, |
1489 | | - "dependsOn": [ |
1490 | | - "[resourceId('Microsoft.MachineLearningServices/workspaces', variables('aiProjectName'))]" |
1491 | | - ] |
1492 | | - }, |
1493 | | - { |
1494 | | - "type": "Microsoft.KeyVault/vaults/secrets", |
1495 | | - "apiVersion": "2021-11-01-preview", |
1496 | | - "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-OPENAI-CU-ENDPOINT')]", |
1497 | | - "properties": { |
1498 | | - "value": "[reference(resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName_cu')), '2021-10-01').endpoint]" |
1499 | | - }, |
1500 | | - "dependsOn": [ |
1501 | | - "[resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName_cu'))]" |
1502 | | - ] |
1503 | | - }, |
1504 | | - { |
1505 | | - "type": "Microsoft.KeyVault/vaults/secrets", |
1506 | | - "apiVersion": "2021-11-01-preview", |
1507 | | - "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-OPENAI-CU-KEY')]", |
1508 | | - "properties": { |
1509 | | - "value": "[listKeys(resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName_cu')), '2021-10-01').key1]" |
1510 | | - }, |
1511 | | - "dependsOn": [ |
1512 | | - "[resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName_cu'))]" |
1513 | | - ] |
1514 | | - }, |
1515 | | - { |
1516 | | - "type": "Microsoft.KeyVault/vaults/secrets", |
1517 | | - "apiVersion": "2021-11-01-preview", |
1518 | | - "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-OPENAI-CU-VERSION')]", |
1519 | | - "properties": { |
1520 | | - "value": "?api-version=2024-12-01-preview" |
1521 | | - } |
1522 | | - }, |
1523 | | - { |
1524 | | - "type": "Microsoft.KeyVault/vaults/secrets", |
1525 | | - "apiVersion": "2021-11-01-preview", |
1526 | | - "name": "[format('{0}/{1}', parameters('keyVaultName'), 'COG-SERVICES-ENDPOINT')]", |
1527 | | - "properties": { |
1528 | | - "value": "[reference(resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName')), '2021-10-01').endpoint]" |
1529 | | - }, |
1530 | | - "dependsOn": [ |
1531 | | - "[resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName'))]" |
1532 | | - ] |
1533 | | - }, |
1534 | | - { |
1535 | | - "type": "Microsoft.KeyVault/vaults/secrets", |
1536 | | - "apiVersion": "2021-11-01-preview", |
1537 | | - "name": "[format('{0}/{1}', parameters('keyVaultName'), 'COG-SERVICES-KEY')]", |
1538 | | - "properties": { |
1539 | | - "value": "[listKeys(resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName')), '2021-10-01').key1]" |
1540 | | - }, |
1541 | | - "dependsOn": [ |
1542 | | - "[resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName'))]" |
1543 | | - ] |
1544 | | - }, |
1545 | | - { |
1546 | | - "type": "Microsoft.KeyVault/vaults/secrets", |
1547 | | - "apiVersion": "2021-11-01-preview", |
1548 | | - "name": "[format('{0}/{1}', parameters('keyVaultName'), 'COG-SERVICES-NAME')]", |
1549 | | - "properties": { |
1550 | | - "value": "[variables('aiServicesName')]" |
1551 | | - } |
1552 | | - }, |
1553 | | - { |
1554 | | - "type": "Microsoft.KeyVault/vaults/secrets", |
1555 | | - "apiVersion": "2021-11-01-preview", |
1556 | | - "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-SUBSCRIPTION-ID')]", |
1557 | | - "properties": { |
1558 | | - "value": "[subscription().subscriptionId]" |
1559 | | - } |
1560 | | - }, |
1561 | | - { |
1562 | | - "type": "Microsoft.KeyVault/vaults/secrets", |
1563 | | - "apiVersion": "2021-11-01-preview", |
1564 | | - "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-RESOURCE-GROUP')]", |
1565 | | - "properties": { |
1566 | | - "value": "[resourceGroup().name]" |
1567 | | - } |
1568 | | - }, |
1569 | | - { |
1570 | | - "type": "Microsoft.KeyVault/vaults/secrets", |
1571 | | - "apiVersion": "2021-11-01-preview", |
1572 | | - "name": "[format('{0}/{1}', parameters('keyVaultName'), 'AZURE-LOCATION')]", |
1573 | | - "properties": { |
1574 | | - "value": "[parameters('solutionLocation')]" |
1575 | | - } |
1576 | 1436 | } |
1577 | 1437 | ], |
1578 | 1438 | "outputs": { |
|
1795 | 1655 | "_generator": { |
1796 | 1656 | "name": "bicep", |
1797 | 1657 | "version": "0.34.44.8038", |
1798 | | - "templateHash": "15388289119319771934" |
| 1658 | + "templateHash": "15815884747026956332" |
1799 | 1659 | } |
1800 | 1660 | }, |
1801 | 1661 | "parameters": { |
|
2546 | 2406 | { |
2547 | 2407 | "name": "APP_MSAL_TOKEN_SCOPE", |
2548 | 2408 | "value": "<BACKEND_API_SCOPE>" |
| 2409 | + }, |
| 2410 | + { |
| 2411 | + "name": "APP_ISLOGS_ENABLED", |
| 2412 | + "value": "false" |
2549 | 2413 | } |
2550 | 2414 | ] |
2551 | 2415 | }, |
|
3269 | 3133 | "location": { |
3270 | 3134 | "value": "[parameters('secondaryLocation')]" |
3271 | 3135 | }, |
3272 | | - "azureContainerRegistry": "[if(equals(parameters('useLocalBuild'), 'true'), createObject('value', reference(resourceId('Microsoft.Resources/deployments', 'deploy_container_registry'), '2022-09-01').outputs.acrEndpoint.value), createObject('value', variables('containerImageEndPoint')))]", |
| 3136 | + "azureContainerRegistry": "[if(equals(variables('useLocalBuildLower'), 'true'), createObject('value', reference(resourceId('Microsoft.Resources/deployments', 'deploy_container_registry'), '2022-09-01').outputs.acrEndpoint.value), createObject('value', variables('containerImageEndPoint')))]", |
3273 | 3137 | "appConfigEndPoint": { |
3274 | 3138 | "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_app_config_service'), '2022-09-01').outputs.appConfigEndpoint.value]" |
3275 | 3139 | }, |
|
3304 | 3168 | "value": "[parameters('maxReplicaContainerWeb')]" |
3305 | 3169 | }, |
3306 | 3170 | "useLocalBuild": { |
3307 | | - "value": "[parameters('useLocalBuild')]" |
| 3171 | + "value": "[variables('useLocalBuildLower')]" |
3308 | 3172 | } |
3309 | 3173 | }, |
3310 | 3174 | "template": { |
|
3314 | 3178 | "_generator": { |
3315 | 3179 | "name": "bicep", |
3316 | 3180 | "version": "0.34.44.8038", |
3317 | | - "templateHash": "15388289119319771934" |
| 3181 | + "templateHash": "15815884747026956332" |
3318 | 3182 | } |
3319 | 3183 | }, |
3320 | 3184 | "parameters": { |
|
4065 | 3929 | { |
4066 | 3930 | "name": "APP_MSAL_TOKEN_SCOPE", |
4067 | 3931 | "value": "<BACKEND_API_SCOPE>" |
| 3932 | + }, |
| 3933 | + { |
| 3934 | + "name": "APP_ISLOGS_ENABLED", |
| 3935 | + "value": "false" |
4068 | 3936 | } |
4069 | 3937 | ] |
4070 | 3938 | }, |
|
0 commit comments