Skip to content

Commit

Permalink
change default mma autoprovision behavior to false
Browse files Browse the repository at this point in the history
  • Loading branch information
jayhaddad committed Jan 14, 2025
1 parent 57cce4d commit b69408c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bicep/modules/defender-for-cloud.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ targetScope = 'subscription'
param defenderPlans array = ['VirtualMachines']

@description('Turn automatic deployment by Defender of the MMA (OMS VM extension) on or off')
param enableAutoProvisioning bool = true
param enableAutoProvisioning bool = false
var autoProvisioning = enableAutoProvisioning ? 'On' : 'Off'

@description('Specify the ID of your custom Log Analytics workspace to collect Defender data.')
Expand Down Expand Up @@ -144,16 +144,16 @@ resource defenderStandardSubplanExtensionsAzureCloud 'Microsoft.Security/pricing



// auto provisioing
// auto provisioing - set to false by default

resource autoProvision 'Microsoft.Security/autoProvisioningSettings@2019-01-01' = {
resource autoProvision 'Microsoft.Security/autoProvisioningSettings@2019-01-01' = if (enableAutoProvisioning == true) {
name: 'default'
properties: {
autoProvision: autoProvisioning
}
}

resource securityWorkspaceSettings 'Microsoft.Security/workspaceSettings@2019-01-01' = {
resource securityWorkspaceSettings 'Microsoft.Security/workspaceSettings@2019-01-01' = if (enableAutoProvisioning == true) {
name: 'default'
properties: {
workspaceId: logAnalyticsWorkspaceId
Expand Down

0 comments on commit b69408c

Please sign in to comment.