< Back

Set-AzureRmDtlAutoShutdownPolicy

Thu Apr 04, 2019 5:39 am

NAME Set-AzureRmDtlAutoShutdownPolicy



SYNOPSIS

Sets the auto shutdown policy of a lab DevTest Labs.





SYNTAX

Set-AzureRmDtlAutoShutdownPolicy [-LabName] <String> [-ResourceGroupName] <String> [-Disable] [[-Time] <DateTime>] [-DefaultProfile

<IAzureContextContainer>] [-Confirm] [-WhatIf] [<CommonParameters>]



Set-AzureRmDtlAutoShutdownPolicy [-LabName] <String> [-ResourceGroupName] <String> [[-Enable]] [[-Time] <DateTime>] [-DefaultProfile

<IAzureContextContainer>] [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Set-AzureRmDtlAutoShutdownPolicy cmdlet sets the auto shutdown policy of a lab, which automatically shuts down all the virtual machines in the

lab at a specified time of the day. 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 the cmdlet disables the policy in the lab.



Required? true

Position? 3

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Enable [<SwitchParameter>]

Indicates that the cmdlet enables the policy 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 auto shutdown 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, as a DateTime object, for when the virtual machines in the lab must shut down.



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 which specifies when the virtual machines in the lab must shut down.





NOTES









1:















RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... downpolicy

Get-AzureRmDtlAutoShutdownPolicy