Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
danycontre committed Oct 17, 2024
1 parent cde9bd2 commit 3fa25ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions workload/arm/deploy-baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "12801986197009122891"
"templateHash": "7531174900982543619"
},
"name": "AVD Accelerator - Baseline Deployment",
"description": "AVD Accelerator - Deployment Baseline",
Expand Down Expand Up @@ -2125,7 +2125,7 @@
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "4236169587998799965"
"templateHash": "10746678051697223286"
},
"name": "AVD LZA insights monitoring",
"description": "This module deploys Log analytics workspace, DCR and policies",
Expand Down Expand Up @@ -3855,7 +3855,7 @@
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"name": "[format('DCR-{0}', parameters('time'))]",
"name": "[format('Mon-DCR-{0}', parameters('time'))]",
"subscriptionId": "[format('{0}', parameters('subscriptionId'))]",
"resourceGroup": "[format('{0}', parameters('monitoringRgName'))]",
"properties": {
Expand Down Expand Up @@ -4031,7 +4031,7 @@
},
"dataCollectionRuleId": {
"type": "string",
"value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', format('{0}', parameters('subscriptionId')), format('{0}', parameters('monitoringRgName'))), 'Microsoft.Resources/deployments', format('DCR-{0}', parameters('time'))), '2022-09-01').outputs.dataCollectionRulesId.value]"
"value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', format('{0}', parameters('subscriptionId')), format('{0}', parameters('monitoringRgName'))), 'Microsoft.Resources/deployments', format('Mon-DCR-{0}', parameters('time'))), '2022-09-01').outputs.dataCollectionRulesId.value]"
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion workload/bicep/modules/avdInsightsMonitoring/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,16 @@ resource existingAlaw 'Microsoft.OperationalInsights/workspaces@2022-10-01' exis
// data collection rules
module dataCollectionRule './.bicep/dataCollectionRules.bicep' = {
scope: resourceGroup('${subscriptionId}', '${monitoringRgName}')
name: 'DCR-${time}'
name: 'Mon-DCR-${time}'
params: {
location: deployAlaWorkspace ? alaWorkspace.outputs.location : existingAlaw.location
name: dataCollectionRulesName
alaWorkspaceId: deployAlaWorkspace ? alaWorkspace.outputs.resourceId : alaWorkspaceId
tags: tags
}
dependsOn: [
alaWorkspace
existingAlaw
baselineMonitoringResourceGroup
]
}
Expand Down

0 comments on commit 3fa25ad

Please sign in to comment.