New-SBMessageContainer
New-SBMessageContainer
This cmdlet creates a new message container database that Service Bus for Windows Server messaging entities (queues, topics, and subscriptions) use.
Syntax
Parameter Set: Default
New-SBMessageContainer -ContainerDBConnectionString <String> [-SBFarmDBConnectionString <String> ] [ <CommonParameters>]
Detailed Description
Run New-SBMEssageContainer to create a new Service Bus for Windows Server message container. A Service Bus for Windows Server message container is a database which holds the Service Bus for Windows Server entities and messages. While an initial message container is created when a Service Bus for Windows Server farm is created, it is highly recommended to create multiple containers for scale, load balancing, and resiliency.If the provided database server and name point to an existing database, this command will attempt to use that database as a new message container. If the database provided was already used as a message container, this command will fail with a SchemaDeploy error.
Parameters
-ContainerDBConnectionString<String>
Represents a connection string of the Service Bus for Windows Server container database.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-SBFarmDBConnectionString<String>
Represents a connection string of the Service Bus for Windows Server database.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example
Creates a new Service Bus for Windows Server message container on the local database server. Creates a new database named container2.8
PS C:\> New-SBMessageContainer -ContainerDBConnectionString "data source=localhost\sqlexpress;database=container2;integrated security=true"