Skip to content

Commit c49657e

Browse files
authored
Merge pull request #94176 from anhvoms/patch-11
Describing what telemetry cloud-init collects and how to disable it
2 parents a9983d0 + 23cd651 commit c49657e

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

articles/virtual-machines/linux/using-cloud-init.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,21 @@ Once the VM has been provisioned, cloud-init will run through all the modules an
163163
> [!NOTE]
164164
> Not every module failure results in a fatal cloud-init overall configuration failure. For example, using the `runcmd` module, if the script fails, cloud-init will still report provisioning succeeded because the runcmd module executed.
165165

166-
For more details of cloud-init logging, refer to the [cloud-init documentation](https://cloudinit.readthedocs.io/en/latest/topics/logging.html)
166+
For more details of cloud-init logging, refer to the [cloud-init documentation](https://cloudinit.readthedocs.io/en/latest/topics/logging.html)
167167

168+
## Telemetry
169+
cloud-init collects usage data and sends it to Microsoft to help improve our products and services. Telemetry is only collected during the provisioning process (first boot of the VM). The data collected helps us investigate provisioning failures and monitor performance and reliability. Data collected does not include any personally identifiable information. Read our [privacy statement](http://go.microsoft.com/fwlink/?LinkId=521839) to learn more. Some examples of telemetry being collected are (this is not an exhaustive list): OS-related information (cloud-init version, distro version, kernel version), performance metrics of essential VM provisioning actions (time to obtain DHCP lease, time to retrieve metadata necessary to configure the VM, etc.), cloud-init log, and dmesg log.
170+
171+
Telemetry collection is currently enabled for a majority of our marketplace images that use cloud-init. It is enabled by specifying KVP telemetry reporter for cloud-init. In a majority of Azure marketplace images, this configuration can be found in the file /etc/cloud/cloud.cfg.d/10-azure-kvp.cfg. Removing this file during image preparation will disable telemetry collection for any VM created from this image.
172+
173+
Sample content of 10-azure-kvp.cfg
174+
```
175+
reporting:
176+
logging:
177+
type: log
178+
telemetry:
179+
type: hyperv
180+
```
168181
## Next steps
169182
170183
[Troubleshoot issues with cloud-init](cloud-init-troubleshooting.md).

0 commit comments

Comments
 (0)