|
6 | 6 | "_generator": { |
7 | 7 | "name": "bicep", |
8 | 8 | "version": "0.41.2.15936", |
9 | | - "templateHash": "876801466335750099" |
| 9 | + "templateHash": "690774053853233065" |
10 | 10 | }, |
11 | 11 | "name": "Intelligent Content Generation Accelerator", |
12 | 12 | "description": "Solution Accelerator for multimodal marketing content generation using Microsoft Agent Framework.\n" |
|
358 | 358 | "uksouth", |
359 | 359 | "westus3" |
360 | 360 | ], |
361 | | - "deployAdminAccessResources": "[and(parameters('enablePrivateNetworking'), parameters('deployBastionAndJumpbox'))]", |
362 | | - "jumpboxVmName": "[take(format('vm-jumpbox-{0}', variables('solutionSuffix')), 15)]", |
| 361 | + "deployAdminAccessResources": "[and(and(parameters('enablePrivateNetworking'), parameters('deployBastionAndJumpbox')), not(empty(parameters('vmAdminPassword'))))]", |
| 362 | + "jumpboxUniqueToken": "[take(uniqueString(resourceGroup().id, variables('solutionSuffix')), 10)]", |
| 363 | + "jumpboxVmName": "[take(format('vm-{0}', variables('jumpboxUniqueToken')), 15)]", |
363 | 364 | "privateDnsZones": [ |
364 | 365 | "privatelink.cognitiveservices.azure.com", |
365 | 366 | "privatelink.openai.azure.com", |
|
4856 | 4857 | ] |
4857 | 4858 | }, |
4858 | 4859 | "location": { |
4859 | | - "value": "[parameters('location')]" |
| 4860 | + "value": "[variables('solutionLocation')]" |
4860 | 4861 | }, |
4861 | 4862 | "deployBastionAndJumpbox": { |
4862 | 4863 | "value": "[and(parameters('enablePrivateNetworking'), parameters('deployBastionAndJumpbox'))]" |
|
7443 | 7444 | "value": "Standard" |
7444 | 7445 | }, |
7445 | 7446 | "location": { |
7446 | | - "value": "[parameters('location')]" |
| 7447 | + "value": "[variables('solutionLocation')]" |
7447 | 7448 | }, |
7448 | 7449 | "virtualNetworkResourceId": { |
7449 | 7450 | "value": "[reference('virtualNetwork').outputs.resourceId.value]" |
7450 | 7451 | }, |
7451 | | - "diagnosticSettings": { |
7452 | | - "value": [ |
7453 | | - { |
7454 | | - "name": "bastionDiagnostics", |
7455 | | - "workspaceResourceId": "[if(variables('useExistingLogAnalytics'), parameters('existingLogAnalyticsWorkspaceId'), if(parameters('enableMonitoring'), reference('logAnalyticsWorkspace').outputs.resourceId.value, ''))]", |
7456 | | - "logCategoriesAndGroups": [ |
7457 | | - { |
7458 | | - "categoryGroup": "allLogs", |
7459 | | - "enabled": true |
7460 | | - } |
7461 | | - ] |
7462 | | - } |
7463 | | - ] |
7464 | | - }, |
| 7452 | + "diagnosticSettings": "[if(not(empty(if(variables('useExistingLogAnalytics'), parameters('existingLogAnalyticsWorkspaceId'), if(parameters('enableMonitoring'), reference('logAnalyticsWorkspace').outputs.resourceId.value, '')))), createObject('value', createArray(createObject('name', 'bastionDiagnostics', 'workspaceResourceId', if(variables('useExistingLogAnalytics'), parameters('existingLogAnalyticsWorkspaceId'), if(parameters('enableMonitoring'), reference('logAnalyticsWorkspace').outputs.resourceId.value, '')), 'logCategoriesAndGroups', createArray(createObject('categoryGroup', 'allLogs', 'enabled', true()))))), createObject('value', createArray()))]", |
7465 | 7453 | "tags": { |
7466 | 7454 | "value": "[parameters('tags')]" |
7467 | 7455 | }, |
|
24873 | 24861 | }, |
24874 | 24862 | "dependsOn": [ |
24875 | 24863 | "aiFoundryAiServices", |
24876 | | - "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]", |
24877 | 24864 | "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]", |
| 24865 | + "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]", |
24878 | 24866 | "virtualNetwork" |
24879 | 24867 | ] |
24880 | 24868 | }, |
|
0 commit comments