Skip to content

Commit

Permalink
change enableTelemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
rahalan committed Dec 7, 2023
1 parent a5e687e commit 85b99dd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions avm/res/compute/virtual-machine/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ param roleAssignments roleAssignmentType
param tags object?

@description('Optional. Enable telemetry via a Globally Unique Identifier (GUID).')
param enableDefaultTelemetry bool = true
param enableTelemetry bool = true

@description('Generated. Do not provide a value! This date value is used to generate a registration token.')
param baseTime string = utcNow('u')
Expand Down Expand Up @@ -325,7 +325,7 @@ var builtInRoleNames = {
'VM Scanner Operator': subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'd24ecba3-c1f4-40fa-a7bb-4588a071e8fd')
}

resource defaultTelemetry 'Microsoft.Resources/deployments@2021-04-01' = if (enableDefaultTelemetry) {
resource defaultTelemetry 'Microsoft.Resources/deployments@2021-04-01' = if (enableTelemetry) {
name: 'pid-47ed15a6-730a-4827-bcb4-0fd963ffbd82-${uniqueString(deployment().name, location)}'
properties: {
mode: 'Incremental'
Expand Down Expand Up @@ -492,7 +492,7 @@ module vm_domainJoinExtension 'extension/main.bicep' = if (extensionDomainJoinCo
protectedSettings: {
Password: extensionDomainJoinPassword
}
enableDefaultTelemetry: enableReferencedModulesTelemetry
enableTelemetry: enableReferencedModulesTelemetry
}
}

Expand All @@ -509,7 +509,7 @@ module vm_microsoftAntiMalwareExtension 'extension/main.bicep' = if (extensionAn
enableAutomaticUpgrade: contains(extensionAntiMalwareConfig, 'enableAutomaticUpgrade') ? extensionAntiMalwareConfig.enableAutomaticUpgrade : false
settings: extensionAntiMalwareConfig.settings
tags: extensionAntiMalwareConfig.?tags ?? tags
enableDefaultTelemetry: enableReferencedModulesTelemetry
enableTelemetry: enableReferencedModulesTelemetry
}
}

Expand All @@ -536,7 +536,7 @@ module vm_microsoftMonitoringAgentExtension 'extension/main.bicep' = if (extensi
protectedSettings: {
workspaceKey: !empty(monitoringWorkspaceId) ? vm_logAnalyticsWorkspace.listKeys().primarySharedKey : ''
}
enableDefaultTelemetry: enableReferencedModulesTelemetry
enableTelemetry: enableReferencedModulesTelemetry
}
}

Expand All @@ -551,7 +551,7 @@ module vm_dependencyAgentExtension 'extension/main.bicep' = if (extensionDepende
typeHandlerVersion: contains(extensionDependencyAgentConfig, 'typeHandlerVersion') ? extensionDependencyAgentConfig.typeHandlerVersion : '9.5'
autoUpgradeMinorVersion: contains(extensionDependencyAgentConfig, 'autoUpgradeMinorVersion') ? extensionDependencyAgentConfig.autoUpgradeMinorVersion : true
enableAutomaticUpgrade: contains(extensionDependencyAgentConfig, 'enableAutomaticUpgrade') ? extensionDependencyAgentConfig.enableAutomaticUpgrade : true
enableDefaultTelemetry: enableReferencedModulesTelemetry
enableTelemetry: enableReferencedModulesTelemetry
tags: extensionDependencyAgentConfig.?tags ?? tags
}
}
Expand All @@ -567,7 +567,7 @@ module vm_networkWatcherAgentExtension 'extension/main.bicep' = if (extensionNet
typeHandlerVersion: contains(extensionNetworkWatcherAgentConfig, 'typeHandlerVersion') ? extensionNetworkWatcherAgentConfig.typeHandlerVersion : '1.4'
autoUpgradeMinorVersion: contains(extensionNetworkWatcherAgentConfig, 'autoUpgradeMinorVersion') ? extensionNetworkWatcherAgentConfig.autoUpgradeMinorVersion : true
enableAutomaticUpgrade: contains(extensionNetworkWatcherAgentConfig, 'enableAutomaticUpgrade') ? extensionNetworkWatcherAgentConfig.enableAutomaticUpgrade : false
enableDefaultTelemetry: enableReferencedModulesTelemetry
enableTelemetry: enableReferencedModulesTelemetry
tags: extensionNetworkWatcherAgentConfig.?tags ?? tags
}
}
Expand All @@ -586,7 +586,7 @@ module vm_desiredStateConfigurationExtension 'extension/main.bicep' = if (extens
settings: contains(extensionDSCConfig, 'settings') ? extensionDSCConfig.settings : {}
tags: extensionDSCConfig.?tags ?? tags
protectedSettings: contains(extensionDSCConfig, 'protectedSettings') ? extensionDSCConfig.protectedSettings : {}
enableDefaultTelemetry: enableReferencedModulesTelemetry
enableTelemetry: enableReferencedModulesTelemetry
}
}

Expand All @@ -606,7 +606,7 @@ module vm_customScriptExtension 'extension/main.bicep' = if (extensionCustomScri
}
tags: extensionCustomScriptConfig.?tags ?? tags
protectedSettings: extensionCustomScriptProtectedSetting
enableDefaultTelemetry: enableReferencedModulesTelemetry
enableTelemetry: enableReferencedModulesTelemetry
}
dependsOn: [
vm_desiredStateConfigurationExtension
Expand All @@ -627,7 +627,7 @@ module vm_azureDiskEncryptionExtension 'extension/main.bicep' = if (extensionAzu
forceUpdateTag: contains(extensionAzureDiskEncryptionConfig, 'forceUpdateTag') ? extensionAzureDiskEncryptionConfig.forceUpdateTag : '1.0'
settings: extensionAzureDiskEncryptionConfig.settings
tags: extensionAzureDiskEncryptionConfig.?tags ?? tags
enableDefaultTelemetry: enableReferencedModulesTelemetry
enableTelemetry: enableReferencedModulesTelemetry
}
dependsOn: [
vm_customScriptExtension
Expand Down

0 comments on commit 85b99dd

Please sign in to comment.