Sha256: 44bd3345485c86c3e4c128c2caddeddc8498e27338b4d3cfa02bd0a4ee32df50

Contents?: true

Size: 333 Bytes

Versions: 7

Compression:

Stored size: 333 Bytes

Contents

#Requires -Modules VagrantMessages

param(
    [Parameter(Mandatory=$true)]
    [string]$VmId,
    [string]$SnapName
)

$ErrorActionPreference = "Stop"

try {
    $VM = Hyper-V\Get-VM -Id $VmId
    Hyper-V\Checkpoint-VM $VM -SnapshotName $SnapName
} catch {
    Write-ErrorMessage "Failed to create snapshot: ${PSItem}"
    exit 1
}

Version data entries

7 entries across 3 versions & 2 rubygems

Version Path
vagrant-unbundled-2.1.2.0 plugins/providers/hyperv/scripts/create_snapshot.ps1
vagrant-packet-0.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/plugins/providers/hyperv/scripts/create_snapshot.ps1
vagrant-packet-0.1.2 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/plugins/providers/hyperv/scripts/create_snapshot.ps1
vagrant-packet-0.1.2 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/plugins/providers/hyperv/scripts/create_snapshot.ps1
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/plugins/providers/hyperv/scripts/create_snapshot.ps1
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/plugins/providers/hyperv/scripts/create_snapshot.ps1
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/plugins/providers/hyperv/scripts/create_snapshot.ps1