Set-​Azure​Rm​Dtl​VMs​Per​Lab​Policy

Sets the virtual machines per lab policy of a lab in DevTest Labs.

Syntax

Set-AzureRmDtlVMsPerLabPolicy
   [-LabName] <String>
   [-ResourceGroupName] <String>
   [-Disable]
   [[-MaxVMs] <Int32>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]
Set-AzureRmDtlVMsPerLabPolicy
   [-LabName] <String>
   [-ResourceGroupName] <String>
   [-Enable]
   [[-MaxVMs] <Int32>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

The Set-AzureRmDtlVMsPerLabPolicy cmdlet sets the virtual machines per lab policy of a lab, which sets the total number of virtual machines allowed in a lab. The cmdlet uses the specified resource group and name of the lab to set the policy.

Examples

1:

Required Parameters

-Disable

Indicates that this cmdlet disables the policy of the lab.

Type:SwitchParameter
Position:3
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-LabName

Specifies the name of the lab for which this cmdlet sets the virtual machines per lab policy.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

Specifies the name of the resource group that the lab belongs to.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Enable

Indicates that this cmdlet enables the policy of the lab.

Type:SwitchParameter
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-MaxVMs

Specifies the maximum number of virtual machines that can be created in the lab.

Type:Int32
Position:4
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.Azure.Commands.DevTestLabs.Models.PSPolicy

This cmdlet returns the policy that specifies the maximum number of virtual machines that can be created in the lab.