|
5 | 5 | "_generator": { |
6 | 6 | "name": "bicep", |
7 | 7 | "version": "0.34.44.8038", |
8 | | - "templateHash": "372840055428460103" |
| 8 | + "templateHash": "1388245659062904286" |
9 | 9 | } |
10 | 10 | }, |
11 | 11 | "parameters": { |
|
68 | 68 | "containerName": "appstorage", |
69 | 69 | "llmModel": "gpt-4o", |
70 | 70 | "storageSkuName": "Standard_LRS", |
71 | | - "storageContainerName": "[format('{0}cts', variables('ResourcePrefix'))]", |
| 71 | + "storageContainerName": "[format('{0}cast', variables('ResourcePrefix'))]", |
72 | 72 | "gptModelVersion": "2024-08-06", |
73 | 73 | "azureAiServicesName": "[format('{0}-ais', variables('ResourcePrefix'))]", |
74 | 74 | "aiModelDeployments": [ |
|
134 | 134 | { |
135 | 135 | "type": "Microsoft.App/containerApps", |
136 | 136 | "apiVersion": "2023-05-01", |
137 | | - "name": "[toLower(format('{0}Backend', variables('ResourcePrefix')))]", |
| 137 | + "name": "[toLower(format('{0}Bck-ca', variables('ResourcePrefix')))]", |
138 | 138 | "location": "[variables('location')]", |
139 | 139 | "identity": { |
140 | 140 | "type": "SystemAssigned" |
|
159 | 159 | "env": [ |
160 | 160 | { |
161 | 161 | "name": "COSMOSDB_ENDPOINT", |
162 | | - "value": "[reference(resourceId('Microsoft.Resources/deployments', toLower(format('{0}database', variables('ResourcePrefix')))), '2022-09-01').outputs.endpoint.value]" |
| 162 | + "value": "[reference(resourceId('Microsoft.Resources/deployments', toLower(format('{0}cosmos', variables('ResourcePrefix')))), '2022-09-01').outputs.endpoint.value]" |
163 | 163 | }, |
164 | 164 | { |
165 | 165 | "name": "COSMOSDB_DATABASE", |
|
229 | 229 | "dependsOn": [ |
230 | 230 | "[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry')]", |
231 | 231 | "[resourceId('Microsoft.Resources/deployments', toLower(format('{0}conAppsEnv', variables('ResourcePrefix'))))]", |
232 | | - "[resourceId('Microsoft.Resources/deployments', toLower(format('{0}database', variables('ResourcePrefix'))))]", |
| 232 | + "[resourceId('Microsoft.Resources/deployments', toLower(format('{0}cosmos', variables('ResourcePrefix'))))]", |
233 | 233 | "[resourceId('Microsoft.Storage/storageAccounts', variables('storageContainerName'))]" |
234 | 234 | ] |
235 | 235 | }, |
|
290 | 290 | "type": "Microsoft.Authorization/roleAssignments", |
291 | 291 | "apiVersion": "2022-04-01", |
292 | 292 | "scope": "[format('Microsoft.Storage/storageAccounts/{0}', variables('storageContainerName'))]", |
293 | | - "name": "[guid(resourceId('Microsoft.App/containerApps', toLower(format('{0}Backend', variables('ResourcePrefix')))), 'Storage Blob Data Contributor')]", |
| 293 | + "name": "[guid(resourceId('Microsoft.App/containerApps', toLower(format('{0}Bck-ca', variables('ResourcePrefix')))), 'Storage Blob Data Contributor')]", |
294 | 294 | "properties": { |
295 | 295 | "roleDefinitionId": "[subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'ba92f5b4-2d11-453d-a403-e96b0029c9fe')]", |
296 | | - "principalId": "[reference(resourceId('Microsoft.App/containerApps', toLower(format('{0}Backend', variables('ResourcePrefix')))), '2023-05-01', 'full').identity.principalId]" |
| 296 | + "principalId": "[reference(resourceId('Microsoft.App/containerApps', toLower(format('{0}Bck-ca', variables('ResourcePrefix')))), '2023-05-01', 'full').identity.principalId]" |
297 | 297 | }, |
298 | 298 | "dependsOn": [ |
299 | | - "[resourceId('Microsoft.App/containerApps', toLower(format('{0}Backend', variables('ResourcePrefix'))))]", |
| 299 | + "[resourceId('Microsoft.App/containerApps', toLower(format('{0}Bck-ca', variables('ResourcePrefix'))))]", |
300 | 300 | "[resourceId('Microsoft.Storage/storageAccounts', variables('storageContainerName'))]" |
301 | 301 | ] |
302 | 302 | }, |
303 | 303 | { |
304 | 304 | "type": "Microsoft.Authorization/roleAssignments", |
305 | 305 | "apiVersion": "2022-04-01", |
306 | 306 | "scope": "[format('Microsoft.CognitiveServices/accounts/{0}', variables('azureAiServicesName'))]", |
307 | | - "name": "[guid(resourceId('Microsoft.App/containerApps', toLower(format('{0}Backend', variables('ResourcePrefix')))), variables('openAiContributorRoleId'))]", |
| 307 | + "name": "[guid(resourceId('Microsoft.App/containerApps', toLower(format('{0}Bck-ca', variables('ResourcePrefix')))), variables('openAiContributorRoleId'))]", |
308 | 308 | "properties": { |
309 | 309 | "roleDefinitionId": "[subscriptionResourceId('Microsoft.Authorization/roleDefinitions', variables('openAiContributorRoleId'))]", |
310 | | - "principalId": "[reference(resourceId('Microsoft.App/containerApps', toLower(format('{0}Backend', variables('ResourcePrefix')))), '2023-05-01', 'full').identity.principalId]" |
| 310 | + "principalId": "[reference(resourceId('Microsoft.App/containerApps', toLower(format('{0}Bck-ca', variables('ResourcePrefix')))), '2023-05-01', 'full').identity.principalId]" |
311 | 311 | }, |
312 | 312 | "dependsOn": [ |
313 | 313 | "[resourceId('Microsoft.CognitiveServices/accounts', variables('azureAiServicesName'))]", |
314 | | - "[resourceId('Microsoft.App/containerApps', toLower(format('{0}Backend', variables('ResourcePrefix'))))]" |
| 314 | + "[resourceId('Microsoft.App/containerApps', toLower(format('{0}Bck-ca', variables('ResourcePrefix'))))]" |
315 | 315 | ] |
316 | 316 | }, |
317 | 317 | { |
|
354 | 354 | "_generator": { |
355 | 355 | "name": "bicep", |
356 | 356 | "version": "0.34.44.8038", |
357 | | - "templateHash": "15524749849693178338" |
| 357 | + "templateHash": "107965290127824528" |
358 | 358 | } |
359 | 359 | }, |
360 | 360 | "parameters": { |
|
374 | 374 | }, |
375 | 375 | "miName": { |
376 | 376 | "type": "string", |
377 | | - "defaultValue": "[format('{0}-mng-id', parameters('solutionName'))]", |
| 377 | + "defaultValue": "[format('{0}-id', parameters('solutionName'))]", |
378 | 378 | "metadata": { |
379 | 379 | "description": "Name" |
380 | 380 | } |
|
590 | 590 | "_generator": { |
591 | 591 | "name": "bicep", |
592 | 592 | "version": "0.34.44.8038", |
593 | | - "templateHash": "1990190368109519471" |
| 593 | + "templateHash": "9573081501419024290" |
594 | 594 | } |
595 | 595 | }, |
596 | 596 | "parameters": { |
|
623 | 623 | } |
624 | 624 | }, |
625 | 625 | "variables": { |
626 | | - "storageName": "[format('{0}hubstr', parameters('solutionName'))]", |
| 626 | + "storageName": "[format('{0}hubst', parameters('solutionName'))]", |
627 | 627 | "storageSkuName": "Standard_LRS", |
628 | 628 | "aiServicesName": "[format('{0}-ais', parameters('solutionName'))]", |
629 | | - "workspaceName": "[format('{0}-wrksp', parameters('solutionName'))]", |
| 629 | + "workspaceName": "[format('{0}-log', parameters('solutionName'))]", |
630 | 630 | "keyvaultName": "[format('{0}-kv', parameters('solutionName'))]", |
631 | 631 | "location": "[parameters('solutionLocation')]", |
632 | | - "aiHubName": "[format('{0}-aihub', parameters('solutionName'))]", |
633 | | - "aiHubFriendlyName": "[variables('aiHubName')]", |
| 632 | + "azureAiHubName": "[format('{0}-hub', parameters('solutionName'))]", |
| 633 | + "aiHubFriendlyName": "[variables('azureAiHubName')]", |
634 | 634 | "aiHubDescription": "AI Hub for KM template", |
635 | | - "aiProjectName": "[format('{0}-aiprj', parameters('solutionName'))]", |
| 635 | + "aiProjectName": "[format('{0}-prj', parameters('solutionName'))]", |
636 | 636 | "aiProjectFriendlyName": "[variables('aiProjectName')]", |
637 | 637 | "aiSearchName": "[format('{0}-srch', parameters('solutionName'))]", |
638 | 638 | "storageNameCleaned": "[replace(variables('storageName'), '-', '')]" |
|
641 | 641 | { |
642 | 642 | "type": "Microsoft.MachineLearningServices/workspaces/connections", |
643 | 643 | "apiVersion": "2024-07-01-preview", |
644 | | - "name": "[format('{0}/{1}', variables('aiHubName'), format('{0}-connection-AzureOpenAI', variables('aiHubName')))]", |
| 644 | + "name": "[format('{0}/{1}', variables('azureAiHubName'), format('{0}-connection-AzureOpenAI', variables('azureAiHubName')))]", |
645 | 645 | "properties": { |
646 | 646 | "category": "AIServices", |
647 | 647 | "target": "[parameters('aiServicesEndpoint')]", |
|
656 | 656 | } |
657 | 657 | }, |
658 | 658 | "dependsOn": [ |
659 | | - "[resourceId('Microsoft.MachineLearningServices/workspaces', variables('aiHubName'))]" |
| 659 | + "[resourceId('Microsoft.MachineLearningServices/workspaces', variables('azureAiHubName'))]" |
660 | 660 | ] |
661 | 661 | }, |
662 | 662 | { |
|
742 | 742 | { |
743 | 743 | "type": "Microsoft.MachineLearningServices/workspaces", |
744 | 744 | "apiVersion": "2023-08-01-preview", |
745 | | - "name": "[variables('aiHubName')]", |
| 745 | + "name": "[variables('azureAiHubName')]", |
746 | 746 | "location": "[variables('location')]", |
747 | 747 | "identity": { |
748 | 748 | "type": "SystemAssigned" |
|
769 | 769 | }, |
770 | 770 | "properties": { |
771 | 771 | "friendlyName": "[variables('aiProjectFriendlyName')]", |
772 | | - "hubResourceId": "[resourceId('Microsoft.MachineLearningServices/workspaces', variables('aiHubName'))]" |
| 772 | + "hubResourceId": "[resourceId('Microsoft.MachineLearningServices/workspaces', variables('azureAiHubName'))]" |
773 | 773 | }, |
774 | 774 | "dependsOn": [ |
775 | | - "[resourceId('Microsoft.MachineLearningServices/workspaces', variables('aiHubName'))]" |
| 775 | + "[resourceId('Microsoft.MachineLearningServices/workspaces', variables('azureAiHubName'))]" |
776 | 776 | ] |
777 | 777 | }, |
778 | 778 | { |
|
1571 | 1571 | { |
1572 | 1572 | "type": "Microsoft.Resources/deployments", |
1573 | 1573 | "apiVersion": "2022-09-01", |
1574 | | - "name": "[toLower(format('{0}database', variables('ResourcePrefix')))]", |
| 1574 | + "name": "[toLower(format('{0}cosmos', variables('ResourcePrefix')))]", |
1575 | 1575 | "properties": { |
1576 | 1576 | "expressionEvaluationOptions": { |
1577 | 1577 | "scope": "inner" |
1578 | 1578 | }, |
1579 | 1579 | "mode": "Incremental", |
1580 | 1580 | "parameters": { |
1581 | 1581 | "name": { |
1582 | | - "value": "[toLower(format('{0}databaseAccount', variables('ResourcePrefix')))]" |
| 1582 | + "value": "[toLower(format('{0}cosno', variables('ResourcePrefix')))]" |
1583 | 1583 | }, |
1584 | 1584 | "enableAnalyticalStorage": { |
1585 | 1585 | "value": true |
|
5387 | 5387 | { |
5388 | 5388 | "type": "Microsoft.Resources/deployments", |
5389 | 5389 | "apiVersion": "2022-09-01", |
5390 | | - "name": "[toLower(format('{0}Frontend', variables('ResourcePrefix')))]", |
| 5390 | + "name": "[toLower(format('{0}-Fnt-ca', variables('ResourcePrefix')))]", |
5391 | 5391 | "properties": { |
5392 | 5392 | "expressionEvaluationOptions": { |
5393 | 5393 | "scope": "inner" |
|
5408 | 5408 | "env": [ |
5409 | 5409 | { |
5410 | 5410 | "name": "API_URL", |
5411 | | - "value": "[format('https://{0}', reference(resourceId('Microsoft.App/containerApps', toLower(format('{0}Backend', variables('ResourcePrefix')))), '2023-05-01').configuration.ingress.fqdn)]" |
| 5411 | + "value": "[format('https://{0}', reference(resourceId('Microsoft.App/containerApps', toLower(format('{0}Bck-ca', variables('ResourcePrefix')))), '2023-05-01').configuration.ingress.fqdn)]" |
5412 | 5412 | } |
5413 | 5413 | ], |
5414 | 5414 | "image": "[format('cmsacontainerreg.azurecr.io/cmsafrontend:{0}', variables('imageVersion'))]", |
|
5436 | 5436 | "value": "[reference(resourceId('Microsoft.Resources/deployments', toLower(format('{0}conAppsEnv', variables('ResourcePrefix')))), '2022-09-01').outputs.resourceId.value]" |
5437 | 5437 | }, |
5438 | 5438 | "name": { |
5439 | | - "value": "[toLower(format('{0}Frontend', variables('ResourcePrefix')))]" |
| 5439 | + "value": "[toLower(format('{0}Fnt', variables('ResourcePrefix')))]" |
5440 | 5440 | }, |
5441 | 5441 | "location": { |
5442 | 5442 | "value": "[variables('location')]" |
|
6608 | 6608 | } |
6609 | 6609 | }, |
6610 | 6610 | "dependsOn": [ |
6611 | | - "[resourceId('Microsoft.App/containerApps', toLower(format('{0}Backend', variables('ResourcePrefix'))))]", |
| 6611 | + "[resourceId('Microsoft.App/containerApps', toLower(format('{0}Bck-ca', variables('ResourcePrefix'))))]", |
6612 | 6612 | "[resourceId('Microsoft.Resources/deployments', toLower(format('{0}conAppsEnv', variables('ResourcePrefix'))))]", |
6613 | 6613 | "[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_managed_identity')]" |
6614 | 6614 | ] |
|
6643 | 6643 | } |
6644 | 6644 | }, |
6645 | 6645 | "scriptContent": { |
6646 | | - "value": "[format('az cosmosdb sql role assignment create --resource-group \"{0}\" --account-name \"{1}\" --role-definition-id \"{2}\" --scope \"{3}\" --principal-id \"{4}\"', resourceGroup().name, reference(resourceId('Microsoft.Resources/deployments', toLower(format('{0}database', variables('ResourcePrefix')))), '2022-09-01').outputs.name.value, resourceId('Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions', split(format('{0}/00000000-0000-0000-0000-000000000002', toLower(format('{0}database', variables('ResourcePrefix')))), '/')[0], split(format('{0}/00000000-0000-0000-0000-000000000002', toLower(format('{0}database', variables('ResourcePrefix')))), '/')[1]), reference(resourceId('Microsoft.Resources/deployments', toLower(format('{0}database', variables('ResourcePrefix')))), '2022-09-01').outputs.resourceId.value, reference(resourceId('Microsoft.App/containerApps', toLower(format('{0}Backend', variables('ResourcePrefix')))), '2023-05-01', 'full').identity.principalId)]" |
| 6646 | + "value": "[format('az cosmosdb sql role assignment create --resource-group \"{0}\" --account-name \"{1}\" --role-definition-id \"{2}\" --scope \"{3}\" --principal-id \"{4}\"', resourceGroup().name, reference(resourceId('Microsoft.Resources/deployments', toLower(format('{0}cosmos', variables('ResourcePrefix')))), '2022-09-01').outputs.name.value, resourceId('Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions', split(format('{0}/00000000-0000-0000-0000-000000000002', toLower(format('{0}cosmos', variables('ResourcePrefix')))), '/')[0], split(format('{0}/00000000-0000-0000-0000-000000000002', toLower(format('{0}cosmos', variables('ResourcePrefix')))), '/')[1]), reference(resourceId('Microsoft.Resources/deployments', toLower(format('{0}cosmos', variables('ResourcePrefix')))), '2022-09-01').outputs.resourceId.value, reference(resourceId('Microsoft.App/containerApps', toLower(format('{0}Bck-ca', variables('ResourcePrefix')))), '2023-05-01', 'full').identity.principalId)]" |
6647 | 6647 | } |
6648 | 6648 | }, |
6649 | 6649 | "template": { |
|
7172 | 7172 | } |
7173 | 7173 | }, |
7174 | 7174 | "dependsOn": [ |
7175 | | - "[resourceId('Microsoft.App/containerApps', toLower(format('{0}Backend', variables('ResourcePrefix'))))]", |
7176 | | - "[resourceId('Microsoft.Resources/deployments', toLower(format('{0}database', variables('ResourcePrefix'))))]", |
| 7175 | + "[resourceId('Microsoft.App/containerApps', toLower(format('{0}Bck-ca', variables('ResourcePrefix'))))]", |
| 7176 | + "[resourceId('Microsoft.Resources/deployments', toLower(format('{0}cosmos', variables('ResourcePrefix'))))]", |
7177 | 7177 | "[extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_managed_identity')]" |
7178 | 7178 | ] |
7179 | 7179 | } |
|
0 commit comments