Skip to content

Commit 3f17071

Browse files
refactor: update log analytics workspace resource name in Bicep templates
1 parent 85ea0b0 commit 3f17071

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

infra/main.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ module avmPrivateDnsZones 'br/public:avm/res/network/private-dns-zone:0.8.1' = [
520520
module logAnalyticsWorkspace 'modules/log-analytics-workspace.bicep' = if (enableMonitoring) {
521521
name: take('module.log-analytics-workspace.${solutionSuffix}', 64)
522522
params: {
523-
name: 'log-${solutionSuffix}'
523+
name: logAnalyticsWorkspaceResourceName
524524
location: location
525525
tags: tags
526526
enableTelemetry: enableTelemetry

infra/main.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.42.1.51946",
9-
"templateHash": "3337141965130997882"
9+
"templateHash": "5885652317352749587"
1010
},
1111
"name": "Content Processing Solution Accelerator",
1212
"description": "Bicep template to deploy the Content Processing Solution Accelerator with AVM compliance."
@@ -19275,7 +19275,7 @@
1927519275
"mode": "Incremental",
1927619276
"parameters": {
1927719277
"name": {
19278-
"value": "[format('log-{0}', variables('solutionSuffix'))]"
19278+
"value": "[variables('logAnalyticsWorkspaceResourceName')]"
1927919279
},
1928019280
"location": {
1928119281
"value": "[parameters('location')]"
@@ -36183,8 +36183,8 @@
3618336183
"avmContainerApp_API",
3618436184
"avmContainerApp_Workflow",
3618536185
"avmManagedIdentity",
36186-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
3618736186
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
36187+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
3618836188
"virtualNetwork"
3618936189
]
3619036190
},
@@ -42487,10 +42487,10 @@
4248742487
},
4248842488
"dependsOn": [
4248942489
"avmAiServices",
42490+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').contentUnderstanding)]",
42491+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
4249042492
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
4249142493
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
42492-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
42493-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').contentUnderstanding)]",
4249442494
"virtualNetwork"
4249542495
]
4249642496
},

infra/main_custom.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ module avmPrivateDnsZones 'br/public:avm/res/network/private-dns-zone:0.8.1' = [
523523
module logAnalyticsWorkspace 'modules/log-analytics-workspace.bicep' = if (enableMonitoring) {
524524
name: take('module.log-analytics-workspace.${solutionSuffix}', 64)
525525
params: {
526-
name: 'log-${solutionSuffix}'
526+
name: logAnalyticsWorkspaceResourceName
527527
location: location
528528
tags: tags
529529
enableTelemetry: enableTelemetry

0 commit comments

Comments
 (0)