Skip to content

Commit

Permalink
DeploymentId (Azure#231)
Browse files Browse the repository at this point in the history
* add id

* add opt-out

* update text
  • Loading branch information
KSchlobohm committed Feb 7, 2023
1 parent 66c3986 commit d44a32c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,12 @@ This repository provides resources to help developers build a Reliable web app o

[![screenshot azd env new](./assets/Guide/Intro-video.jpg)](https://aka.ms/eap-intro-video)

## Data Collection

The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft's privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkId=521839. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.

### Telemetry Configuration

Telemetry collection is on by default.

To opt out, run the following command `azd env set ENABLE_TELEMETRY` to `false` in your environment.
17 changes: 17 additions & 0 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,23 @@ module azureFrontDoor './azureFrontDoor.bicep' = if (isMultiLocationDeployment)
}
}

@description('Enable usage and telemetry feedback to Microsoft.')
param enableTelemetry bool = true

var telemetryId = '063f9e42-c824-4573-8a47-5f6112612fe2-${location}'
resource telemetrydeployment 'Microsoft.Resources/deployments@2021-04-01' = if (enableTelemetry) {
name: telemetryId
location: location
properties: {
mode: 'Incremental'
template: {
'$schema': 'https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#'
contentVersion: '1.0.0.0'
resources: {}
}
}
}

output WEB_URI string = isMultiLocationDeployment ? azureFrontDoor.outputs.WEB_URI : primaryResources.outputs.WEB_URI
output AZURE_LOCATION string = location

Expand Down
3 changes: 3 additions & 0 deletions infra/main.parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
},
"azureSqlPassword": {
"value": "$(secretOrRandomPassword ${AZURE_KEYVAULT_NAME} sqlAdminPassword)"
},
"enableTelemetry": {
"value": "${ENABLE_TELEMETRY=true}"
}
}
}

0 comments on commit d44a32c

Please sign in to comment.