In enterprise solution scenarios, it is very much required to integrate CRM online with on premise line of business applications. Microsoft Azure Service Bus is used to facilitate integration between CRM online and ‘on premise’ line of business applications.
This article describes the steps to configure azure service bus queue for CRM online integration.
Steps to configure service bus queue for CRM.
- Add azure account using PowerShell command: Add-azureaccount
Below popup will be displayed to enter credentials.
After providing valid credentials, below details will be shown in the window
2. Create azure namespace using below PowerShell command
New-AzureSBNamespace –Name YOUR_NAMESPACE -Location “YOUR_LOCATION” -NamespaceType Messaging -CreateACSNamespace $true
The supported locations are: Central US, East US, East US 2, North Central US, South Central US, West US, North Europe, West Europe, East Asia, Southeast Asia, Brazil South, Japan East, and Japan West.
After successful creation of service bus namespace, below details will be shown in the screen:
3. Login to azure portal using same credentials and navigate to “Service Bus” as mentioned below:
4. Click service bus namespace and navigate to Queues as mentioned below:
5. Click “Create A New Queue” option:
6. Select Quick Create option and provide Queue name, Region and namespace (namespace should be same the created service bus namespace name). Then click “Create a new queue” button:
Azure service bus queue created as shown below:
7. Login to Plugin registration tool and select Register New Service Endpoint option:
8. Provide the details of service bus namespace and service bus queue same as the one created.
9. To configure ACS, Details of Issuer Name, Certificate File and Management Key required.
These details can be obtained from below steps:
- Login to CRM
- Navigate to Settings->Customization->Developer Resources
- Note down Issuer name and download Certificate as given below image:
Management Key (Default Key) can be obtained from azure portal.
- Login to azure portal and navigate to Service bus ACS details
- Note down the Default Key as mentioned in below image
10. Click “Save and Configure ACS” button from Plugin registration tool:
Provide the Management Key, Certificate File and Issuer Name
11. Click configure “Configure ACS”, then Press “Yes” to the popup as mentioned below:
12. After successful configuration, click close. Then click “Save and Verify Authentication” button in plugin service endpoint registration screen:
13. Plugin step can be registered to any of the CRM entity to verify the message publish to queue
Configuration for CRM online integration with service bus queue is ready now. After successful update of CRM lead record, data from CRM pushes to service bus queue.
On premise line of business applications can get the service bus queue data by consuming the service bus queue listener component and enable the integration with CRM.
Data in service bus queue can be verified by using “Service Bus Explorer” tool as shown below images: