--- title: "New-VBRMongoDBContainer" description: "This cmdlet creates the VBRMongoDBContainer object. This object contains custom credentials for computers in MongoDB replica sets. Use this object to with the New-VBRMongoDBContainer cmdlet to create a container for existing custom credentials sets." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/new-vbrmongodbcontainer.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Veeam Plug-Ins for Enterprise Applications, MongoDB Backup and Epic EHR System Protection > Working with Managed Veeam Plug-Ins, MongoDB Backup and Epic EHR System Protection > Application Backup Policy Settings for MongoDB > New-VBRMongoDBContainer" dateModified: "2026-09-02" --- # New-VBRMongoDBContainer ## Short Description Creates a MongoDB container for an array of existing custom credentials. **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` New-VBRMongoDBContainer -CustomCredentials [] ``` ## Detailed Description This cmdlet creates the [`VBRMongoDBContainer`](vbrmongodbcontainer.md) object. This object contains custom credentials for computers in MongoDB replica sets. Use this object to with the `New-VBRMongoDBContainer` cmdlet to create a container for existing custom credentials sets. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

CustomCredentials

Specifies custom credentials for computers in MongoDB replica sets.

Accepts the VBRMongoDBCustomCredentials[] object. To get this object run the New-VBRMongoDBCustomCredentials cmdlet.

VBRMongoDBCustomCredentials[]

True

Named

True (ByPropertyName, ByValue)

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Output Object The cmdlet returns the [`VBRMongoDBContainer`](vbrmongodbcontainer.md) object. ## Examples ::: example ### Combine Computer Credentials This command combines credentials for multiple computers in a MongoDB container to a single set of credentials. ``` $mongoComputerContainer = New-VBRMongoDBContainer -CustomCredentials ($computer0CustomCredentials, $computer1CustomCredentials) ``` ::: ## Related Commands - [`Add-VBRProtectionGroup`](add-vbrprotectiongroup.md) - [`New-VBRMongoDBCustomCredentials`](new-vbrmongodbcustomcredentials.md)