Bearbeiten

Freigeben über


Get-AzLabServicesTemplateVM

API to get the template vm for the lab.

Syntax

Get-AzLabServicesTemplateVM
   -ResourceGroupName <String>
   -LabName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzLabServicesTemplateVM
   [-SubscriptionId <String[]>]
   -Lab <Lab>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

API to get the template vm for the lab.

Examples

Example 1: Get the template for the lab.

Get-AzLabServicesTemplateVM -ResourceGroupName "group name" -LabName "lab name"

Name Type
---- ----
0    Microsoft.LabServices/labs/virtualMachines

Returns the template VM for the lab.

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Lab

To construct, see NOTES section for LAB properties and create a hash table.

Type:Lab
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-LabName

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

The ID of the target subscription.

Type:String[]
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Lab

Outputs

IVirtualMachine