< Back

New-ACDLabSnapshot

Fri Jan 10, 2020 6:33 pm

NAME New-ACDLabSnapshot



SYNOPSIS

After the lab parent VHD is updated a snapshot needs to be taken before a training lab

can be created from it. This function creates a new VHD snapshot.





SYNTAX

New-ACDLabSnapshot [[-ResourceGroupName] <String>] [[-VMName] <String>] [[-SnapshotName] <String>]

[<CommonParameters>]





DESCRIPTION





PARAMETERS

-ResourceGroupName <String>

Specifies the resource group name the parent VHD is in.

The default is parentResourceGroup.



Required? false

Position? 1

Default value parentResourceGroup

Accept pipeline input? false

Accept wildcard characters? false



-VMName <String>

Specifies the name of the parent VM the snapshot is taken from.

The default is LabParent



Required? false

Position? 2

Default value LabParent

Accept pipeline input? false

Accept wildcard characters? false



-SnapshotName <String>



Required? false

Position? 3

Default value CyberLabParent

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>New-ACDLabSnapShot



This examples shows how to create a new snapshot with default parameter values.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>New-ACDLabSnapshot -ResourceGroupName KaliLab -VMName KaliLab -SnapshotName KaliLabParent



This example creates a VHD snapshot from the KaliLab resource group,

with the KaliParent VM











RELATED LINKS