question

ChrisSamways-8435 avatar image
0 Votes"
ChrisSamways-8435 asked jiayaozhu-MSFT commented

How to create automatic alerts in Hyper-V Manger for checkpoints left open over a period of time?

I would like to be alerted if a checkpoint gets left open after a period of time (ex. 1 day). If that cannot be done then possibly automatically deleting the checkpoint? I would prefer to not have to run a Powershell script to constantly check this. I could have this script automated from Connectwise Automate but it would have to be added and applied to a lot of different servers running Hyper-V Mangers. Not sure what the best way of going about this would be. In VMWare you can have alerts created in Auvik so the issue is just for Hyper-V vms. Any ideas would be appreciated.

windows-server-hyper-v
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

I would like to check if the reply could be of help? If yes, please help accept answer, so that others meet a similar issue can find useful information quickly. If you have any other concerns or questions, please feel free to feedback.

Best Regards,
Joan

0 Votes 0 ·

1 Answer

jiayaozhu-MSFT avatar image
1 Vote"
jiayaozhu-MSFT answered

Hi,

Thank you for your posting!

Firstly, as I know, Microsoft Hyper-V does not have a way to alert you if a checkpoint gets left open after a period of time (ex. 1 day) or automatically delete a cehckpoint every evening, for instance. We do have a feature that can automatically create a production checkpoint for a new created VM when the VM opens to run, though. The only way I can offer you is using PowerShell command:

Get-VMSnapshot -VMName TestVM | Where-Object {$_.CreationTime -lt (Get-Date).AddDays(-90) } | Remove-VMSnapshot

This command deletes all checkpoints of virtual machine TestVM older than 90 days.

However, I suppose you do not want to use it as you said in your post. So, in this case I may suggest you to find out some third-party tools to help you.

In addition, you can post your demand on our feedback website to let us know, and we will work hard on that in the furture.

Thank you for your understanding and support! If possible, please help me accept answer, so people who have the same issue with yours will get their answers more quickly.

BR,
Joan


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.