-
Book Overview & Buying
-
Table Of Contents
Microsoft Dynamics CRM 2011 Cookbook
By :
The installation of the on-premises version of Microsoft Dynamics CRM 2011 involves a little more than the standard Microsoft wizard process. Here we will discuss how to install the on-premises version on a single-server machine.
Microsoft Dynamics CRM is designed so that its components (Application Service, Deployment Service , Sandbox Processing Service , and Asynchronous Processing Service) can run under separate identities. It is recommended that you use separate Active Directory accounts for running these components and SQL Server Reporting Services. Additionally, these accounts should be set up as service accounts in Active Directory and should only be granted the permissions necessary to enable a particular component to function. By this, we can help secure the system and reduce the likelihood of exploitation.
Managed service accounts, introduced in Windows Server 2008 R2, are not supported for running Microsoft Dynamics CRM services.
We will now take a look into these identity accounts and the privileges to be granted to them for proper functioning. It is very important to set up these accounts before starting the installation of Dynamics CRM 2011. After the installation of Dynamics CRM, these accounts should not be added to Dynamics CRM as users. This might create authentication issues and unexpected behavior in the application. These service accounts should be granted the following permissions:
By default, websites using IIS7.0 or later versions are configured to use kernel-mode authentication. When a Microsoft Dynamics CRM website is run using the Kernel-Mode authentication, SPNs for the Microsoft Dynamics CRM Application Pool identities are not required.
SETSPN –a MSCRMSandboxService/<ComputerName> <service account>
Replace <ComputerName> with the name of the computer running this service and <serviceaccount> with the name of the service account.
Program Files folder.In the previous sections we have discussed the minimum recommended software and hardware specifications and service account requirements. Now we will discuss how to install Dynamics CRM Server components on a single-server machine.
During the installation, if a machine restart is requested by the setup, it is recommended that one selects the Restart option before proceeding with the installation.
It is usually recommended that one creates separate organization units (OUs) for each CRM deployment, especially for production or production-like deployment environments. Dynamics CRM 2011 Server installer creates security groups within the specified OU, and hence, it is advisable to create separate OUs for deployment isolation purposes.
Follow these steps to install Dynamics CRM 2011 Server in a single-server machine:
Alternatively, navigate to the installation directory for Dynamics CRM 2011 Server and run the Dynamics CRM 2011 setup file at \Server\amd64\SetupServer.exe.
.exe file.It is recommended that you assess the impact of the update rollups before applying them because they can break any existing code or the rollup itself can have defects.


In case there already exists an MSCRM_CONFIG database from a previous CRM deployment that is intended to be used here, select the Connect to, and if necessary, upgrade an existing deployment option. But, if an MSCRM_CONFIG database does not exist in the SQL Server instance, an error will occur.

Four Microsoft Dynamics CRM-specific security groups will be created in this organizational unit. To know more about these groups, read the How it works… section of this recipe.

Unless there is a valid reason for not installing the application in the default website, leave it as it is because among other advantages, it will be much easier for users to access the website as they won't have to remember another port number. If we select a network port other than the default port, we have to ensure that the firewall does not block the port.
If you decide to create a new website, select the Create new Web site option; the setup creates a new website for Microsoft Dynamics CRM Server 2011. We can specify the port number by typing the TCP port number that Microsoft Dynamics CRM clients will use to connect to Microsoft Dynamics CRM Server 2011. The default port number is 5555.

We will discuss how to install E-mail Router later in this chapter.
Once the CRM Organization is created, the base currency code cannot be updated, though the base currency name and base currency symbol can be changed.
Base currency has been explained in the There's more... section of this recipe.
The default SQL collation changes based on the base language selection of the deployment. The collation settings cannot be changed after installation.
SQL Server Collation refers to a set of rules that is used to determine how character data is sorted and compared. Collation encodes the rules governing the proper use of characters for either a language, such as Greek or Polish, or an alphabet, such as Latin1_General (the Latin alphabet used by Western European languages).
More information about SQL Server Collation can be found at:
After setting these details, click on Next.

