< Back
Set-AzureRmDtlVMsPerUserPolicy
Post
NAME Set-AzureRmDtlVMsPerUserPolicy
SYNOPSIS
Sets the virtual machines per user policy of a lab in DevTest Labs.
SYNTAX
Set-AzureRmDtlVMsPerUserPolicy [-LabName] <String> [-ResourceGroupName] <String> [-Disable] [[-MaxVMs] <Int32>] [-DefaultProfile
<IAzureContextContainer>] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-AzureRmDtlVMsPerUserPolicy [-LabName] <String> [-ResourceGroupName] <String> [[-Enable]] [[-MaxVMs] <Int32>] [-DefaultProfile
<IAzureContextContainer>] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Set-AzureRmDtlVMsPerUserPolicy cmdlet sets the virtual machines per user policy of a lab, which sets the maximum number of virtual machines
allowed per user. The cmdlet uses the specified resource group and name of the lab to set the policy.
PARAMETERS
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Disable [<SwitchParameter>]
Indicates that this cmdlet disables the policy for the lab.
Required? true
Position? 3
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Enable [<SwitchParameter>]
Indicates that this cmdlet enables the policy for the lab.
Required? false
Position? 2
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-LabName <String>
Specifies the name of the lab for which this cmdlet sets the virtual machines per user policy.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-MaxVMs <Int32>
Specifies the maximum number of virtual machines that can be created in the lab.
Required? false
Position? 4
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of the resource group that the lab belongs to.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
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 (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.DevTestLabs.Models.PSPolicy
This cmdlet returns the policy that specifies the maximum number of virtual machines that can be created by a user in the lab.
NOTES
1:
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... userpolicy
Get-AzureRmDtlVMsPerUserPolicy
SYNOPSIS
Sets the virtual machines per user policy of a lab in DevTest Labs.
SYNTAX
Set-AzureRmDtlVMsPerUserPolicy [-LabName] <String> [-ResourceGroupName] <String> [-Disable] [[-MaxVMs] <Int32>] [-DefaultProfile
<IAzureContextContainer>] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-AzureRmDtlVMsPerUserPolicy [-LabName] <String> [-ResourceGroupName] <String> [[-Enable]] [[-MaxVMs] <Int32>] [-DefaultProfile
<IAzureContextContainer>] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Set-AzureRmDtlVMsPerUserPolicy cmdlet sets the virtual machines per user policy of a lab, which sets the maximum number of virtual machines
allowed per user. The cmdlet uses the specified resource group and name of the lab to set the policy.
PARAMETERS
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Disable [<SwitchParameter>]
Indicates that this cmdlet disables the policy for the lab.
Required? true
Position? 3
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Enable [<SwitchParameter>]
Indicates that this cmdlet enables the policy for the lab.
Required? false
Position? 2
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-LabName <String>
Specifies the name of the lab for which this cmdlet sets the virtual machines per user policy.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-MaxVMs <Int32>
Specifies the maximum number of virtual machines that can be created in the lab.
Required? false
Position? 4
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of the resource group that the lab belongs to.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
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 (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.DevTestLabs.Models.PSPolicy
This cmdlet returns the policy that specifies the maximum number of virtual machines that can be created by a user in the lab.
NOTES
1:
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... userpolicy
Get-AzureRmDtlVMsPerUserPolicy