Apply-VBRManagedByAgentPolicy
Short Description
Assigns Veeam Agent backup policies to protected computers.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Apply-VBRManagedByAgentPolicy [-Policy] <VBRComputerBackupJob[]> [-RunAsync] [<CommonParameters>] |
Detailed Description
This cmdlet assigns Veeam Agent backup policies to protected computers.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Policy |
Specifies a Veeam Agent backup policy that you want to assign to protected computers.
Accepts the |
|
True |
0 |
True (ByPropertyName, ByValue) |
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Assigning Veeam Agent Backup Policy to Protected Computers
This example shows how to assign a Veeam Agent backup policy to protected computers.
|
$job = Get-VBRComputerBackupJob -Name "WinSrv2049" Apply-VBRManagedByAgentPolicy -Policy $job |
Perform the following steps:
- Run the
Get-VBRComputerBackupJobReturns Veeam Agent backup jobs and Veeam Agent backup policies. cmdlet. Specify theNameparameter value. Save the result to the$jobvariable. - Run the
Apply-VBRManagedByAgentPolicycmdlet. Set the$jobvariable as thePolicyparameter value.
Related Commands
Get-VBRComputerBackupJobReturns Veeam Agent backup jobs and Veeam Agent backup policies.