November 2017
Intermediate to advanced
276 pages
7h 6m
English
First off, you have to set the vault context to apply it to all subsequent cmdlets by running the following cmdlet:
Get-AzureRmRecoveryServicesVault -Name PSRS | Set-AzureRmRecoveryServicesVaultContext
At the time of writing, you cannot change the backup frequency using PowerShell. However, you can change the retention using the following cmdlets. Considering that, I will put the result in a variable, as it will be used later:
$SchedulePolicy = Get-AzureRmRecoveryServicesBackupSchedulePolicyObject -WorkloadType "AzureVM"$RetentionPolicy = Get-AzureRmRecoveryServicesBackupRetentionPolicyObject -WorkloadType "AzureVM"$RetentionPolicy.DailySchedule.DurationCountInDays = 14
Now, you can build your ...