Configure RabbitMq in Azure Cloud using Bitnami

Brijith Kumar
4 min readMay 9, 2023

--

This article is about configuring RabbitMQ by creating a Virtual machine in Azure cloud using Bitnami.

As a prerequisite, you need a free/ paid azure cloud account and you can login to “https://portal.azure.com/” using your account.

Let’s begin …

I added screen shots of each step I did in order to make it easier to follow.

  1. Once you login to the Azure cloud, you can click on Create resource link and search for “RabbitMq Bitnami” in the search bar. Choose the one with Virtual machine since we are going to create a VM to configure and run the rabbitmq.

2. Click on the “Create” link in the above image added, you can see the detail page as shown in the below picture where you need to enter the basics information asked.

As part of the azure account creation, you would be enrolled with a subscription and you can choose that for the “Subscription” field.

You could either create a new Resource group now or choose an existing one. Resource group is a logical container for resources deployed in Azure. By creating a resource group, you can manage multiple resources together as a single entity. For example, you can easily deploy, update, or delete all resources in the resource group at once. You can also manage access control, monitoring, and billing for all resources in the group collectively.

Enter a name for VM. Choose appropriate region and Availability options required. Select the Security type, Image , Size and VM architecture. At the end, choose the Administrator account type. Here I selected the password type and enter the desired username and password.

3. For the remaining tabs, I defaulted the values as it is and you could see the images for that below. But definitely you could choose different ones other than the default values.

4. Click on “Review + create” button will validate all the details entered across the tabs. If its success the “Create” button will be highlighted at the very bottom of the page.

5. Click on “Create” button creates the RabbitMQ VM and we can go to VM by click on the “Go to resource” button.

6. In the VM, you could see the Public IP address which is the one, the rabbitmq server is hosted.

7. The default port of Rabbitmq server is 5672 and the same for the rabbitmq management is 15672. By default, these 2 ports are not opened, so we need to open these 2 ports from Settings under Networking.

Click on “Add inbound port rule” will open the form as you seen in the below image where you need to add the Destination port as 5672 and TCP as protocol.

Similarly do it for port 15672. Here I added the “Priority” as 100 to avoid the conflict with the other port.

You can see the 5672 and 15672 ports added in the below image.

8. Once the ports added, you can login to the management console using the link “http://public_ip_address:15672” .

You can get the credentials to login by doing ssh to the rabbitmq server from the terminal. Here is the command to get that.

ssh <username>@<public_ip_address>

where username is the one you set in the step no 2.
public_ip_address is the ip address you got from the rabbitmq vm.

cat ./bitnami_credentials

This above cat command gives you the default username and password. You could login to the rabbitmq server using those and can change it from the management console itself once you login.

Now you have the access to the RabbitMQ server hosted in the Azure cloud and you can add your own exchanges and queues.

I hope this article gives you the basic information to set up RabbitMQ in Azure cloud.

--

--