Attempts to remove or reinstall the Telegraf agent results in both an Endpoint and a Virtual Machine being added to the Operations - Applications - Manage Telegraf Agents page in the Aria Operations UI.
Environment
Aria Operations 8.x
Cause
Either the IP was not finished configuring on the virtual machine when the Telegraf script was ran or the Telegraf script was run on the Virtual Machine too soon after it was created and before Aria Operations had time to collect and identify it.
The above results in the Virtual Machine being identified as an endpoint and a uuid file is created in C:\temp\ for a Windows agent or in the working directory where you ran the telegraf-utils.sh script for a Linux server.
A uuid file is only created for endpoints and is not removed during an uninstall or reinstall so it must be removed manually.
Resolution
Log in to the Windows Server and delete the uuid file from C:\temp\
SSH to the Linux Server as root, search for the uuid file and delete it.
Future Telegraf agent delete or reinstall actions will complete as expected and create a Virtual Machine object in the Manage Telegraf page of Aria Operations UI.