VMware Cloud Community
vtx1000
Contributor
Contributor

VROPS integration with VRO -To manage VM snapshots

Hello, I want to know if input how to approach a new project I have been want to do.

Snapshot managment with exclusion via annotation or in snapshot name?

For I put annoation note donotdeletesnapshot

Get-VM  | Where {"donotdeletesnapshot" -notcontains $_.Name} |

Get-Snapshot |

  Where-Object { $_.Created -lt (Get-Date).AddDays(-30) } |

  Remove-Snapshot

 

Suggestions?

0 Kudos
0 Replies