File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -212,13 +212,14 @@ var useExistingLogAnalytics = !empty(existingLogAnalyticsWorkspaceId)
212212var logAnalyticsWorkspaceResourceId = useExistingLogAnalytics
213213 ? existingLogAnalyticsWorkspaceId
214214 : logAnalyticsWorkspace !.outputs .resourceId
215+ var existingTags = resourceGroup ().tags ?? {}
215216
216217// ========== Resource Group Tag ========== //
217218resource resourceGroupTags 'Microsoft.Resources/tags@2025-04-01' = {
218219 name : 'default'
219220 properties : {
220221 tags : union (
221- resourceGroup (). tags ?? {} ,
222+ existingTags ,
222223 tags ,
223224 {
224225 TemplateName : 'KM-Generic'
Original file line number Diff line number Diff line change @@ -212,13 +212,14 @@ var useExistingLogAnalytics = !empty(existingLogAnalyticsWorkspaceId)
212212var logAnalyticsWorkspaceResourceId = useExistingLogAnalytics
213213 ? existingLogAnalyticsWorkspaceId
214214 : logAnalyticsWorkspace !.outputs .resourceId
215+ var existingTags = resourceGroup ().tags ?? {}
215216
216217// ========== Resource Group Tag ========== //
217218resource resourceGroupTags 'Microsoft.Resources/tags@2025-04-01' = {
218219 name : 'default'
219220 properties : {
220221 tags : union (
221- resourceGroup (). tags ?? {} ,
222+ existingTags ,
222223 tags ,
223224 {
224225 TemplateName : 'KM-Generic'
You can’t perform that action at this time.
0 commit comments