This topic describes how to use the Microsoft Dynamics NAV Administration Shell to add a Microsoft Dynamics NAV web server instance on a virtual machine. The Microsoft Dynamics NAV 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
Establish a Remote Desktop Connection to the virtual machine that is running the Microsoft Dynamics NAV Web Server components.
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.
At the command prompt, type the following command:
Copy Code 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.
Important The 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. 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 DynamicsNAV71 server instance on the MyNavServer computer.
Copy Code | |
---|---|
New-NAVWebServerInstance -WebServerInstance MyNavApp -Server MyNavServer -ServerInstance DynamicsNAV71 -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 InstanceHow 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 AzureDeploying and Managing Microsoft Dynamics NAV 2013 on Windows Azure
Deploying Microsoft Dynamics NAV Using the Example Scripts
Scaling the Microsoft Dynamics NAV Network Topology on Windows Azure