Setting a Business Portals Portal
This article describes the detailed deployment process of a Business Portals Portal. The Portal can be deployed to either Azure via an Azure App Service or on your own Server.
Note
If you are using Business Central in the Cloud, its recommended to host the Portal via Azure, since update and deployment processes are automated.
Setting up a Portal (Hosted in Azure)"
Business Portals by Simova, offers you the possobillity to deploy Portals without leaving Business Central via an Azure Appservice. To configure a Appservice via Business Portals you have to have configured and App registration, of you dont have one configured please refer to this documentation.
To deploy a Azure Appservice via Business central, follow these steps:
- Open the Search for the page Business Portals - Portals, alternativly if you have the Business Portals Admin Rolecenter assigned you can open the page via the actions Portal.
- On the newly opened Page, execute the Create action.
- In the Opened wizard click on Begin
- On the following Page consent to, that the creation of an Azure Web Service might add cost on the selected subscription, depending on the settings choosen.
- Type in a Name and a Description in the next step.
- In the Next step, select to create a new App Service.
- Select the version. (Business Portals only retrieves the wersions, that are compatible with your Business Central Application version, installed in your system).
- After that you have to select your Azure Subscription Hosted on your Tenant, if you dont have an Azure subscription please refer to this Guide.
- Select your Pricing Tier and Region. For more info on Pricing tiers please refer to this documentation
- Finish the Wizard.
After these steps, an Azure Appservice has been deployed to Azure with your choosen parameters. The name that is used for the App Service is dynamically created und follows this pattern: SIM-APPS-DPS-000000000000000000. After the Appservice is created you still have to deploy and install all dps packages related to your choosen version, to do this click on Build or Build(Auto). The Key difference is that Build only executes one Build step at a time, while Build(Auto) runs through all processes. The Process can take a few minutes. the speed ist determined of the speed of the Scale of your choosen App Service Plan.
Setting up a Portal (Self-Hosted)
The following text provides step-by-step instructions for installing Business Portals by Simova using the Inno Setup installer. The installer will: * Install necessary dependencies such as Node.js and .NET Framework 4.8. * Configure IIS settings and create the required website. * Set up firewall rules for Node.js.
Run the Installer
- Double-click the installer file to start the installation.
- If prompted by Windows UAC, click Yes to grant administrative privileges.
Follow the Installation Wizard
- Welcome Screen
- Click Next to proceed.
- Select Destination Folder
- The default installation path is
C:\inetpub\wwwroot\DPSManagement
. - Click Next to continue.
- Installation Progress
- The installer will copy necessary files and set up the application.
Dependencies Installation
The installer will install the following dependencies: * Node.js v21.6.1 * The installer will execute:
* .NET Framework 4.8 * If not already installed, the installer will execute:Configure Firewall Rules
The installer will create inbound and outbound firewall rules for Node.js:
netsh advfirewall firewall add rule name="Node In" program="{commonpf64}\nodejs\node.exe" dir=in action=allow enable=yes
netsh advfirewall firewall add rule name="Node Out" program="{commonpf64}\nodejs\node.exe" dir=out action=allow enable=yes
Configure IIS
The installer will execute PowerShell scripts to: * Install IIS components. * Create a web application pool and a website. * Set the application pool identity. * Bind the site to port 14000.
The IIS setup process includes:
import-module servermanager
New-WebAppPool -name "DPSManagement"
New-Website -name "DPSManagement" -ApplicationPool "DPSManagement" -PhysicalPath "{app}"
New-WebBinding -name "DPSManagement" -port 14000 -Protocol "http" -HostHeader "localhost" -IPAddress "*"
Start-WebSite DPSManagement
Final Steps
- Once the installation completes, click Finish.
- Open a web browser and navigate to
http://localhost:14000
to access DPS Management.
Deploy Portal via DPS Management
To create a Portal after installation of the Setup, access DPS Management by default located assigned to the URI http://localhost:14000
. After this follow these steps to deploy a portal on your own system:
- Click on Add +
- Fill in the newly opened form an confirm youre input with OK.
- Wait for the Management to Create the Site, you can view the status via the notification action on the Top right corner.
- After the Site has been created you can execute the Edit action.
- Open the Advanced section.
- For the Node NavisionWSURL fill in your Webservice URI. It should have the following structure
https://api.businesscentral.dynamics.com/v2.0/{TENANT-ID}/{ENVRIONMENT-NAME}/ODataV4
and can be found on the webservice page of Business central. - For DefaultCompany, fill in your Default Company Name.
- For ConnectionType, type in ODATA.
- For TenantID, ClientID and ClientSecret, enter the values provided of your configured App Registration. The value for Scope should be
https://api.businesscentral.dynamics.com/.default
. If you do not have already created an App Registration, please follow this documentation.
After these steps you should have a up and running portal that is connected to your Business central environment.
Warning
Please notice that this configuration guide do not apply, if you have a legacy Dynamics NAV System. For these types of systems you only have to provide the Webservice URL. The Service User Credentials are used to authenticate to the environment(Basic). Please Note that Dynamics NAV does NOT support OAuth2 and still relies on the older more unsafe Web Service Access Keys(Basic Auth). Microsoft has dropped the support for basic auth on October 1st, 2022 (BC21).
Troubleshooting
Missing .NET Framework
If the installation fails due to missing .NET Framework, manually download and install it from: Microsoft .NET Framework 4.8
IIS Configuration Issues
If IIS does not start correctly, manually run:
Import-Module ServerManager
Get-WebBinding -name "DPSManagement" -port 80 | Remove-WebBinding
Start-WebSite DPSManagement
Firewall Rules Not Applied
Run the following command manually: