Get-OBPolicy
Gets the current backup policy set for the server.
Syntax
Get-OBPolicy
Description
The Get-OBPolicy cmdlet gets the current backup policy that is set for the server, including the details about scheduling backups, files included in the backup, and retention policy.
Once the changes have been made to the policy object, the updated policy should be set as the current one using the Set-OBPolicy cmdlet.
To use Microsoft Azure Backup cmdlets, the user needs to be an administrator on the protected machine.
Examples
EXAMPLE 1
Get-OBPolicy
This example returns a saved policy.
Inputs
None
Outputs
Microsoft.Internal.CloudBackup.Commands.OBPolicy[]