Automatic rollup update is not recommended, and before applying any update rollup we have to be very sure (by trying the rollup in a test environment) that it does not break existing functionality and that the update rollup itself is not broken.
If there are any errors or warnings, they will be listed here. We have to rectify all errors before proceeding further. Warnings, however, can be ignored, but it is strongly suggested that you rectify the warnings as they may cause issues later on in the system.
In this recipe we have installed Microsoft Dynamics CRM 2011 on a single-server machine. During the process, the installer creates four security groups in Active Directory; these groups are fundamental for Dynamics CRM's functioning. Usually it is left to the installer to create these groups, but these groups can be precreated manually and can be used during the Dynamics CRM installation. If these groups do not already exist in Active Directory, the installation user must have Active Directory rights to create them. The following are the groups that will get created during installation:
|
Group |
Description |
|---|---|
|
|
This is the privileged Microsoft Dynamics CRM user group for reporting functions. It is configured during the setup of Microsoft Dynamics CRM Reporting Extensions. |
|
|
This is the privileged Microsoft Dynamics CRM user group for special administrative functions, including the |
|
|
This group pertains to all server processes / service accounts that require access to SQL Server, including the |
|
|
All Microsoft Dynamics CRM users are included in this group. This group is updated automatically as users are added and removed from Microsoft Dynamics CRM. By default, all Microsoft Dynamics CRM Reporting Services reports grant the |
One more important point to be noted here is that the four service accounts used during installation and the SQL access accounts are part of some or all of the aforementioned Active Directory groups. The following matrix will explain the group membership of these accounts:
|
Service account |
PrivUserGroup |
SQLAccessGroup |
PrivReportingGroup |
ReportingGroup |
Performance log users |
|---|---|---|---|---|---|
|
Application service account |
√ |
√ |
– |
– |
√ |
|
Deployment Web service account |
√ |
√ |
– |
– |
– |
|
Asynchronous Processing service account |
√ |
√ |
– |
– |
√ |
|
Sandbox Processing service account |
– |
– |
– |
– |
√ |
|
SQL Server service account |
– |
– |
– |
– |
– |
|
SSRS service account |
√ |
– |
√ |
– |
– |
The performance log user group is a local group on each server and not a domain group.
For Dynamics CRM to function properly, these service accounts will have to have the following rights:
Trace folder, by default located under \%Program Files%\Microsoft Dynamics CRM\, and the %AppData% folder of the user account on the local computerHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM and HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\MSCRMSandboxService subkeys in the Windows RegistryCRM_WPG groupMicrosoft Dynamics CRM 2011 uses a list of ports, and these ports have to be allowed in the firewall for CRM to function. The following matrix lists all these ports:
|
Protocol |
Port |
Description |
Explanation |
|---|---|---|---|
|
TCP |
80 |
HTTP |
The default web application port. The port number may be different if it is changed during Microsoft Dynamics CRM Server setup. For new websites, the default port number is 5555. |
|
TCP |
135 |
MSRPC |
RPC endpoint resolution |
|
TCP |
139 |
NETBIOS-SSN |
NETBIOS session service |
|
TCP |
443 |
HTTPS |
The default HTTP secure port |
|
TCP |
445 |
Microsoft-DS |
An Active Directory directory service is required for access and authentication. |
|
UDP |
123 |
NTP |
Network Time Protocol |
|
UDP |
137 |
NETBIOS-NS |
NETBIOS name service |
|
UDP |
138 |
NetBIOS-dgm |
NetBIOS datagram service |
|
UDP |
445 |
Microsoft-DS |
Active Directory directory service is required for access and authentication. |
|
UDP |
1025 |
Blackjack |
DCOM, used as an RPC listener |
Each of these service accounts runs a specific component within the Dynamics CRM 2011 Server infrastructure. The following outlines how these service accounts are used within Dynamics CRM 2011:
CRMAppPool) in IIS to isolate the CRM application for better security, reliability, availability, and performance and to keep running without impacting other web applications hosted in the same IIS. The Application service account is used by Dynamics CRM 2011 to run the CRM application pool in IIS.The Microsoft Dynamics CRM 2011 deployment service is not backward compatible. Any component, developed using Microsoft Dynamics CRM 4.0 Deployment Web Service has to be upgraded to use the Dynamics CRM 2011 deployment service to work within Dynamics CRM 2011 deployment.
It is worth installing the Sandbox Processing Service role onto a dedicated server on a separate virtual LAN (VLAN) from other computers that are running Microsoft Dynamics CRM roles. This network isolation strategy can help protect other Microsoft Dynamics CRM 2011 resources from being compromised if there is a malicious plugin running in the sandbox.
Once the installation has completed, its success can be verified by accessing the CRM server URL. The URL would be in the format http://<servername>:<port _number>/<organization_name>/main.aspx.
Here, we will replace <servername> with the name of the Dynamics CRM 2011 server, <port_number> with the port used by Dynamics CRM 2011 Server, and <organization_name> with the CRM Organization that was created during installation.
If installation is successful, the Dynamics CRM landing page will appear in the browser window as shown in the following screenshot:

Before we end this recipe, let's take look at some information on the use of currency codes in Microsoft Dynamics CRM 2011:
Dynamics CRM 2011 is a multicurrency system that allows a user to perform any financial transaction using their own currency, known as transaction currency . During installation, a primary or default currency has to be selected. This currency is the de facto currency for financial transactions within a CRM Organization and known as the base currency . After defining a base currency for the organization, we have to define exchange rates to associate the base currency with transaction currencies.
Each currency record has three parts describing the currency:
Any transaction in other currencies will automatically be converted to the base currency, using the exchange rate defined in the record for that currency, in the Microsoft Dynamics CRM database.
The base currency of a CRM Organization has to be selected carefully as:
The supported currency code details can be found at:
http://msdn.microsoft.com/en-us/library/hh699729.aspx
We have seen that, in the process of a single-server installation, all the server roles of Dynamics CRM 2011 are installed onto one single machine. But in a multiserver deployment, the server roles are usually separately deployed on multiple machines. We will find out more about multiserver Dynamics CRM deployments in the latter parts of this chapter.
Change the font size
Change margin width
Change background colour