With the advent of Microsoft Dynamics CRM 2016 online many new features have been incorporated. One such feature that we all have been waiting for long is, seamless integration of MS CRM with Microsoft Cloud or popularly known as Microsoft Azure.

You can connect Microsoft Dynamics CRM Online 2016 Update and Microsoft Dynamics CRM 2016 (on-premises) with the Microsoft Azure platform by coupling the CRM event execution pipeline to the Microsoft Azure Service Bus. Once configured, this connection allows data that is processed as part of the current CRM operation to be posted onto the service bus. Microsoft Azure Service Bus solutions that are “CRM-aware” can listen for and read the Microsoft Dynamics CRM data from the service bus.

This connection between Microsoft Dynamics CRM and the Microsoft Azure platform provides a secure and reliable channel for communicating CRM run-time data to external cloud-based line-of-business (LOB) applications.

Microsoft MSDN provides a detail description on how to perform this connection but sometimes due to its vast knowledge base and in depth description, it does seem to be a task to discern the process. I will avoid referring to the many known terminologies we come across in CRM and Azure and will only focus only on the procedure required to establish the connection.

CRMAzure

The sequence of events as identified in this diagram are as follows:

  1. A listener application is registered on a Microsoft Azure Service Bus solution endpoint and begins actively listening for the Microsoft Dynamics CRM remote execution context on the service bus.
  1. A user performs some operation in Microsoft Dynamics CRM that triggers execution of the registered OOB plug-in or a custom Azure-aware plug-in. The plug-in initiates a post, through an asynchronous service system job, of the current request data context to the service bus.
  1. The claims posted by Microsoft Dynamics CRM are authenticated. The service bus then relays the remote execution context to the listener. The listener processes the context information and performs some business-related task with that information. The service bus notifies the asynchronous service of a successful post and sets the related system job to a completed status.

If you would like to refer to the detailed description on Azure and Microsoft Dynamics CRM Connection in MSDN you can look that up here.

I have some quick steps and code snippets on how to integrate CRM Online with Azure over at my blog, if you are interested.