Hi Community,
I'm looking for a way to dynamically clean up server endpoints in Central when they are destroyed. We create and destroy tens of servers daily as part of our CI/CD pipeline. When an instance is destroyed we run /sophos-av/uninstall.sh however this does not update Central. The device still appears in Central, consumes a license, and starts throwing alerts for "real time protection disabled" and "failed to protect server: <IP>". This creates a lot of noise making any real alerts go unnoticed and creates a problem for license accounting.
Short of writing a script to hit the API and delete the endpoint, is there a method for managing this? I see that during the installation Sophos AV connects to Central and registers the device. I would assume there should be a graceful way in the software to clean this up. What's the best practice here? Unfortunately, Support's answer was to manually delete the devices in the UI which is obviously not scaleable.
If anyone has encountered the same problem and has a good practice for managing this, please let me know!
Thanks!
This thread was automatically locked due to age.