Create new web server instance for Business Central

17-09-2023

Powershell Command:

New-NAVWebServerInstance -WebServerInstance "WebServerInstanceName" -Server localhost -ServerInstance "Business Central Instance Name" -ContainerSiteName "Business Central Web Client" -SiteDeploymentType SubSite -WebSitePort 90 -ManagementServicesPort 8001 -ClientServicesPort 8002 -ClientServicesCredentialType Windows -AddFirewallException true 

-WebServerInstance : Put a name which you want to keep. This will be part of the URL which is required to access the Business Central Client.

-Server : The host name where web server is hosted.

-ServerInstance : Business central instance name which you want to connect.

-ContainerSiteName : Put a name which will be used as website container. This is required for webserver only.

-SiteDeploymentType : Put it as SubSite as we have a website container.

-WebSitePort : Port number for website.

-ManagementServicesPort : Business central management service port number.

-ClientServicesPort : Business central client service port number.

-ClientServicesCredentialType : Business central credential type. We used here Windows.

-AddFirewallException : Put True as we need to have a firewall exceptions for this website.