|
6 | 6 | "_generator": { |
7 | 7 | "name": "bicep", |
8 | 8 | "version": "0.44.1.10279", |
9 | | - "templateHash": "10080544909430391861" |
| 9 | + "templateHash": "15518088603134439540" |
10 | 10 | }, |
11 | 11 | "name": "Multi-Agent Custom Automation Engine - AVM", |
12 | 12 | "description": "AVM orchestrator for the Multi-Agent Custom Automation Engine accelerator. Deploys the same logical resources and preserves the same outputs as infra\\main.bicep using local AVM wrapper modules." |
|
467 | 467 | "[parameters('gptImageModelName')]" |
468 | 468 | ], |
469 | 469 | "containerAppName": "[format('ca-{0}', variables('solutionSuffix'))]", |
| 470 | + "backendUsesBootstrapImage": "[and(equals(toLower(parameters('backendContainerRegistryHostname')), 'mcr.microsoft.com'), equals(toLower(parameters('backendContainerImageName')), 'azuredocs/containerapps-helloworld'))]", |
| 471 | + "mcpUsesBootstrapImage": "[and(equals(toLower(parameters('MCPContainerRegistryHostname')), 'mcr.microsoft.com'), equals(toLower(parameters('MCPContainerImageName')), 'azuredocs/containerapps-helloworld'))]", |
470 | 472 | "privateDnsZones": [ |
471 | 473 | "privatelink.cognitiveservices.azure.com", |
472 | 474 | "privatelink.openai.azure.com", |
|
687 | 689 | "aiSearchIndexNameForRFPSummary": "macae-rfp-summary-index", |
688 | 690 | "aiSearchIndexNameForRFPRisk": "macae-rfp-risk-index", |
689 | 691 | "aiSearchIndexNameForRFPCompliance": "macae-rfp-compliance-index", |
690 | | - "virtualMachineAvailabilityZone": 1, |
| 692 | + "virtualMachineAvailabilityZone": -1, |
691 | 693 | "aiFoundryOpenAIEndpoint": "[format('https://{0}.openai.azure.com/', variables('aiFoundryAiServicesResourceName'))]" |
692 | 694 | }, |
693 | 695 | "resources": { |
|
28583 | 28585 | "_generator": { |
28584 | 28586 | "name": "bicep", |
28585 | 28587 | "version": "0.44.1.10279", |
28586 | | - "templateHash": "10180502016624897684" |
| 28588 | + "templateHash": "13733831222630151234" |
28587 | 28589 | } |
28588 | 28590 | }, |
28589 | 28591 | "parameters": { |
|
28609 | 28611 | "modelName": { |
28610 | 28612 | "type": "string", |
28611 | 28613 | "metadata": { |
28612 | | - "description": "Required. Model name (e.g., gpt-4o, text-embedding-ada-002)." |
| 28614 | + "description": "Required. Model name (e.g., gpt-5.4-mini, text-embedding-ada-002)." |
28613 | 28615 | } |
28614 | 28616 | }, |
28615 | 28617 | "modelVersion": { |
|
54859 | 54861 | "ingressExternal": { |
54860 | 54862 | "value": true |
54861 | 54863 | }, |
54862 | | - "ingressTargetPort": { |
54863 | | - "value": 8000 |
54864 | | - }, |
| 54864 | + "ingressTargetPort": "[if(variables('backendUsesBootstrapImage'), createObject('value', 80), createObject('value', 8000))]", |
54865 | 54865 | "ingressAllowInsecure": { |
54866 | 54866 | "value": false |
54867 | 54867 | }, |
|
54875 | 54875 | ] |
54876 | 54876 | } |
54877 | 54877 | }, |
54878 | | - "registries": { |
54879 | | - "value": [ |
54880 | | - { |
54881 | | - "server": "[if(variables('useExistingContainerRegistry'), format('{0}.azurecr.io', variables('existingContainerRegistryName')), reference('container_registry').outputs.loginServer.value)]", |
54882 | | - "identity": "[reference('managed_identity').outputs.resourceId.value]" |
54883 | | - } |
54884 | | - ] |
54885 | | - }, |
| 54878 | + "registries": "[if(variables('backendUsesBootstrapImage'), createObject('value', null()), createObject('value', createArray(createObject('server', if(variables('useExistingContainerRegistry'), format('{0}.azurecr.io', variables('existingContainerRegistryName')), reference('container_registry').outputs.loginServer.value), 'identity', reference('managed_identity').outputs.resourceId.value))))]", |
54886 | 54879 | "corsPolicy": { |
54887 | 54880 | "value": { |
54888 | 54881 | "allowedOrigins": [ |
|
56862 | 56855 | "ingressExternal": { |
56863 | 56856 | "value": true |
56864 | 56857 | }, |
56865 | | - "ingressTargetPort": { |
56866 | | - "value": 9000 |
56867 | | - }, |
| 56858 | + "ingressTargetPort": "[if(variables('mcpUsesBootstrapImage'), createObject('value', 80), createObject('value', 9000))]", |
56868 | 56859 | "ingressAllowInsecure": { |
56869 | 56860 | "value": false |
56870 | 56861 | }, |
|
56878 | 56869 | ] |
56879 | 56870 | } |
56880 | 56871 | }, |
56881 | | - "registries": { |
56882 | | - "value": [ |
56883 | | - { |
56884 | | - "server": "[if(variables('useExistingContainerRegistry'), format('{0}.azurecr.io', variables('existingContainerRegistryName')), reference('container_registry').outputs.loginServer.value)]", |
56885 | | - "identity": "[reference('managed_identity').outputs.resourceId.value]" |
56886 | | - } |
56887 | | - ] |
56888 | | - }, |
| 56872 | + "registries": "[if(variables('mcpUsesBootstrapImage'), createObject('value', null()), createObject('value', createArray(createObject('server', if(variables('useExistingContainerRegistry'), format('{0}.azurecr.io', variables('existingContainerRegistryName')), reference('container_registry').outputs.loginServer.value), 'identity', reference('managed_identity').outputs.resourceId.value))))]", |
56889 | 56873 | "corsPolicy": { |
56890 | 56874 | "value": { |
56891 | 56875 | "allowedOrigins": [ |
@@ -56966,10 +56950,18 @@ |
56966 | 56950 | "name": "AZURE_OPENAI_IMAGE_DEPLOYMENT", |
56967 | 56951 | "value": "[parameters('gptImageModelName')]" |
56968 | 56952 | }, |
| 56953 | + { |
| 56954 | + "name": "AZURE_OPENAI_IMAGE_QUALITY", |
| 56955 | + "value": "high" |
| 56956 | + }, |
56969 | 56957 | { |
56970 | 56958 | "name": "AZURE_STORAGE_BLOB_URL", |
56971 | 56959 | "value": "[reference('storage_account').outputs.blobEndpoint.value]" |
56972 | 56960 | }, |
| 56961 | + { |
| 56962 | + "name": "AZURE_STORAGE_IMAGES_CONTAINER", |
| 56963 | + "value": "generated-images" |
| 56964 | + }, |
56973 | 56965 | { |
56974 | 56966 | "name": "BACKEND_URL", |
56975 | 56967 | "value": "[format('https://{0}.{1}', variables('containerAppName'), reference('containerAppEnvironment').outputs.defaultDomain.value)]" |
@@ -59690,14 +59682,19 @@ |
59690 | 59682 | "value": { |
59691 | 59683 | "SCM_DO_BUILD_DURING_DEPLOYMENT": "true", |
59692 | 59684 | "DOCKER_REGISTRY_SERVER_URL": "[format('https://{0}', if(variables('useExistingContainerRegistry'), format('{0}.azurecr.io', variables('existingContainerRegistryName')), reference('container_registry').outputs.loginServer.value))]", |
59693 | | - "WEBSITES_PORT": "3000", |
59694 | 59685 | "WEBSITES_CONTAINER_START_TIME_LIMIT": "1800", |
59695 | 59686 | "BACKEND_API_URL": "[format('https://{0}', reference('containerApp').outputs.fqdn.value)]", |
59696 | 59687 | "AUTH_ENABLED": "false", |
59697 | 59688 | "PROXY_API_REQUESTS": "[if(parameters('enablePrivateNetworking'), 'true', 'false')]" |
59698 | 59689 | } |
59699 | 59690 | }, |
59700 | 59691 | "virtualNetworkSubnetId": "[if(parameters('enablePrivateNetworking'), createObject('value', reference('virtualNetwork').outputs.webserverfarmSubnetResourceId.value), createObject('value', ''))]", |
| 59692 | + "vnetRouteAllEnabled": { |
| 59693 | + "value": "[parameters('enablePrivateNetworking')]" |
| 59694 | + }, |
| 59695 | + "imagePullTraffic": { |
| 59696 | + "value": "[parameters('enablePrivateNetworking')]" |
| 59697 | + }, |
59701 | 59698 | "publicNetworkAccess": { |
59702 | 59699 | "value": "Enabled" |
59703 | 59700 | }, |
|
59712 | 59709 | "_generator": { |
59713 | 59710 | "name": "bicep", |
59714 | 59711 | "version": "0.44.1.10279", |
59715 | | - "templateHash": "9621160936099183182" |
| 59712 | + "templateHash": "9504607717010385151" |
59716 | 59713 | } |
59717 | 59714 | }, |
59718 | 59715 | "definitions": { |
|
60250 | 60247 | } |
60251 | 60248 | }, |
60252 | 60249 | "resources": { |
| 60250 | + "site": { |
| 60251 | + "existing": true, |
| 60252 | + "type": "Microsoft.Web/sites", |
| 60253 | + "apiVersion": "2025-03-01", |
| 60254 | + "name": "[parameters('name')]" |
| 60255 | + }, |
| 60256 | + "logsConfig": { |
| 60257 | + "type": "Microsoft.Web/sites/config", |
| 60258 | + "apiVersion": "2025-03-01", |
| 60259 | + "name": "[format('{0}/{1}', parameters('name'), 'logs')]", |
| 60260 | + "properties": { |
| 60261 | + "applicationLogs": { |
| 60262 | + "fileSystem": { |
| 60263 | + "level": "Verbose" |
| 60264 | + } |
| 60265 | + }, |
| 60266 | + "detailedErrorMessages": { |
| 60267 | + "enabled": true |
| 60268 | + }, |
| 60269 | + "failedRequestsTracing": { |
| 60270 | + "enabled": true |
| 60271 | + }, |
| 60272 | + "httpLogs": { |
| 60273 | + "fileSystem": { |
| 60274 | + "enabled": true, |
| 60275 | + "retentionInDays": 1, |
| 60276 | + "retentionInMb": 35 |
| 60277 | + } |
| 60278 | + } |
| 60279 | + }, |
| 60280 | + "dependsOn": [ |
| 60281 | + "appService" |
| 60282 | + ] |
| 60283 | + }, |
60253 | 60284 | "appService": { |
60254 | 60285 | "type": "Microsoft.Resources/deployments", |
60255 | 60286 | "apiVersion": "2025-04-01", |
|
60293 | 60324 | "healthCheckPath": "[if(not(empty(parameters('healthCheckPath'))), parameters('healthCheckPath'), null())]", |
60294 | 60325 | "webSocketsEnabled": "[parameters('webSocketsEnabled')]", |
60295 | 60326 | "appCommandLine": "[parameters('appCommandLine')]", |
| 60327 | + "vnetRouteAllEnabled": "[parameters('vnetRouteAllEnabled')]", |
60296 | 60328 | "acrUseManagedIdentityCreds": "[not(empty(parameters('acrUserManagedIdentityClientId')))]", |
60297 | 60329 | "acrUserManagedIdentityID": "[if(not(empty(parameters('acrUserManagedIdentityClientId'))), parameters('acrUserManagedIdentityClientId'), null())]" |
60298 | 60330 | } |
|
60306 | 60338 | "name": "appsettings", |
60307 | 60339 | "properties": "[parameters('appSettings')]", |
60308 | 60340 | "applicationInsightResourceId": "[if(not(empty(parameters('applicationInsightResourceId'))), parameters('applicationInsightResourceId'), null())]" |
60309 | | - }, |
60310 | | - { |
60311 | | - "name": "logs", |
60312 | | - "properties": { |
60313 | | - "applicationLogs": { |
60314 | | - "fileSystem": { |
60315 | | - "level": "Verbose" |
60316 | | - } |
60317 | | - }, |
60318 | | - "detailedErrorMessages": { |
60319 | | - "enabled": true |
60320 | | - }, |
60321 | | - "failedRequestsTracing": { |
60322 | | - "enabled": true |
60323 | | - }, |
60324 | | - "httpLogs": { |
60325 | | - "fileSystem": { |
60326 | | - "enabled": true, |
60327 | | - "retentionInDays": 1, |
60328 | | - "retentionInMb": 35 |
60329 | | - } |
60330 | | - } |
60331 | | - } |
60332 | | - }, |
60333 | | - { |
60334 | | - "name": "web", |
60335 | | - "properties": { |
60336 | | - "vnetRouteAllEnabled": "[parameters('vnetRouteAllEnabled')]" |
60337 | | - } |
60338 | 60341 | } |
60339 | 60342 | ] |
60340 | 60343 | }, |
|
0 commit comments