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 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.

To add a Microsoft Dynamics NAV Server instance

  1. Establish a Remote Desktop Connection to the virtual machine that is running the Microsoft Dynamics NAV Web Server components.

  2. Run Microsoft Dynamics NAV Administration Shell as an Administrator.

    On the remote computer, on the Start menu, search for Microsoft Dynamics NAV Administration Shell. Right-click the link, and then choose Run as Administrator.

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

    New-NAVServerInstance <MyInstance> -ServiceAccount <ServiceAccount> -ManagementServicesPort <PortNumber> -ClientServicesPort <PortNumber> -SOAPServicesPort <PortNumber> -ODataServicesPort <PortNumber> -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.

    <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.

  4. 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\70\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
How to: Change the Size of a Windows Azure Virtual Machine

Concepts

Network Topologies for Microsoft Dynamics NAV on Windows Azure
Deploying and Managing Microsoft Dynamics NAV on Windows Azure
Deploying Microsoft Dynamics NAV on Windows Azure Using the Example Scripts