question

ambhareshvenkatraman-7264 avatar image
0 Votes"
ambhareshvenkatraman-7264 asked ambhareshvenkatraman-7264 commented

Using Azure Blob Storage REST API with python

Hi,

I want to use REST API PUT BLOB method to store blob locally with the URL "http://127.0.0.1:10000/devstoreaccount1/mycontainer/myblob" in Linux.

I was not able to find any python function for the REST API.
Is there a python function to use this REST API and if yes how to use them. Since the storage emulator does not support Linux, is it possible to use this in a python function and access the azure-blob-storage docker container.

Thanks,
Ambharesh

azure-blob-storageazure-iot-edge
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SumanthMarigowda-MSFT avatar image
0 Votes"
SumanthMarigowda-MSFT answered ambhareshvenkatraman-7264 commented

@ambhareshvenkatraman-7264 Thanks for raising this question! Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused.

Have you tried azurite emulator?

you can use this connection string and pass into python sdk: Use Azurite emulator for local Azure Storage development | Microsoft Docs

Hope this helps!

Kindly let us know if the above helps or you need further assistance on this issue.


Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Sumarigo-MSFT Thanks for the response.
I have never used Azurite emulator. After creating a BlobClient with devstoreaccount1 url what function should use for "PUT BLOB" method.

0 Votes 0 ·