How to opt out of dotnet telemetry

By default .NET core collects telemetry when you use it. Telemetry data should be an opt-in process and not ON by default. How do you disable it?

The DOTNET_CLI_TELEMETRY_OPTOUT environment variable must be set to 1 or true.

In Windows you can do this by running in the command prompt:


You can check if the environment variables by running “set” in the command prompt.

Window dotnet telemetry optout