How to: Add a Microsoft Dynamics NAV Web Server Instance
This topic describes how to use the Microsoft Dynamics NAV Administration Shell to add a Microsoft Dynamics NAV web server instance on a computer or virtual machine. The Microsoft Dynamics NAV 2015 Administration Shell includes the New-NAVWebServerInstance cmdlet that creates an application on IIS for the Microsoft Dynamics NAV Web client.
To add a Microsoft Dynamics NAV web server instance
On the computer or virtual machine that is running Microsoft Dynamics NAV Server, run Microsoft Dynamics NAV Administration Shell as an Administrator.
Choose Start, in the Search box, type Microsoft Dynamics NAV Administration Shell.
Right-click the related link, and then choose Run as Administrator.
At the command prompt, type the following command:
New-NAVWebServerInstance -WebServerInstance <MyWebApp> -Server <NAVServer> -ServerInstance <NAVServerInstance> -ClientServicesCredentialType <NAVCredentialType>
Change the following parameter values.
Parameter Description <MyWebApp>
Specifies the name that you want to give the Microsoft Dynamics NAV Web client application instance. This name will become part of the URL for the Microsoft Dynamics NAV Web client application, for example, http://MyWebServer:8080/MyWebApp/WebClient.
<NAVServer>
Specifies the name of the computer that is running the Microsoft Dynamics NAV Server to connect the Microsoft Dynamics NAV web server to.
<NAVServerInstance>
Specifies the name of the Microsoft Dynamics NAV Server instance to connect the web server instance to.
<NAVCredentialType>
Specifies the credential type that is configured for the Microsoft Dynamics NAV Web client and Microsoft Dynamics NAV Server. Valid options are NavUserPassword, Windows, UserName, and AccessControlService. The default value is NavUserPassword.
ImportantThe credential type must match the credential type that is used by the Microsoft Dynamics NAV web server to authenticate Microsoft Dynamics NAV Web client users. For more information, see Configuring the Credential Type on the Microsoft Dynamics NAV Web Client.Note
The command that is shown includes only the required parameters of the NAVWebServerInstance cmdlet. The cmdlet has several other parameters that can be used to configure the web server instance. For more information about the syntax and parameters, see New-NAVWebServerInstance cmdlet topic in the Administration Cmdlets for Microsoft Dynamics NAV section of the Technical Reference.
Press Enter to run the cmdlet.
A new Microsoft Dynamics NAV web server instance with the specified name is added to the Microsoft Dynamics NAV Web client site on IIS.
Note
If you want to change the configuration of the new Microsoft Dynamics NAV web server instance after it has been added, modify the web.config file. For more information, see Configuring Microsoft Dynamics NAV Web Client by Modifying the Web.config File.
Example
This example creates a new Microsoft Dynamics NAV web server instance that is named MyNavApp. The Microsoft Dynamics NAV web server instance connects to the DynamicsNAV80 server instance on the MyNavServer computer.
New-NAVWebServerInstance -WebServerInstance MyNavApp –Server MyNavServer –ServerInstance DynamicsNAV80 –Company MyNavCompany -ClientServicesCredentialType NavUserPassword
To open the Microsoft Dynamics NAV Web client for this example, open the following URL in a web browser:
http://mymachine.cloudapp.net/MyNavApp
See Also
Tasks
How to: Add a Microsoft Dynamics NAV Server Instance
How to: Add a Microsoft Dynamics NAV Database
How to: Add a Microsoft Dynamics NAV Company
Concepts
Scaling the Microsoft Dynamics NAV Network Topology
Deploying and Managing Microsoft Dynamics NAV on Microsoft Azure
Other Resources
Deploying the Microsoft Dynamics NAV Web Client
How to: Set Up Multiple Web Server Instances for the Microsoft Dynamics NAV Web Client