-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
- Package Name: azure-servicebus
- Package Version: 7.14.3
- Operating System: Ubuntu
- Python Version: 3.13.11
Describe the bug
Async ServiceBusAdministrationClient (from azure.servicebus.aio.management import ServiceBusAdministrationClient) is not using connection_verify kwargs to build pipeline transport
To Reproduce
Steps to reproduce the behavior:
- Create an async
ServiceBusAdministrationClientobject using thefrom_connection_stringhelper method - Pass the
conn_strparameter andconnection_verifyas a .pem path as a kwarg into the helper method - Perform any request
Expected behavior
The async ServiceBusAdministrationClient should use the provided certificate passed to connection_verify parameter to verify its connection
Screenshots
From connection string method:

That calls _build_pipeline method (without passing received kwargs)

Additional context
Source code may also be found here
The sync client works properly, however, when using the Async client it raises this exception:
Cannot connect to host [...] ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1032)')]
I was able to perform a workaround and make this work properly by only re-building the pipeline and replacing it in the client.

