Hello @Lana Granville - Thanks for reaching out to us.
- We have a script to achieve this. It is not published in our docs yet, but we have a plan to publish in the docs pretty soon.
- Attached a script to detect stale DTL virtual machines.
- It’s currently using a library that we’re working on (you’ll see the download code for the library at the top of the script).
- The script will find any DTL VMs that haven’t had any ‘start’ events (either in compute or DTL) in the past week.
NOTE: if the VM is always running it won’t have start events, the script is assuming you’re using a shutdown schedule but is easy to modify. It also outputs the results (doesn’t delete any VMs) but that’s also something easy to add.
Hope this helps. If the response helped, please "Accept as Answer" and "Upvote" the same