azure-functions-python-worker icon indicating copy to clipboard operation
azure-functions-python-worker copied to clipboard

Dynamic filename generation for blob out bindings - Python

Open enpuig opened this issue 5 years ago • 4 comments

I am facing issues when trying to write outputs into a blob storage account file with a dynamic name based on the azure function code (using python).

What I have: Http trigger - with some key parameters Blob out binding

image

Now what I want to do is based on my function logic provide a name dynamically to the output. Is that possible? is there any better way to do it?

Many thanks in advanced.

enpuig avatar Jan 30 '20 10:01 enpuig

@priyaananthasankar Can you transfer this issue to the azure-functions-python-worker or azure-functions-python-library repo?

vrdmr avatar May 07 '20 19:05 vrdmr

Transferring this issue to python-worker for further investigation.

v-bbalaiagar avatar Nov 02 '21 13:11 v-bbalaiagar

Any news on this feature? Or as asked originally, what is the alternative way to do it ? An example here only provides help when the variable is available through another input binding; in this case queueTrigger.

I have a situation where I want to use timeTrigger and write files to blob storage with pattern like /container/fixedpart-{dynamic-part}.{extension}. if not through OUT binding pattern, any alternative way to do it ?

arundeep78 avatar Nov 17 '21 12:11 arundeep78

@arundeep78 The alternative is to use Azure SDK to have more flexibility

stefanushinardi avatar Dec 14 '21 18:12 stefanushinardi