PowerShell script exchange
Post Reply
vmm
Service Provider
Posts: 15
Liked: never
Joined: Nov 23, 2015 10:09 am
Full Name: Marat Akhmetianov
Contact:

How to create vcloud based job using organization

Post by vmm »

Hi!

How can we add to job based on vcloud with organization as the backup source?

Code: Select all

$vcloud = Find-VBRvCloudEntity -VApp -Name "vApp_CentOS7_V3"
$repository = Get-VBRBackupRepository -Name "Backup Repository 1"
Add-VBRvCloudJob -Name "cloud" -Entity $vcloud -BackupRepository $repository
This is for vApp
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: How to create vcloud based job using organization

Post by veremin »

Have you tried something like this?

Code: Select all

$vDC = Find-VBRvCloudEntity -OrganizationVdc -Name "Name of your vDC"
$repository = Get-VBRBackupRepository -Name "Backup Repository 1"
Add-VBRvCloudJob -Name "cloud" -Entity $vDC -BackupRepository $repository
Thanks.
vmm
Service Provider
Posts: 15
Liked: never
Joined: Nov 23, 2015 10:09 am
Full Name: Marat Akhmetianov
Contact:

Re: How to create vcloud based job using organization

Post by vmm »

Yes. OrgVDC for VDC works. But what if we want to add Organization?
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: How to create vcloud based job using organization

Post by veremin » 1 person likes this post

Oh, I must have misread your original post.

What if you try to run Find-VBRvCloudEntity and use -Full parameter to view results as the list of all vCloud entities. If my memory serves me well, Organization Item should be returned among other entities.

Then, it can be selected as a source for vCloud backup job.

Thanks.
vmm
Service Provider
Posts: 15
Liked: never
Joined: Nov 23, 2015 10:09 am
Full Name: Marat Akhmetianov
Contact:

Re: How to create vcloud based job using organization

Post by vmm »

Thanks. We'll try that one.
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests