forked from Azure/terraform-azurerm-caf-enterprise-scale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
locals.telemetry.tf
35 lines (32 loc) · 1.15 KB
/
locals.telemetry.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Telemetry is collected by creating an empty ARM deployment with a specific name
# If you want to disable telemetry, you can set the disable_telemetry variable to true
# The following locals identify the module
locals {
# PUID identifies the module
telem_connectivity_puid = "97603aac-98f8-4a55-92fc-4c78378c9ba5"
telem_core_puid = "36dcde81-8c33-4da0-8dc3-265381502ccb"
telem_identity_puid = "67becfb7-b296-43a9-ba38-0b5c19cb065a"
telem_management_puid = "6fffb9f9-2691-412a-837e-3f72dcfe70cb"
}
# The following `can()` is used for when disable_telemetry = true
locals {
telem_random_hex = can(random_id.telem[0].hex) ? random_id.telem[0].hex : local.empty_string
}
# Here we create the ARM templates for the telemetry deployment
locals {
telem_arm_subscription_template_content = <<TEMPLATE
{
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {},
"resources": [],
"outputs": {
"telemetry": {
"type": "String",
"value": "For more information, see https://aka.ms/alz/tf/telemetry"
}
}
}
TEMPLATE
}