New-​Azure​Stor​Simple​Device​Backup​Schedule​Add​Config

Creates a backup schedule configuration object.

Syntax

New-AzureStorSimpleDeviceBackupScheduleAddConfig
   -BackupType <String>
   -Enabled <Boolean>
   [-Profile <AzureSMProfile>]
   -RecurrenceType <String>
   -RecurrenceValue <Int32>
   -RetentionCount <Int64>
   [-StartFromDateTime <String>]
   [<CommonParameters>]

Description

The New-AzureStorSimpleDeviceBackupScheduleAddConfig cmdlet creates a BackupScheduleBase configuration object. Use this configuration object to create new backup policy by using the New-AzureStorSimpleDeviceBackupPolicy cmdlet.

Examples

Example 1: Create a backup configuration object

PS C:\>New-AzureStorSimpleDeviceBackupScheduleAddConfig -BackupType CloudSnapshot -RecurrenceType Daily -RecurrenceValue 1 -RetentionCount 100 -Enabled $True
VERBOSE: ClientRequestId: 426a79ee-fed3-4d3d-9123-e371f83222b3_PS


BackupType     : CloudSnapshot
Recurrence     : Microsoft.WindowsAzure.Management.StorSimple.Models.ScheduleRecurrence
RetentionCount : 100
StartTime      : 2014-12-16T00:37:19+05:30
Status         : Enabled

This command creates a backup schedule base object for cloud snapshot backups. The backup occurs every day, and the backups are kept for 100 days. This schedule is enabled from the default time, which is the current time.

Required Parameters

-BackupType

Specifies the backup type. Valid values are: LocalSnapshot and CloudSnapshot.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Enabled

Indicates whether to enable the backup schedule.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RecurrenceType

Specifies the type of recurrence for this backup schedule. Valid values are:

  • Minutes
  • Hourly
  • Daily
  • Weekly
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RecurrenceValue

Specifies how often to make a backup. This parameter uses the unit specified by the RecurrenceType parameter.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RetentionCount

Specifies the number of days to keep a backup.

Type:Int64
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Profile

Specifies an Azure profile.

Type:AzureSMProfile
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StartFromDateTime

Specifies the date from which to start making backups. The default value is the current time.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

BackupScheduleBase

This cmdlet returns a BackupScheduleBase object. Use a BackupScheduleBase to construct new backup policy.