@@ -60,6 +60,9 @@ param enablePrivateNetworking bool = false
6060@description ('Optional. Specifies the resource tags for all the resources. Tag "azd-env-name" is automatically added to all resources.' )
6161param tags object = {}
6262
63+ @description ('Optional. Enable/Disable usage telemetry for module.' )
64+ param enableTelemetry bool = true
65+
6366var allTags = union ({
6467 'azd-env-name' : solutionName
6568}, tags )
@@ -86,6 +89,7 @@ module appIdentity 'br/public:avm/res/managed-identity/user-assigned-identity:0.
8689 name : 'id-app-${resourcesName }'
8790 location : location
8891 tags : allTags
92+ enableTelemetry : enableTelemetry
8993 }
9094}
9195
@@ -95,6 +99,7 @@ module aiFoundryIdentity 'br/public:avm/res/managed-identity/user-assigned-ident
9599 name : 'id-proj-${resourcesName }'
96100 location : location
97101 tags : allTags
102+ enableTelemetry : enableTelemetry
98103 }
99104}
100105
@@ -107,6 +112,7 @@ module logAnalyticsWorkspace 'br/public:avm/res/operational-insights/workspace:0
107112 dataRetention : 30
108113 diagnosticSettings : [{ useThisWorkspace : true }]
109114 tags : allTags
115+ enableTelemetry : enableTelemetry
110116 }
111117}
112118
@@ -118,6 +124,7 @@ module applicationInsights 'br/public:avm/res/insights/component:0.6.0' = if (en
118124 workspaceResourceId : logAnalyticsWorkspace .outputs .resourceId
119125 diagnosticSettings : [{ workspaceResourceId : logAnalyticsWorkspace .outputs .resourceId }]
120126 tags : allTags
127+ enableTelemetry : enableTelemetry
121128 }
122129}
123130
@@ -128,6 +135,7 @@ module network 'modules/network.bicep' = if (enablePrivateNetworking) {
128135 logAnalyticsWorkSpaceResourceId : logAnalyticsWorkspace .outputs .resourceId
129136 location : location
130137 tags : allTags
138+ enableTelemetry : enableTelemetry
131139 }
132140}
133141
@@ -165,6 +173,7 @@ module aiServices 'modules/aiServices.bicep' = {
165173 }
166174 ]
167175 tags : allTags
176+ enableTelemetry : enableTelemetry
168177 }
169178}
170179
@@ -199,6 +208,7 @@ module storageAccount 'modules/storageAccount.bicep' = {
199208 roleDefinitionIdOrName : 'Storage Blob Data Contributor'
200209 }
201210 ]
211+ enableTelemetry : enableTelemetry
202212 }
203213}
204214
@@ -223,6 +233,7 @@ module keyVault 'modules/keyVault.bicep' = {
223233 }
224234 ]
225235 tags : allTags
236+ enableTelemetry : enableTelemetry
226237 }
227238}
228239
@@ -252,6 +263,7 @@ module azureAifoundry 'modules/aiFoundry.bicep' = {
252263 }
253264 ]
254265 tags : allTags
266+ enableTelemetry : enableTelemetry
255267 }
256268}
257269
@@ -271,6 +283,7 @@ module cosmosDb 'modules/cosmosDb.bicep' = {
271283 subnetResourceId : network .outputs .subnetPrivateEndpointsResourceId
272284 } : null
273285 tags : allTags
286+ enableTelemetry : enableTelemetry
274287 }
275288}
276289
@@ -307,6 +320,7 @@ module containerAppsEnvironment 'br/public:avm/res/app/managed-environment:0.11.
307320 }
308321 ] : []
309322 tags : allTags
323+ enableTelemetry : enableTelemetry
310324 }
311325}
312326
@@ -354,6 +368,7 @@ module containerAppFrontend 'br/public:avm/res/app/container-app:0.17.0' = {
354368 ] : []
355369 }
356370 tags : allTags
371+ enableTelemetry : enableTelemetry
357372 }
358373}
359374
@@ -509,6 +524,6 @@ module containerAppBackend 'br/public:avm/res/app/container-app:0.17.0' = {
509524 ] : []
510525 }
511526 tags : allTags
527+ enableTelemetry : enableTelemetry
512528 }
513529}
514-
0 commit comments