Edit-AzDataProtectionPolicyTriggerClientObject
Updates Backup schedule of an existing backup policy.
Syntax
Edit-AzDataProtectionPolicyTriggerClientObject
-Policy <IBackupPolicy>
[-RemoveSchedule]
[<CommonParameters>]
Edit-AzDataProtectionPolicyTriggerClientObject
-Policy <IBackupPolicy>
-Schedule <String[]>
[<CommonParameters>]
Description
Updates Backup schedule of an existing backup policy.
Examples
Example 1: Add Daily schedule to Azure Backup rule.
$schedule = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays (Get-Date) -IntervalType Daily -IntervalCount 1
Edit-AzDataProtectionPolicyTriggerClientObject -Policy $pol -Schedule $schedule
DatasourceType ObjectType
-------------- ----------
{Microsoft.Compute/disks} BackupPolicy
This command updates backup schedule of given policy to daily backup.
Parameters
-Policy
Backup Policy object. To construct, see NOTES section for POLICY properties and create a hash table.
Type: | IBackupPolicy |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveSchedule
Specifies whether to remove the backup Schedule.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Schedule
Schedule to be associated to backup policy.
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.