Hello all,
I have been struggling to gather a list that contains Hostname (VM that is replicated, JobName, CreationDate) using powershell.
I can get a list in job level using "Get-VBRReplica" but it does not contain vms.
Tried using GetObjectsInJob() or Get-VBRJobObject but i think these are valid for normal replication jobs not cloud connect replication.
Method invocation failed because [Veeam.Backup.Core.CBackup] does not contain a method named 'GetObjectsInJob'.
I have tried to gather this using MSSQL but understanding table logic was very hard.
Note: We can export replicas->ready menu output in console but we need this in order to automate another script so getting this data manually is not an option.
-
- Service Provider
- Posts: 12
- Liked: never
- Joined: Jul 25, 2022 10:30 am
- Contact:
-
- Veeam Software
- Posts: 3019
- Liked: 700 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: Cloud Connect Replication - List by VM
Hi sturmtr,
Just to confirm, you want to run this on the tenant VBR and get a list of all VMs being replicated to a provider, correct?
Quick test shows Get-VBRJobObject works just fine. Example:
Is it what you're looking for? I'm not sure if you're meaning replica creation time or job creation time, but to get list of VMs added to replica job, pass the job to Get-VBRJobObject
Just to confirm, you want to run this on the tenant VBR and get a list of all VMs being replicated to a provider, correct?
Quick test shows Get-VBRJobObject works just fine. Example:
Code: Select all
$job = Get-VBRJob -name 'dd-ps-rep-test'
$jObject = Get-VBRJobObject -Job $job
$psData = [PSCustomObject]@{
JobName = $job.Name
VmName = $jObject.name
JobCreationTime = $job.Info.CreationTimeUTC
}
$psData
JobName VmName JobCreationTime
------- ------ ---------------
dd-ps-rep-test dd-tinyvm 15.10.2025 11:01:23
David Domask | Product Management: Principal Analyst
Who is online
Users browsing this forum: No registered users and 8 guests