PowerShell script exchange
Post Reply
collinp
Expert
Posts: 152
Liked: 10 times
Joined: Feb 14, 2012 8:56 pm
Full Name: Collin P
Contact:

Windows Agent Powershell equivalent commands

Post by collinp » Jul 18, 2018 4:51 pm

We are trying to standardize and automate the creation of jobs for Physical servers. Is there a supported or unsupported way to do the following with Windows Physical Servers whether powershell or using Veeam api calls?

Thank you,
Collin

1. Hyper-V command (Create a new Hyper-V job and add a vm to the job):
Add-VBRHvBackupJob -name $newjobname -BackupRepository $Repository Name -Entity $Entity

1a. Physical Server Equivalent (Create a new Physical Server Job and add a physical server to the job):
?


2. Hyper-V command (Add a vm to an existing job):
Add-VBRHvJobObject -job $JobName -Entities $Entity


2a. Physical Server Equivalent(Add a physical server to an existing job):
?

Vitaliy S.
Product Manager
Posts: 23230
Liked: 1611 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Windows Agent Powershell equivalent commands

Post by Vitaliy S. » Jul 19, 2018 12:11 pm

Hi Collin,

There are two possible scenarios over here: standalone agent job configuration and managing Agents through Veeam B&R server. For the first one can be achieved using Veeam Agent Configurator APIs, see this link on how to create and import the required job configs: Veeam Agent for Microsoft Windows 2.2: Configurator Reference.

The second scenario where you manage all Agents via Veeam B&R should implemented using these APIs: Veeam Agent Management Protection Scope, Veeam Agent Management Protection Groups and Veeam Agent for Microsoft Windows Backup Jobs

Thank you!

collinp
Expert
Posts: 152
Liked: 10 times
Joined: Feb 14, 2012 8:56 pm
Full Name: Collin P
Contact:

Re: Windows Agent Powershell equivalent commands

Post by collinp » Jul 21, 2018 12:05 am

Agents are managed through the Veeam B&R server and we don't use protection groups. I already looked at this page and there don't appear to be any powershell commands to create new jobs and to add servers to existing jobs: https://helpcenter.veeam.com/docs/backu ... tml?ver=95

Collin

veremin
Product Manager
Posts: 17078
Liked: 1475 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Windows Agent Powershell equivalent commands

Post by veremin » Jul 21, 2018 5:57 pm

Correct, currently the functionality is not there. Expect it in the next product update. Thanks.

collinp
Expert
Posts: 152
Liked: 10 times
Joined: Feb 14, 2012 8:56 pm
Full Name: Collin P
Contact:

Re: Windows Agent Powershell equivalent commands

Post by collinp » Jul 22, 2019 6:24 pm

I'm circling back on this post from a year ago. Update 4 was supposed to add support for creating Physical server jobs and adding physical servers to existing jobs via powershell. Has that happened yet? I can't find it in the powershell reference library. So in the 2 powershell commands below, what is the actual command I should replace the "Add-VBRPhysicalServerObject" with?

1. Create a new physical server job and add a physical server to the job:
Add-VBRPhysicalServerObject -name $newjobname -BackupRepository $Repository Name -Entity $Entity

2. Add a Physical Server to an existing job:
Add-VBRPhysicalServerObject -job $JobName -Entities $Entity

Thank you,

Collin

veremin
Product Manager
Posts: 17078
Liked: 1475 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Windows Agent Powershell equivalent commands

Post by veremin » Jul 22, 2019 6:27 pm

Kindly, check our User Guide (especially Agent Management section). Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests