< Back
Set-AzureRmDtlAutoStartPolicy
Post
NAME Set-AzureRmDtlAutoStartPolicy
SYNOPSIS
Sets the auto start policy of a lab in DevTest Labs.
SYNTAX
Set-AzureRmDtlAutoStartPolicy [-LabName] <String> [-ResourceGroupName] <String> [-Disable] [[-Time] <DateTime>] [[-Days] {Sunday | Monday |
Tuesday | Wednesday | Thursday | Friday | Saturday}] [-DefaultProfile <IAzureContextContainer>] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-AzureRmDtlAutoStartPolicy [-LabName] <String> [-ResourceGroupName] <String> [[-Enable]] [[-Time] <DateTime>] [[-Days] {Sunday | Monday |
Tuesday | Wednesday | Thursday | Friday | Saturday}] [-DefaultProfile <IAzureContextContainer>] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Set-AzureRmDtlAutoStartPolicy cmdlet sets the auto start policy of a lab, which allows lab virtual machines to be scheduled for automatic
start. The cmdlet uses the specified resource group and name of the lab to set the policy.
PARAMETERS
-Days <DayOfWeek[]>
Specifies, as an array, the days of the week for when the virtual machines of the lab must be started.
Required? false
Position? 5
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-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 virtual machines in 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 virtual machines in 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 automatic start 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
-Time <DateTime>
Specifies the time when the virtual machines of the lab must be started.
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.PSSchedule
This cmdlet returns the schedule that specifies when the virtual machines of the lab must be started.
NOTES
1:
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... tartpolicy
Get-AzureRmDtlAutoStartPolicy
SYNOPSIS
Sets the auto start policy of a lab in DevTest Labs.
SYNTAX
Set-AzureRmDtlAutoStartPolicy [-LabName] <String> [-ResourceGroupName] <String> [-Disable] [[-Time] <DateTime>] [[-Days] {Sunday | Monday |
Tuesday | Wednesday | Thursday | Friday | Saturday}] [-DefaultProfile <IAzureContextContainer>] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-AzureRmDtlAutoStartPolicy [-LabName] <String> [-ResourceGroupName] <String> [[-Enable]] [[-Time] <DateTime>] [[-Days] {Sunday | Monday |
Tuesday | Wednesday | Thursday | Friday | Saturday}] [-DefaultProfile <IAzureContextContainer>] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Set-AzureRmDtlAutoStartPolicy cmdlet sets the auto start policy of a lab, which allows lab virtual machines to be scheduled for automatic
start. The cmdlet uses the specified resource group and name of the lab to set the policy.
PARAMETERS
-Days <DayOfWeek[]>
Specifies, as an array, the days of the week for when the virtual machines of the lab must be started.
Required? false
Position? 5
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-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 virtual machines in 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 virtual machines in 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 automatic start 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
-Time <DateTime>
Specifies the time when the virtual machines of the lab must be started.
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.PSSchedule
This cmdlet returns the schedule that specifies when the virtual machines of the lab must be started.
NOTES
1:
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... tartpolicy
Get-AzureRmDtlAutoStartPolicy