Share via


AutoShutdownProfile Constructors

Definition

Overloads

AutoShutdownProfile()

Initializes a new instance of the AutoShutdownProfile class.

AutoShutdownProfile(Nullable<EnableState>, Nullable<EnableState>, Nullable<ShutdownOnIdleMode>, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>)

Initializes a new instance of the AutoShutdownProfile class.

AutoShutdownProfile()

Initializes a new instance of the AutoShutdownProfile class.

public AutoShutdownProfile ();
Public Sub New ()

Applies to

AutoShutdownProfile(Nullable<EnableState>, Nullable<EnableState>, Nullable<ShutdownOnIdleMode>, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>)

Initializes a new instance of the AutoShutdownProfile class.

public AutoShutdownProfile (Microsoft.Azure.Management.LabServices.Models.EnableState? shutdownOnDisconnect = default, Microsoft.Azure.Management.LabServices.Models.EnableState? shutdownWhenNotConnected = default, Microsoft.Azure.Management.LabServices.Models.ShutdownOnIdleMode? shutdownOnIdle = default, TimeSpan? disconnectDelay = default, TimeSpan? noConnectDelay = default, TimeSpan? idleDelay = default);
new Microsoft.Azure.Management.LabServices.Models.AutoShutdownProfile : Nullable<Microsoft.Azure.Management.LabServices.Models.EnableState> * Nullable<Microsoft.Azure.Management.LabServices.Models.EnableState> * Nullable<Microsoft.Azure.Management.LabServices.Models.ShutdownOnIdleMode> * Nullable<TimeSpan> * Nullable<TimeSpan> * Nullable<TimeSpan> -> Microsoft.Azure.Management.LabServices.Models.AutoShutdownProfile
Public Sub New (Optional shutdownOnDisconnect As Nullable(Of EnableState) = Nothing, Optional shutdownWhenNotConnected As Nullable(Of EnableState) = Nothing, Optional shutdownOnIdle As Nullable(Of ShutdownOnIdleMode) = Nothing, Optional disconnectDelay As Nullable(Of TimeSpan) = Nothing, Optional noConnectDelay As Nullable(Of TimeSpan) = Nothing, Optional idleDelay As Nullable(Of TimeSpan) = Nothing)

Parameters

shutdownOnDisconnect
Nullable<EnableState>

Whether shutdown on disconnect is enabled. Possible values include: 'Enabled', 'Disabled'

shutdownWhenNotConnected
Nullable<EnableState>

Whether a VM will get shutdown when it hasn't been connected to after a period of time. Possible values include: 'Enabled', 'Disabled'

shutdownOnIdle
Nullable<ShutdownOnIdleMode>

Whether a VM will get shutdown when it has idled for a period of time. Possible values include: 'None', 'UserAbsence', 'LowUsage'

disconnectDelay
Nullable<TimeSpan>

The amount of time a VM will stay running after a user disconnects if this behavior is enabled.

noConnectDelay
Nullable<TimeSpan>

The amount of time a VM will stay running before it is shutdown if no connection is made and this behavior is enabled.

idleDelay
Nullable<TimeSpan>

The amount of time a VM will idle before it is shutdown if this behavior is enabled.

Applies to