Demo 12 - Azure Service Bus
Objective: In this demo, you will show how to create an Azure Service Bus Queue and then post messages to the queue from Dataverse.
Task 12.1 - Create an Azure Service Bus queue
-
Open the Azure portal.
-
Create a Resource Group named Demo.
-
Create a Service Bus namespace and select the Standard tier.
-
Create a Queue in the Service Bus named trickqueue.
-
Select the queue and create a Shared access policy, named All with all checkboxes ticked.
-
Select the All policy and copy the Primary Connection String.
Task 12.2 - Register a Service Endpoint
-
Start the Plug-in Registration Tool and connect to the Demo environment.
-
Register a new Service Endpoint and paste the Primary Connection String.
-
Select XML for Message Format.
-
Register a step on the service endpoint.
-
Enter
Create
for Message. -
Enter
dem_trick
for Primary Table. -
Select PostOperation from dropdown for Event Pipeline Stage of Execution.
-
Select Asynchronous for Execution mode.
-
Uncheck Delete AsyncOperation.
-
Task 12.3 - Test integration with Azure
-
Open a new Trick form.
-
Enter a name and points and select Save.
-
In the Azure Portal navigate to the Overview page for the queue.
-
Show that there is 1 message in the queue.
-
Use the Service Bus Explorer to Peek the message and show the XML in the message body.
Task 12.4 - Add service endpoint to solution
-
In the demo solution, add existing Service Endpoint and select trickqueue.
-
In the demo solution, add existing Plug-in step and select Create of dem_trick.