Link to home
Start Free TrialLog in
Avatar of jskfan
jskfanFlag for Cyprus

asked on

Go To/Delete Snapshot

Let s say I have
-VM
  Snapshot11-24-16

If I understand,  if I select   Snapshot11-24-16
  then click on GO TO
 then delete the snapshot
it will not Commit
Correct ?

OK.if that s the case, let s say I click Goto....then I change my mind , I want to delete and Commit.
How can this be done ?

Thanks
Avatar of jskfan
jskfan
Flag of Cyprus image

ASKER

probably close out of the SNapshot Manager and go Back will be the work around ?
ASKER CERTIFIED SOLUTION
Avatar of Andy
Andy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jskfan

ASKER

Then 'goto' the latest snapshot and delete all

That 's when you have many snapshots and you want to revert back to the base disk, before even the first snapshot
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jskfan

ASKER

But How do you know if you clicked on Goto or you did not before you click Delete ?

You may think you clicked on Goto, then you click Delete, you will end up committing the change to the base disk.
Avatar of Andy
Andy

You'd have to see if it's shown in a snapshot report.

You could do something like this (change the days as required):

You could do something like this
 
$taskNames = 'CreateSnapshot_Task','RemoveSnapshot_task'
 
Get-VIEvent -Start (Get-Date).AddDays(-2) -MaxSamples ([int]::MaxValue) |
where{$_ -is [VMware.Vim.TaskEvent] -and $taskNames -contains $_.Info.Name} |
Sort-Object -Property CreatedTime |
Select CreatedTime,UserName,
    @{N='VM';E={$_.VM.Name}},
    @{N='Datastore';E={(Get-View -Id $_.Vm.Vm -Property 'Config.Files.SnapshotDirectory').Config.Files.SnapshotDirectory}},
    @{N='Task';E={$_.FullFormattedMessage}}

Open in new window


Source:
https://communities.vmware.com/thread/513431?start=0&tstart=0
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jskfan

ASKER

I guess the Confirmation message is the Key:
User generated image
Avatar of jskfan

ASKER

Thank you