Skip to content

Commit

Permalink
Renamed telemetry param
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSehr committed Sep 20, 2023
1 parent b1f2d5c commit e31b7b2
Show file tree
Hide file tree
Showing 34 changed files with 129 additions and 129 deletions.
38 changes: 19 additions & 19 deletions avm/res/cognitive-services/account/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ This module deploys a Cognitive Service.
| [`diagnosticSettings`](#parameter-diagnosticsettings) | array | The diagnostic settings of the service. |
| [`disableLocalAuth`](#parameter-disablelocalauth) | bool | Allow only Azure AD authentication. Should be enabled for security reasons. |
| [`dynamicThrottlingEnabled`](#parameter-dynamicthrottlingenabled) | bool | The flag to enable dynamic throttling. |
| [`enableDefaultTelemetry`](#parameter-enabledefaulttelemetry) | bool | Enable telemetry via a Globally Unique Identifier (GUID). |
| [`enableTelemetry`](#parameter-enableTelemetry) | bool | Enable telemetry via a Globally Unique Identifier (GUID). |
| [`location`](#parameter-location) | string | Location for all Resources. |
| [`lock`](#parameter-lock) | string | Specify the type of lock. |
| [`managedIdentities`](#parameter-managedidentities) | | The managed identity definition for this resource |
Expand Down Expand Up @@ -80,7 +80,7 @@ The API properties for special APIs.

The customer managed key definition.
- Required: Yes
- Type:
- Type:

### Parameter: `customSubDomainName`

Expand Down Expand Up @@ -110,7 +110,7 @@ The flag to enable dynamic throttling.
- Type: bool
- Default: `False`

### Parameter: `enableDefaultTelemetry`
### Parameter: `enableTelemetry`

Enable telemetry via a Globally Unique Identifier (GUID).
- Required: No
Expand Down Expand Up @@ -143,7 +143,7 @@ Specify the type of lock.

The managed identity definition for this resource
- Required: Yes
- Type:
- Type:

### Parameter: `migrationToken`

Expand Down Expand Up @@ -498,7 +498,7 @@ module account './cognitive-services/account/main.bicep' = {
workspaceResourceId: '<workspaceResourceId>'
}
]
enableDefaultTelemetry: '<enableDefaultTelemetry>'
enableTelemetry: '<enableTelemetry>'
lock: 'CanNotDelete'
networkAcls: {
defaultAction: 'Deny'
Expand Down Expand Up @@ -606,8 +606,8 @@ module account './cognitive-services/account/main.bicep' = {
}
]
},
"enableDefaultTelemetry": {
"value": "<enableDefaultTelemetry>"
"enableTelemetry": {
"value": "<enableTelemetry>"
},
"lock": {
"value": "CanNotDelete"
Expand Down Expand Up @@ -694,7 +694,7 @@ module account './cognitive-services/account/main.bicep' = {
}
name: 'csaencr001'
// Non-required parameters
enableDefaultTelemetry: '<enableDefaultTelemetry>'
enableTelemetry: '<enableTelemetry>'
publicNetworkAccess: 'Enabled'
restrictOutboundNetworkAccess: false
sku: 'S0'
Expand Down Expand Up @@ -736,8 +736,8 @@ module account './cognitive-services/account/main.bicep' = {
"value": "csaencr001"
},
// Non-required parameters
"enableDefaultTelemetry": {
"value": "<enableDefaultTelemetry>"
"enableTelemetry": {
"value": "<enableTelemetry>"
},
"publicNetworkAccess": {
"value": "Enabled"
Expand Down Expand Up @@ -776,7 +776,7 @@ module account './cognitive-services/account/main.bicep' = {
}
name: '<name>'
// Non-required parameters
enableDefaultTelemetry: '<enableDefaultTelemetry>'
enableTelemetry: '<enableTelemetry>'
publicNetworkAccess: 'Enabled'
restrictOutboundNetworkAccess: false
sku: 'S0'
Expand Down Expand Up @@ -815,8 +815,8 @@ module account './cognitive-services/account/main.bicep' = {
"value": "<name>"
},
// Non-required parameters
"enableDefaultTelemetry": {
"value": "<enableDefaultTelemetry>"
"enableTelemetry": {
"value": "<enableTelemetry>"
},
"publicNetworkAccess": {
"value": "Enabled"
Expand Down Expand Up @@ -847,7 +847,7 @@ module account './cognitive-services/account/main.bicep' = {
// Required parameters
kind: 'SpeechServices'
name: 'csamin001'
enableDefaultTelemetry: '<enableDefaultTelemetry>'
enableTelemetry: '<enableTelemetry>'
}
}
```
Expand All @@ -871,8 +871,8 @@ module account './cognitive-services/account/main.bicep' = {
"name": {
"value": "csamin001"
},
"enableDefaultTelemetry": {
"value": "<enableDefaultTelemetry>"
"enableTelemetry": {
"value": "<enableTelemetry>"
}
}
}
Expand Down Expand Up @@ -902,7 +902,7 @@ module account './cognitive-services/account/main.bicep' = {
name: 'csaspeech001'
// Non-required parameters
customSubDomainName: 'speechdomain'
enableDefaultTelemetry: '<enableDefaultTelemetry>'
enableTelemetry: '<enableTelemetry>'
privateEndpoints: [
{
privateDnsZoneResourceIds: [
Expand Down Expand Up @@ -958,8 +958,8 @@ module account './cognitive-services/account/main.bicep' = {
"customSubDomainName": {
"value": "speechdomain"
},
"enableDefaultTelemetry": {
"value": "<enableDefaultTelemetry>"
"enableTelemetry": {
"value": "<enableTelemetry>"
},
"privateEndpoints": {
"value": [
Expand Down
8 changes: 4 additions & 4 deletions avm/res/cognitive-services/account/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ param userOwnedStorage array = []
param managedIdentities managedIdentitiesType

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

var enableReferencedModulesTelemetry = false

Expand Down Expand Up @@ -164,7 +164,7 @@ var builtInRoleNames = {
'User Access Administrator': subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '18d7d88d-d35e-4fb5-a5c3-7773c20a72d9')
}

resource defaultTelemetry 'Microsoft.Resources/deployments@2022-09-01' = if (enableDefaultTelemetry) {
resource defaultTelemetry 'Microsoft.Resources/deployments@2022-09-01' = if (enableTelemetry) {
name: 'pid-47ed15a6-730a-4827-bcb4-0fd963ffbd82-${uniqueString(deployment().name, location)}'
properties: {
mode: 'Incremental'
Expand Down Expand Up @@ -271,7 +271,7 @@ module cognitiveService_privateEndpoints '../../network/private-endpoint/main.bi
name: privateEndpoint.?name ?? 'pe-${last(split(cognitiveService.id, '/'))}-${privateEndpoint.service}-${index}'
serviceResourceId: cognitiveService.id
subnetResourceId: privateEndpoint.subnetResourceId
enableDefaultTelemetry: enableReferencedModulesTelemetry
enableTelemetry: enableReferencedModulesTelemetry
location: privateEndpoint.?location ?? reference(split(privateEndpoint.subnetResourceId, '/subnets/')[0], '2020-06-01', 'Full').location
lock: privateEndpoint.?lock ?? lock
privateDnsZoneResourceIds: privateEndpoint.?privateDnsZoneResourceIds ?? []
Expand Down Expand Up @@ -432,7 +432,7 @@ type privateEndpointType = {
manualPrivateLinkServiceConnections: array?

@description('Optional. Enable telemetry via a Globally Unique Identifier (GUID).')
enableDefaultTelemetry: bool?
enableTelemetry: bool?
}[]?

type managedIdentitiesType = {
Expand Down
18 changes: 9 additions & 9 deletions avm/res/cognitive-services/account/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@
"description": "Optional. Manual PrivateLink Service Connections."
}
},
"enableDefaultTelemetry": {
"enableTelemetry": {
"type": "bool",
"nullable": true,
"metadata": {
Expand Down Expand Up @@ -593,7 +593,7 @@
"description": "Optional. The managed identity definition for this resource"
}
},
"enableDefaultTelemetry": {
"enableTelemetry": {
"type": "bool",
"defaultValue": true,
"metadata": {
Expand Down Expand Up @@ -651,7 +651,7 @@
]
},
"defaultTelemetry": {
"condition": "[parameters('enableDefaultTelemetry')]",
"condition": "[parameters('enableTelemetry')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"name": "[format('pid-47ed15a6-730a-4827-bcb4-0fd963ffbd82-{0}', uniqueString(deployment().name, parameters('location')))]",
Expand Down Expand Up @@ -799,7 +799,7 @@
"subnetResourceId": {
"value": "[parameters('privateEndpoints')[copyIndex()].subnetResourceId]"
},
"enableDefaultTelemetry": {
"enableTelemetry": {
"value": "[variables('enableReferencedModulesTelemetry')]"
},
"location": {
Expand Down Expand Up @@ -1014,7 +1014,7 @@
"description": "Optional. Manual PrivateLink Service Connections."
}
},
"enableDefaultTelemetry": {
"enableTelemetry": {
"type": "bool",
"defaultValue": true,
"metadata": {
Expand All @@ -1039,7 +1039,7 @@
},
"resources": {
"defaultTelemetry": {
"condition": "[parameters('enableDefaultTelemetry')]",
"condition": "[parameters('enableTelemetry')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2021-04-01",
"name": "[format('pid-47ed15a6-730a-4827-bcb4-0fd963ffbd82-{0}', uniqueString(deployment().name, parameters('location')))]",
Expand Down Expand Up @@ -1139,7 +1139,7 @@
"privateEndpointName": {
"value": "[parameters('name')]"
},
"enableDefaultTelemetry": {
"enableTelemetry": {
"value": "[variables('enableReferencedModulesTelemetry')]"
}
},
Expand Down Expand Up @@ -1178,7 +1178,7 @@
"description": "Optional. The name of the private DNS zone group."
}
},
"enableDefaultTelemetry": {
"enableTelemetry": {
"type": "bool",
"defaultValue": true,
"metadata": {
Expand All @@ -1202,7 +1202,7 @@
},
"resources": [
{
"condition": "[parameters('enableDefaultTelemetry')]",
"condition": "[parameters('enableTelemetry')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2021-04-01",
"name": "[format('pid-47ed15a6-730a-4827-bcb4-0fd963ffbd82-{0}', uniqueString(deployment().name))]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ param location string = deployment().location
param serviceShort string = 'csad'

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

@description('Optional. A token to inject into the name of each resource.')
param namePrefix string = '[[namePrefix]]'
Expand All @@ -39,7 +39,7 @@ module testDeployment '../../../main.bicep' = {
scope: resourceGroup
name: '${uniqueString(deployment().name, location)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
enableTelemetry: enableTelemetry
name: '${namePrefix}${serviceShort}001'
kind: 'SpeechServices'
location: location
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ param location string = deployment().location
param serviceShort string = 'csamax'

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

@description('Optional. A token to inject into the name of each resource.')
param namePrefix string = '[[namePrefix]]'
Expand Down Expand Up @@ -63,7 +63,7 @@ module testDeployment '../../../main.bicep' = {
scope: resourceGroup
name: '${uniqueString(deployment().name, location)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
enableTelemetry: enableTelemetry
name: '${namePrefix}${serviceShort}001'
kind: 'Face'
customSubDomainName: '${namePrefix}xdomain'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ param location string = deployment().location
param serviceShort string = 'csaspeech'

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

@description('Optional. A token to inject into the name of each resource.')
param namePrefix string = '[[namePrefix]]'
Expand Down Expand Up @@ -48,7 +48,7 @@ module testDeployment '../../../main.bicep' = {
scope: resourceGroup
name: '${uniqueString(deployment().name, location)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
enableTelemetry: enableTelemetry
name: '${namePrefix}${serviceShort}001'
kind: 'SpeechServices'
location: location
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ param serviceShort string = 'csaecrs'
param baseTime string = utcNow('u')

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

@description('Optional. A token to inject into the name of each resource.')
param namePrefix string = '[[namePrefix]]'
Expand Down Expand Up @@ -53,7 +53,7 @@ module testDeployment '../../../main.bicep' = {
scope: resourceGroup
name: '${uniqueString(deployment().name, location)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
enableTelemetry: enableTelemetry
name: nestedDependencies.outputs.cognitiveServiceName
kind: 'SpeechServices'
location: location
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ param serviceShort string = 'csaencr'
param baseTime string = utcNow('u')

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

@description('Optional. A token to inject into the name of each resource.')
param namePrefix string = '[[namePrefix]]'
Expand Down Expand Up @@ -53,7 +53,7 @@ module testDeployment '../../../main.bicep' = {
scope: resourceGroup
name: '${uniqueString(deployment().name, location)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
enableTelemetry: enableTelemetry
name: '${namePrefix}${serviceShort}001'
kind: 'SpeechServices'
location: location
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ param location string = deployment().location
param serviceShort string = 'csawaf'

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

@description('Optional. A token to inject into the name of each resource.')
param namePrefix string = '[[namePrefix]]'
Expand Down Expand Up @@ -63,7 +63,7 @@ module testDeployment '../../../main.bicep' = {
scope: resourceGroup
name: '${uniqueString(deployment().name, location)}-test-${serviceShort}'
params: {
enableDefaultTelemetry: enableDefaultTelemetry
enableTelemetry: enableTelemetry
name: '${namePrefix}${serviceShort}001'
kind: 'Face'
location: location
Expand Down
Loading

0 comments on commit e31b7b2

Please sign in to comment.