How to: Add a Microsoft Dynamics NAV Server Instance

This topic describes how to add a new Microsoft Dynamics NAV Server instance to an existing Microsoft Dynamics NAV Server installation. To add a Microsoft Dynamics NAV Server instance, you use the New-NAVServerInstance cmdlet of the Microsoft Dynamics NAV 2013 R2 Administration Shell.

You specify the name for the instance, the Microsoft Dynamics NAV database to connect to, and the TCP ports for the following services:

  • Management services port

    This specifies the TCP port for the Microsoft Dynamics NAV Server Administration tool.

  • Client services port

    This specifies TCP port for the Microsoft Dynamics NAV Windows client and Microsoft Dynamics NAV Web client.

  • SOAP web services port.

  • OData web services port.

Tip

You can also add Microsoft Dynamics NAV Server instances by using the Microsoft Dynamics NAV Server Administration tool. For more information, see How to: Create a Microsoft Dynamics NAV Server Instance.

To add a Microsoft Dynamics NAV Server instance

  1. On the computer or virtual machine that is running Microsoft Dynamics NAV Server, run Microsoft Dynamics NAV Administration Shell as an Administrator.

    1. Choose Start, in the Search box, type Microsoft Dynamics NAV Administration Shell.

    2. Right-click the related link, and then choose Run as Administrator.

  2. At the command prompt, type the following command:

    New-NAVServerInstance <MyInstance> -ServiceAccount <ServiceAccount> -ManagementServicesPort <PortNumber> -ClientServicesPort <PortNumber> -SOAPServicesPort <PortNumber> -ODataServicesPort <PortNumber> -DatabaseInstance <DatabaseInstance> -DatabaseName <DatabaseName> -DatabaseServer <DatabaseServer>
    

    Change the following parameter values.

    Parameter Description

    <MyInstance>

    Specifies the name that you want to give the Microsoft Dynamics NAV Server instance.

    <ServiceAccount>

    Specifies the Windows account to use to log on to the Microsoft Dynamics NAV Server.

    <PortNumber>

    Specifies the TCP port number to use for the associated service.

    <DatabaseInstance>

    Specifies the name of the SQL Server database instance to connect to.

    If you are connecting to the same database instance as the existing Microsoft Dynamics NAV Server instance, then you can omit this parameter and value.

    <DatabaseName>

    Specifies the name of the Microsoft Dynamics NAV database.

    <DatabaseServer>

    Specifies the name of the Microsoft Dynamics NAV database in SQL Server. The name has the domain\computername format.

    If you are connecting to the same database as the existing Microsoft Dynamics NAV Server instance, then you can omit this parameter and value.

    Note

    The command that is shown includes only a subset of the parameters of New-NAVServerInstance cmdlet. For more information about the syntax and parameters, see New-NAVServerInstance topic in the Administration Cmdlets for Microsoft Dynamics NAV section of the Technical Reference.

  3. Press Enter to run the cmdlet.

    A new Microsoft Dynamics NAV Server instance with the specified name is added on the virtual machine in the C:\Program Files\Microsoft Dynamics NAV\71\Service\Instances folder.

    Note

    If you want to change the configuration of the new Microsoft Dynamics NAV Server instance after it has been added, see Configuring Microsoft Dynamics NAV Server.

Example

The following example creates a new Microsoft Dynamics NAV Server instance. It will enable communication on the service ports through the Windows Firewall.

New-NAVServerInstance MyNavInstance -ServiceAccount NetworkService -ManagementServicesPort 8099 -ClientServicesPort 8100 -SOAPServicesPort 8101 -ODataServicesPort 8102 -verbose

See Also

Tasks

How to: Add a Microsoft Dynamics NAV Web Server Instance
How to: Add a Microsoft Dynamics NAV Database
How to: Add a Microsoft Dynamics NAV Company
Changing the Size of a Windows Azure Virtual Machine

Concepts

Scaling the Microsoft Dynamics NAV Network Topology
Microsoft Dynamics NAV Server
Deploying and Managing Microsoft Dynamics NAV 2013 R2 on Windows Azure