< Back
Set-AzureRmDtlAllowedVMSizesPolicy
Post
NAME Set-AzureRmDtlAllowedVMSizesPolicy
SYNOPSIS
Sets the allowed virtual machine sizes policy of a lab in DevTest Labs.
SYNTAX
Set-AzureRmDtlAllowedVMSizesPolicy [-LabName] <String> [-ResourceGroupName] <String> [-Disable] [[-VmSizes] <String[]>] [-DefaultProfile
<IAzureContextContainer>] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-AzureRmDtlAllowedVMSizesPolicy [-LabName] <String> [-ResourceGroupName] <String> [[-Enable]] [[-VmSizes] <String[]>] [-DefaultProfile
<IAzureContextContainer>] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Set-AzureRmDtlAllowedVMSizesPolicy cmdlet sets the allowed virtual machine sizes policy, which specifies a list of virtual machine sizes
allowed in a lab. 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.
Required? true
Position? 3
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Enable [<SwitchParameter>]
Indicates that this cmdlet enables the policy.
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 machine sizes policy.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
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
-VmSizes <String[]>
Specifies, as a string array, the list of virtual machine sizes allowed in the lab.
Required? false
Position? 4
Default value None
Accept pipeline input? False
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 list of virtual machine sizes allowed in the lab.
NOTES
1:
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... izespolicy
Get-AzureRmDtlAllowedVMSizesPolicy
SYNOPSIS
Sets the allowed virtual machine sizes policy of a lab in DevTest Labs.
SYNTAX
Set-AzureRmDtlAllowedVMSizesPolicy [-LabName] <String> [-ResourceGroupName] <String> [-Disable] [[-VmSizes] <String[]>] [-DefaultProfile
<IAzureContextContainer>] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-AzureRmDtlAllowedVMSizesPolicy [-LabName] <String> [-ResourceGroupName] <String> [[-Enable]] [[-VmSizes] <String[]>] [-DefaultProfile
<IAzureContextContainer>] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Set-AzureRmDtlAllowedVMSizesPolicy cmdlet sets the allowed virtual machine sizes policy, which specifies a list of virtual machine sizes
allowed in a lab. 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.
Required? true
Position? 3
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Enable [<SwitchParameter>]
Indicates that this cmdlet enables the policy.
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 machine sizes policy.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
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
-VmSizes <String[]>
Specifies, as a string array, the list of virtual machine sizes allowed in the lab.
Required? false
Position? 4
Default value None
Accept pipeline input? False
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 list of virtual machine sizes allowed in the lab.
NOTES
1:
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... izespolicy
Get-AzureRmDtlAllowedVMSizesPolicy