Forum Discussion
Access Azure Service Bus Behind Private Endpoint| From Microsoft Fabric | Publish and Read Message
Hi RajeshKapur
To access Azure Service Bus behind a private endpoint from Microsoft Fabric, follow below steps:
​Configure Azure Service Bus with a Private Endpoint.
Grant Network Access to Fabric
- Make sure Fabric's managed identity or azure function (if used) has network access to Service Bus.
- Use Azure private link or VNet integration.
Use a Fabric Notebook:
- Install dependencies:
!pip install azure-servicebus - Connect and send a message:
****************************************************
from azure.servicebus import ServiceBusClient, ServiceBusMessage
CONNECTION_STR = "your_private_endpoint_connection_string"
QUEUE_NAME = "your-queue"
with ServiceBusClient.from_connection_string(CONNECTION_STR) as client:
with client.get_queue_sender(QUEUE_NAME) as sender:
sender.send_messages(ServiceBusMessage("Message from Fabric"))
print("Message sent successfully!")
****************************************************
If the above information helps you, please give us a Kudos and marked the Accept as a solution.
Best Regards,
Community Support Team _ C Srikanth.
- RajeshKapur1 year ago
Helper I
How to enable Grant Network Access to Fabric to private end point of Azure Service Bus. Seems, The resource type is still not supported by Fabric