New-OBPolicy

Generates an empty OBPolicy object.

Syntax

New-OBPolicy

Description

The New-OBPolicy cmdlet creates a new, empty backup policy (OBPolicy object).

Other cmdlets can be used to define what items will be included or excluded in backups, when the backups will run, and where backups will be stored. Then, use the Set-OBPolicy cmdlet to make the new policy the one that will be used for scheduled backups.

To use Microsoft Azure Backup cmdlets, the user needs to be an administrator on the protected machine.

Examples

EXAMPLE 1

New-OBPolicy

This example creates a new empty backup policy.

Inputs

None

Outputs

Microsoft.Internal.CloudBackup.Commands.OBPolicy