Author Archives: sebanmathews

Integrating On Premise applications with CRM Online via Azure Service Bus

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.

  1. Add azure account using PowerShell command: Add-azureaccount

Below popup will be displayed to enter credentials.

service_bus_config_1

After providing valid credentials, below details will be shown in the window

service_bus_config_2

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 USEast USEast US 2North Central USSouth Central USWest USNorth EuropeWest EuropeEast AsiaSoutheast AsiaBrazil SouthJapan East, and Japan West.

After successful creation of service bus namespace, below details will be shown in the screen:

service_bus_config_3

3. Login to azure portal using same credentials and navigate to “Service Bus” as mentioned below:

service_bus_config_4

4. Click service bus namespace and navigate to Queues as mentioned below:

service_bus_config_5

5. Click “Create A New Queue” option:

service_bus_config_6

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:

service_bus_config_7

Azure service bus queue created as shown below:

service_bus_config_8

7. Login to Plugin registration tool and select Register New Service Endpoint option:

service_bus_config_9

 

8. Provide the details of service bus namespace and service bus queue same as the one created.

service_bus_config_10

9. To configure ACS, Details of Issuer Name, Certificate File and Management Key required.

These details can be obtained from below steps:

  1. Login to CRM
  2. Navigate to Settings->Customization->Developer Resources
  3. Note down Issuer name and download Certificate as given below image:

service_bus_config_11

Management Key (Default Key) can be obtained from azure portal.

  1. Login to azure portal and navigate to Service bus ACS details
  2. Note down the Default Key as mentioned in below image

service_bus_config_12

10. Click “Save and Configure ACS” button from Plugin registration tool:

Provide the Management Key, Certificate File and Issuer Name

service_bus_config_13

11. Click configure “Configure ACS”, then Press “Yes” to the popup as mentioned below:

service_bus_config_14

service_bus_config_15

12. After successful configuration, click close. Then click “Save and Verify Authentication” button in plugin service endpoint registration screen:

service_bus_config_16

service_bus_config_17

13. Plugin step can be registered to any of the CRM entity to verify the message publish to queue

service_bus_config_18

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:

service_bus_config_19

service_bus_config_20

Thank you.

Advertisements