Azure Function customize path for Blob output | Python

Jona 475 Reputation points
2024-06-07T06:07:09.71+00:00

Hi,

is there a way to customize the path where the blob is going to be outputed, or make ir dynamic?

https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob-output?tabs=python-v2%2Cisolated-process%2Cnodejs-v4&pivots=programming-language-python#example

I just see a path in the decorator that seems to be static.

Regards

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,678 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sander van de Velde | MVP 31,211 Reputation points MVP
    2024-06-07T06:52:35.6233333+00:00

    Hello @Jona,

    welcome to this moderated Azure community forum.

    Looking at the documentation, the paths are quite rigid.

    You are not bound to the output binding for writing to a blob storage, it only makes live a bit easier (with limitations).

    You can always go for the Blob Storage SDK and write code to get the job done.

    This way, you have full control over the path, filename, etc.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful