--- title: "Add-VBORepository" description: "This cmdlet adds the following types of backup repositories to the Veeam Backup for Microsoft 365 infrastructure: a JET-based backup repository or an object storage repository." canonical: "https://helpcenter.veeam.com/docs/vbo365/powershell/add-vborepository.html" breadcrumb: "PowerShell Reference > Veeam Backup for Microsoft 365 PowerShell Reference > Backup Infrastructure > JET-based Backup Repositories and Object Storage Repositories > Add-VBORepository" dateModified: "2026-08-21" --- # Add-VBORepository ## Short Description Adds a JET-based backup repository or an object storage repository to the Veeam Backup for Microsoft 365 infrastructure. ## Syntax This cmdlet provides the following parameter sets:
DefaultParameterSet (Default)
DailyParameterSet
DailyObjectStorageParameterSet
MonthlyParameterSet
MonthlyObjectStorageParameterSet
DailyCustomRetentionParameterSet
DailyCustomRetentionObjectStorageParameterSet
MonthlyCustomRetentionParameterSet
MonthlyCustomRetentionObjectStorageParameterSet
DefaultObjectStorageParameterSet
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
CustomRetentionPeriod |
For the Specifies the retention period to keep data on a backup repository. The retention period is defined according to the
Veeam Backup for Microsoft 365 will remove items from a backup repository once this period is passed. |
|
True |
Named |
False |
|
CustomRetentionPeriodType |
Specifies a type of custom retention period. Veeam Backup for Microsoft 365 will remove items from a backup repository once this period is passed. You can set the custom retention period to either of the following types:
Set the |
|
True |
Named |
False |
|
DailyTime |
For daily retention policy schedule. Specifies the time of the day when Veeam Backup for Microsoft 365 must apply the retention policy. Default: 00:00:00 |
|
True |
Named |
False |
|
DailyType |
For daily retention policy schedule. Specifies the days when Veeam Backup for Microsoft 365 must apply the retention policy:
Default: Everyday |
|
True |
Named |
False |
|
Description |
Specifies a description of the backup repository. The default description contains information on the user who added the backup repository, date and time when the backup repository was added. |
|
False |
Named |
False |
|
Force |
Defines that the cmdlet will add a backup repository to the Veeam Backup for Microsoft 365 infrastructure without notifying the user. Default: False |
|
False |
Named |
False |
|
IgnoreProxyPoolApplianceAccessValidation |
Defines that the cmdlet will ignore check whether backup proxy servers that belong to the specified backup proxy pool can access the archiver appliance. Default: False |
|
False |
Named |
False |
|
MonthlyDayNumber |
For monthly retention policy schedule. Specifies the order number for the day of the week when Veeam Backup for Microsoft 365 must apply the retention policy.
Default: First |
|
True |
Named |
False |
|
MonthlyDayOfWeek |
For monthly retention policy schedule. Specifies the day of the week when Veeam Backup for Microsoft 365 must apply the retention policy.
Default: Monday |
|
True |
Named |
False |
|
MonthlyTime |
For monthly retention policy schedule. Specifies the time of the day when Veeam Backup for Microsoft 365 must apply the retention policy. Default: 18:00:00 |
|
True |
Named |
False |
|
Name |
Specifies a name of the backup repository. The cmdlet will create a backup repository with this name. |
|
True |
Named |
False |
|
ObjectStorageEncryptionKey |
Specifies object storage encryption key. Veeam Backup for Microsoft 365 will encrypt data that is saved to this object storage repository. Accepts the To get this object, run the |
|
False |
Named |
False |
|
ObjectStorageRepository |
Specifies an object storage repository. The cmdlet will add this object storage repository. Accepts the To get this object, run the |
True |
Named |
False |
|
|
Path |
Specifies the full path to a directory on the backup proxy server where you want to store your backups. |
|
True |
Named |
False |
|
Proxy |
Specifies a backup proxy server. The cmdlet will map a new JET-based backup repository or object storage repository to this backup proxy server. Accepts the To get this object, run the |
False |
Named |
False |
|
|
ProxyPool |
Specifies a backup proxy pool. The cmdlet will map a new object storage repository to this backup proxy pool. Accepts the To get this object, run the |
False |
Named |
False |
|
|
RetentionFrequencyType |
Specifies retention policy schedule. Veeam Backup for Microsoft 365 will check a backup repository and will remove the outdated backups according to this schedule. You can set either of the following types of schedule:
Default: Daily |
|
True |
Named |
False |
|
RetentionPeriod |
Specifies the retention period in years. Veeam Backup for Microsoft 365 will remove items from a backup repository once this period is passed. You can set either of the following periods:
Default: Years3 Note: Apply the |
|
True |
Named |
False |
|
RetentionType |
Specifies a type of retention policy. You can set either of the following types:
Default: SnapshotBased |
|
False |
Named |
False |
|
SyncNow |
Defines that the cmdlet will start to synchronize cache between the object storage repository and the PersistentCache database on the PostgreSQL instance. Default: False |
|
False |
Named |
False |