Tuesday, November 29, 2022

How to create a service bus in Azure portal

Go to Azure portal: Azure

Click on "Create a resource"


Now search in the bar "Service bus" and select "Service Bus" as shown in the picture


A new window will popup like below


Click on create, and a new window will open like below


Now fill in the details like below,
Create a Resource group in my case I have created: DynamicsCommunity101RG
Give a Namespace name: DynamicsCommunity101ServiceBus
Select Premium or Standard pricing, because in the Basic, you won't be able to create Topics


Now click on "Review and Create", Now once the validation is passed, click on create


The deployment will be initialized, Once the Deployment is complete
Go to the Service bus, and you will see a screen like below



Now go to Topic in the left panel as shown in the picture,


Now click on "Topic" to create a topic

a new window will popup like the picture below


Now fill in the details like shown in the picture below


Now go to Topic, and inside topic go to subscriptions as shown in the picture below


After going to the subscription, you will see like below picture,


Now click on Subscription to create a subscription

A new window will open like below

Now fill in the name and Max delivery count, and click on create as shown in the picture below


A new subscription will be created

Now go to Service bus that we created, then "Shared access policies", and create a policy by clicking add as shown in the picture


Now a new form will pop up, fill in the name and click on manage as shown in the picture


Now click on create, Now a shared access policy will  be created

Save, Now copy the primary connections string, and save it in a key vault

How to create a key vault