Azure / Azure/azure-cli

Turn off telemetry on CI servers by default?

Open
#27,445 1 comment 0 reactions 4 assignees Claimed by @yanzhudd View on GitHub
act-codegen-extensibility-squad Auto-Assign Azure CLI Team Configure customer-reported feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

`npm` and `yarn` and many other tools turn off telemetry on CI servers by default. Partially to reduce the time to run and partially because CI tends to handle IP and secrets.

`az` has the ability to turn off telemetry explicitly by calling

```
az config set collect_telemetry=false --only-show-errors
```

There are a few other settings that are reccomended by the `az-cli` team through the `az init` extension:

```
az config set auto-upgrade.enable=false --only-show-errors
az config set core.error_recommendation=off --only-show-errors
az config set core.disable_progress_bar=true --only-show-errors
az config set core.no_color=true --only-show-errors
az config set output.show_survey_link=no --only-show-errors
az config set logging.enable_log_file=no --only-show-errors
```

I propose `az-cli` should adopt these settings by default, unless explicitly configured otherwise when it detects a CI environment.

It could use similar features as [the `is-ci` node module](https://www.npmjs.com/package/is-ci) or [Python-vw](https://github.com/The-Compiler/pytest-vw/blob/master/pytest_vw.py).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.