Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
kangwen1
New Member

use managed private end point to access storage account

I

2 REPLIES 2
Anonymous
Not applicable

Hi @kangwen1 

 

Not sure if this works. You may give it a try

from azure.storage.blob import BlobServiceClient

# Replace with your storage account name and private endpoint URL
storage_account_name = "your_storage_account_name"
private_endpoint_url = "https://your_storage_account_name.privatelink.blob.core.windows.net"

# Create a BlobServiceClient using the private endpoint URL
blob_service_client = BlobServiceClient(account_url=private_endpoint_url)

# List containers in the storage account
containers = blob_service_client.list_containers()
for container in containers:
    print(container.name)

 

Best Regards,
Jing

If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

kangwen1
New Member

is there any sample code to access the storage account in Azure per the managed private end point in notebook?

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

Check out the July 2025 Fabric update to learn about new features.

July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.