Skip to content

Latest commit

 

History

History
174 lines (132 loc) · 3.98 KB

Set-AzureRmDtlVMsPerLabPolicy.md

File metadata and controls

174 lines (132 loc) · 3.98 KB
external help file Module Name ms.assetid online version schema
Microsoft.Azure.Commands.DevTestLabs.dll-Help.xml
AzureRM.DevTestLabs
D2A7ECF6-E2B1-4BD5-BEA6-C9EC0C7377BA
2.0.0

Set-AzureRmDtlVMsPerLabPolicy

SYNOPSIS

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

SYNTAX

Enable (Default)

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

Disable

Set-AzureRmDtlVMsPerLabPolicy [[-MaxVMs] <Int32>] [-Disable] [-LabName] <String> [-ResourceGroupName] <String>
 [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<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

PARAMETERS

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure

Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Parameter Sets: (All)
Aliases: AzureRmContext, AzureCredential

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

-Disable

Indicates that this cmdlet disables the policy of the lab.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: Disable
Aliases:

Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Enable

Indicates that this cmdlet enables the policy of the lab.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: Enable
Aliases:

Required: False
Position: 2
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: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-MaxVMs

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

Type: System.Nullable`1[System.Int32]
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ResourceGroupName

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

Type: System.String
Parameter Sets: (All)
Aliases:

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

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

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

System.String

OUTPUTS

Microsoft.Azure.Commands.DevTestLabs.Models.PSPolicy

NOTES

RELATED LINKS

Get-AzureRmDtlVMsPerLabPolicy