< Back

New-ACDLab

Fri Jan 10, 2020 6:32 pm

NAME New-ACDLab



SYNOPSIS

Creates a lab environemnt contained in it's own Azure Resource Group by copying a snapshot VHD from

a parent resource group.





SYNTAX

New-ACDLab [[-LabNumber] <Int32>] [[-SnapshotResourceGroup] <String>] [[-VMSize] <String>] [[-SnapShotName]

<String>] [<CommonParameters>]



New-ACDLab [[-LabName] <String>] [-SnapshotResourceGroup <String>] [-VMSize <String>] [-SnapShotName <String>]

[<CommonParameters>]





DESCRIPTION





PARAMETERS

-LabNumber <Int32>

Specifies the number of labs to create. The default is 1.



Required? false

Position? 2

Default value 1

Accept pipeline input? false

Accept wildcard characters? false



-LabName <String>

Speciies the name of a lab when creating a single instance.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SnapshotResourceGroup <String>

Specifies the resource group to copy the parent snapshot from.

The default is is parentResourceGroup.



Required? false

Position? 3

Default value parentResourceGroup

Accept pipeline input? false

Accept wildcard characters? false



-VMSize <String>

Specifies the size of the Azure VM. Possible choices are Standard_D4_v3 and Standard_D8_v3.

The default is Standard_D4_v3



Required? false

Position? 4

Default value Standard_D4s_v3

Accept pipeline input? false

Accept wildcard characters? false



-SnapShotName <String>

Specifies the name of the parent snapshot VHD to copy the lab from.



Required? false

Position? 5

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:\\>Connect-AzureRmAccount



Name : [acdadmin@outlook.com, 1e32f512-e00a-4c31-a31f-7c84d2bc66a1]

Account : acdadmin@outlook.com

SubscriptionName : Consortium Lab Azure Environment

TenantId : 257c335d-a2e7-5b65-9736-1a043ea0d3f7

Environment : AzureCloud



PS C:\\>New-ACDLab -LabNumber 5



This example demonstrates connecting to an Azure account and then creating 5 ACD training labs









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



PS C:\\>New-ACDLab -SnapshotResourceGroup parentKaliLab -SnapShotName KaliLab



This example demonstrates creating a training lab using a custom (non-default) parent VHD









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>New-ACDLab -LabName Student8



This example demonstrates create a single training lab with the name of Student8











RELATED LINKS