Skip to content

Async ServiceBusAdministrationClient is not using connection_verify kwargs to build pipeline transport #44999

@TR0NZ0D

Description

@TR0NZ0D
  • 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:

  1. Create an async ServiceBusAdministrationClient object using the from_connection_string helper method
  2. Pass the conn_str parameter and connection_verify as a .pem path as a kwarg into the helper method
  3. 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:
Image

Calls class init method
Image

That calls _build_pipeline method (without passing received kwargs)
Image

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.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Service AttentionWorkflow: This issue is responsible by Azure service team.Service Buscustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions