Share via


BackupSchedule Constructors

Definition

Overloads

BackupSchedule()

Initializes a new instance of the BackupSchedule class.

BackupSchedule(Int32, FrequencyUnit, Boolean, Int32, Nullable<DateTime>, Nullable<DateTime>)

Initializes a new instance of the BackupSchedule class.

BackupSchedule()

Initializes a new instance of the BackupSchedule class.

public BackupSchedule ();
Public Sub New ()

Applies to

BackupSchedule(Int32, FrequencyUnit, Boolean, Int32, Nullable<DateTime>, Nullable<DateTime>)

Initializes a new instance of the BackupSchedule class.

public BackupSchedule (int frequencyInterval, Microsoft.Azure.Management.WebSites.Models.FrequencyUnit frequencyUnit, bool keepAtLeastOneBackup, int retentionPeriodInDays, DateTime? startTime = default, DateTime? lastExecutionTime = default);
new Microsoft.Azure.Management.WebSites.Models.BackupSchedule : int * Microsoft.Azure.Management.WebSites.Models.FrequencyUnit * bool * int * Nullable<DateTime> * Nullable<DateTime> -> Microsoft.Azure.Management.WebSites.Models.BackupSchedule
Public Sub New (frequencyInterval As Integer, frequencyUnit As FrequencyUnit, keepAtLeastOneBackup As Boolean, retentionPeriodInDays As Integer, Optional startTime As Nullable(Of DateTime) = Nothing, Optional lastExecutionTime As Nullable(Of DateTime) = Nothing)

Parameters

frequencyInterval
Int32

How often the backup should be executed (e.g. for weekly backup, this should be set to 7 and FrequencyUnit should be set to Day)

frequencyUnit
FrequencyUnit

The unit of time for how often the backup should be executed (e.g. for weekly backup, this should be set to Day and FrequencyInterval should be set to 7). Possible values include: 'Day', 'Hour'

keepAtLeastOneBackup
Boolean

True if the retention policy should always keep at least one backup in the storage account, regardless how old it is; false otherwise.

retentionPeriodInDays
Int32

After how many days backups should be deleted.

startTime
Nullable<DateTime>

When the schedule should start working.

lastExecutionTime
Nullable<DateTime>

Last time when this schedule was triggered.

Applies to