This repository was archived by the owner on Jan 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
landingzones/lz-platform-logging Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,9 @@ param logAnalyticsAutomationAccountName string
187
187
@description ('Log Analytics Workspace Data Retention in days.' )
188
188
param logAnalyticsRetentionInDays int
189
189
190
+ @description ('Flag to determine whether delete lock should be created on resource group(s). Default: true' )
191
+ param enableDeleteLockOnResourceGroup bool = true
192
+
190
193
// Telemetry - Azure customer usage attribution
191
194
// Reference: https://docs.microsoft.com/azure/marketplace/azure-partner-customer-usage-attribution
192
195
var telemetry = json (loadTextContent ('../../config/telemetry.json' ))
@@ -201,6 +204,12 @@ resource rgLogging 'Microsoft.Resources/resourceGroups@2020-06-01' = {
201
204
tags : resourceTags
202
205
}
203
206
207
+ // Delete lock on resource group
208
+ module rgLoggingDeleteLock '../../azresources/util/delete-lock.bicep' = if (enableDeleteLockOnResourceGroup ) {
209
+ name : 'deploy-delete-lock-${rgLogging .name }'
210
+ scope : rgLogging
211
+ }
212
+
204
213
// Create Log Analytics Workspace
205
214
module logAnalytics '../../azresources/monitor/log-analytics.bicep' = {
206
215
name : logAnalyticsWorkspaceName
You can’t perform that action at this time.
0 commit comments