- Log in to the new Azure portal (https://portal.azure.com) with an account that has the correct privileges.
- From the left-hand side navigation, go to +| Enterprise Integration | Service Bus, as shown here:
- Enter the following details:
- The namespace name of your choice (for example, PacktDynamics365ServiceBus)
- Select a price tier
- The appropriate subscription
- The appropriate resource group
- A location that is closest to your Dynamics 365 data center and your service bus consumers
- Click on Create
- Once the service bus is created, go to All resources and click on the newly created Service Bus.
- Click on + Queue at the top of the overview form and enter Dynamics365Queue in the Name field. Click on Create.
- Once the queue is created, click on the queue name in the Service Bus overview followed by Shared access policies, then click on + Add on top of Shared access policies.
- Enter Dynamics365SharingPolicy and select Send and Listen. Then, click on the Create button.
- Once the policy is created, click on it and copy CONNECTION STRING-PRIMARY KEY, shown as follows:
Now that we have created our queue and configured it, we are ready to register it on our Dynamics 365 instance.
- Launch the plugin registration tool located in the Dynamics 365 SDK under SDKToolsPluginRegistration and connect to your instance.
- Navigate to Register | Register New Service Endpoint:
- Paste the connection string we copied in step 8 and click on Next, followed by Save.
- Right-click on the newly registered endpoint in your list and select Register New Step.
- Enter the following details in the Register New Step dialog:
- Message: Update
- Primary Entity: account
- Filtering Attributes: Account Name
- Execution Mode: Asynchronous
- Click on Register New Step