Overview:
This article describes how to obtain the necessary user name and password for AMQP (Advanced Message Queuing Protocol) authentication. The process involves using the namespace, shared access policy name, and access keys.
Steps to Obtain User and Password:
- Navigate to the Service Bus Namespace:
- Go to the Azure portal and navigate to your Service Bus namespace. In the screen capture below, the namespace is
ssisplus
.
- Access the Shared Access Policies:
- Under your Service Bus namespace, click on Shared access policies.
- You should see a list of policies, as shown in the screenshot below. For example, two policies are listed highlighted yellow in the screen capture below:
- RootManageSharedAccessKey
- Tester
Each policy grants specific claims like Send, Listen, and Manage.
Select the Relevant Policy:
- Click on the desired policy to view its details. In this example, we use the
Tester
policy, which has the following claims: Send and Listen.
Obtain the User Name and Password:
User Name:
- The user name is shared access policy name (e.g) Tester.
Password:
- The password is either the Primary Key or the Secondary Key from the shared access policy. See below screen capture for reference.
Use the Credentials for AMQP Access:
- When configuring an AMQP client or connection string, use the obtained user name and password (primary or secondary key) to authenticate.
Configure AMQP Connection:
In COZYROC
AMPQ Connection, input the details as shown in the example below:
- Host:
<your-namespace>.servicebus.windows.net
- Scheme: AMQPS
- Username:
<policy-name>
(e.g., Tester
)
- Password:
<Primary or Secondary key>
Test Connection:
After configuring, click on the Test Connection button to verify that the settings work correctly.
Conclusion:
- By following these steps, you can derive the necessary user name and password to authenticate with Azure Service Bus using AMQP using COZYROC AMPQ Connection.
Additional Resources:
- Azure Service Bus documentation
- AMQP protocol details for Azure Service Bus
If you have any further questions or need additional help with AMQP setup, feel free to contact support at our
Help Desk.