Preparation
1. Two application servers (mine are Dynamics-AS01 and Dynamics-AS02).
2. Three IPs (two application server IPs: 192.168.1.110, 192.168.1.111, one load IP: 192.168.1.142).
3. Related dynamics installation packages and upgrade packages.
4. Before installation, you need to create a new OU on the AD domain controller, and give the installation account full control over this OU, or directly use the domain controller administrator to install and configure related service accounts.
For a minimum privilege installation, please refer to: How to install Microsoft Dynamics CRM with the minimum privileges required
Install Network Load Balancing
Add network load balancing and related configurations to the Dynamics-AS01 and Dynamics-AS02 servers respectively.
The specific configuration is as follows:
Click Add Roles and Capabilities
Select Add Network Load Balancing
After the addition is complete, select "Network Load Balancer Manager" in the tool
Configure Network Load Balancing
Open the Network Load Balancing Manager, right click on "Network Load Balancing Clusters" and click Add Cluster
Enter the host name "Dynamics-AS01" and click Connect, then Next
continue to the next step
Add the cluster IP, I use 192.168.1.142, then the next step
Select the cluster operation mode as "Multicast", click Next
Click "Finish", as shown in the figure, the network load balancing cluster has been successfully added
Right-click on the cluster and click Add Host to Cluster
Enter the second application host name "Dynamics-AS02" and click Connect, then click Next until complete.
Install Dynamics 365
First, log in to the Dynamics-AS01 server, install the dynamics application, select the corresponding role to be installed, and click Next.
Select "Create a new deployment" and click Next
Select OU and click Next.
To specify specific users for the service, click Next.
continue to the next step
The next step is to wait for the installation until it is completed.
After the installation of the Dynamics-AS01 application server is completed, we enter the Dynamics-AS02 application server, open the installation package, and perform the installation operation.
continue to the next step
For this step, select "Connect to and upgrade an existing deployment" and click Next.
continue, next step
Continue to the next step until complete.
Just wait for the installation to complete.
Configure Dynamics 365 Network Load Balancing
In the IIS of each application server, find the dynamics 365 site and select "Configuration Editor"
Select the node as shown in the figure below
Set useAppPoolCredentials to true
Open any application server, open the dynamics 365 deployment manager, right-click Dynamics 365, and click Properties.
Click "Advanced" on the Web Address tab
Check "Deploy using NLB" and click OK.
At this point, the configuration of NLB is complete.
Configure the dynamics access domain name corresponding to the NLB IP (192.168.1.142) to the dns or hosts file for resolution. Future access or configuration of other functions (such as ADFS) can use the NLB IP for resolution to perform related configurations.
注意:配置完NLB,如果跨网段访问,可能会访问不到,这时候需要联系网管,通过在网关上手工静态绑定ARP记录解决。下图为NLB的IP地址及MAC地址。