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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure PowerShell