Mount-NAVApplication

Mounts the Business Central application against the specified server instance.

Syntax

Mount-NAVApplication
     [-DatabaseServer <String>]
     [-DatabaseInstance <DatabaseInstance>]
     -DatabaseName <String>
     [-DatabaseCredentials <PSCredential>]
     [-DoNotSaveConfiguration]
     [-ServerInstance] <String>
     [-Force]
     [-WhatIf]
     [-Confirm]
     [<CommonParameters>]

Description

Use the Mount-NAVApplication cmdlet to mount a Business Central database that contains the application tables against a Business Central Server instance. You can only mount one Business Central application at a time.

The database can be a dedicated application database, or a database that contains all Business Central tables.

Examples

EXAMPLE 1

Mount-NAVApplication BC -DatabaseServer dbserver1 -DatabaseName 'Business Central app'

This example mounts the Business Central application on the BC server instance. The application is contained in the Business Central app database, which is hosted on the dbserver1 database server.

EXAMPLE 2

Mount-NAVApplication BC -DatabaseServer dbserver1 -DatabaseName 'Business Central app' -DatabaseCredentials (Get-Credential)

This example mounts the Business Central application on the BC server instance and configures the Business Central Server instance to use SQL authentication with the application database. The database credentials (user name and password) are provided in a dialog box that results from the call to the Get-Credential cmdlet.

Parameters

-Confirm

Prompts you for confirmation before executing the command.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DatabaseCredentials

The user name and password of the login account that the Business Central Server instance will use to connect to the Business Central database in SQL Server. Setting parameter is configures the Business Central Server instance to use SQL Server Authentication instead of Windows Authentication on the connection to the application database. The login account must be a member of the db_owner role on the database.

Type:PSCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-DatabaseInstance

Specifies the name of the SQL Server instance that hosts the database. You can also specify the instance in the DatabaseServer parameter, such as like MyServer\MyInstance.

Type:DatabaseInstance
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-DatabaseName

Specifies the name of the application database that you want to mount against the Business Central Server instance, such as 'Business Central app'.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-DatabaseServer

Specifies the name of the database server that hosts the application database that you want to mount against the Business Central Server instance.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-DoNotSaveConfiguration

Specifies if the configuration must not be saved when the cmdlet has completed the task. If the parameter is not set, the configuration settings are automatically saved.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ServerInstance

Specifies the name of a Business Central Server instance, for example, BC or myinstance. You can specify either the full name of an instance, such as MicrosoftDynamicsNavServer$myinstance or the short name such as myinstance.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Describes what would happen if you executed the command without actually executing the command.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

System.String

You can pipe the value of the ServerInstance parameter as a string to this cmdlet.

Outputs

None