Quantcast
Channel: R&D Forums
Viewing all articles
Browse latest Browse all 9974

PowerShell • Re: add new Azure blob storage account to existing backupjob with powershell

$
0
0
Hi sandsturm,

Yes, it's a little unclear, but you can use the following process to update the Job Objects.

Code:

$allObject = @()$targetJob = Get-VBRUnstructuredBackupJob -Name "Name of job to add objects to"$srv = Get-VBRUnstructuredServer -name "StorageAccountName"$newObject = New-VBRObjectStorageBackupJobObject -Server $srv $originalObjects = $targetJob.BackupObjects$allObject += $originalObjects$allObject += $newObjectSet-VBRObjectStorageBackupJob -Job $targetJob -BackupObject $allObject
Basically we take the existing objects, create an empty array $allObject and add both the new object and the original objects and add them to the empty array.

Then pass $allObject to -BackupObject parameter.

I will ask the tech writers to please add an example for this on the Set-VBRObjectStorageBackupJob page.

Statistics: Posted by david.domask — Jun 12, 2025 2:50 pm



Viewing all articles
Browse latest Browse all 9974

Latest Images

Trending Articles



Latest Images