Azure / Azure/azure-cli

Suggestions API is used although telemetry is disabled

Open
#23,363 1 comment 0 reactions 2 assignees Claimed by @evelyn-ys View on GitHub
act-platform-engineering-squad Auto-Assign Azure CLI Team Core customer-reported feature-request telemetry
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**
Any invalid command

**Describe the bug**
az CLI communicates with suggestions API although telemetry is disabled.

**To Reproduce**
- Disable telemetry in config file:
```
[core]
collect_telemetry = no
```
- `az foo --debug` indicates that parts of the command are sent to `https://app.aladdin.microsoft.com`

**Expected behavior**
With telemetry disabled, there is no non-required communication. The command should fail without making any further API queries. These API queries could contain sensitive information.

Alternatively, there should be a separate opt-in config parameter for using the suggestions API.

**Environment summary**
```
Windows-10-10.0.19044-SP0
Python 3.10.5
Installer: MSI

azure-cli 2.38.0

Extensions:
application-insights 0.1.14
azure-cli-iot-ext 0.8.9
azure-cli-ml 1.33.0
resource-graph 2.1.0
storage-preview 0.7.4

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1
```

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.