Test Connection Error for AMQP Azure SB Connection

Test Connection Error for AMQP Azure SB Connection

book

Article ID: KB0071675

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for AMQP 6.2.x, 6.3.x

Description

While testing the AMQP Azure SB connection with SAS, the below error can be encountered-
Failed to connect to Azure Service Bus. Please check connection specific parameters.
Reason:
Status code 401, (empty body)

Issue/Introduction

How to fix the error - Failed to connect to Azure Service Bus. Please check connection specific parameters. Reason: Status code 401, (empty body)

Resolution

There are three troubleshooting methods for this error.
1. Check the Share Access Key Name and Shared Access key values while providing those in the AMQP Connection Resource.
2. Check if the Policy Claim is selected as Manage in the Service Bus Namespace on the Azure Portal. If only Send or Listen Claim is selected, even then the test connection will throw this error.
To access the Policy Tab in Azure Portal -  select <Namespace_Name> -> Shared access policies
3. Try to Regenerate the Primary or Secondary key in the same tab mentioned above and select the PolicyName. Then pass the new values in the AMQP connection resource.

Attachments

Test Connection Error for AMQP Azure SB Connection get_app