Dmitriy Gluschenko
Dmitriy Gluschenko

Reputation: 21

Call Azure Function with Blob trigger

Does anyone aware of some way to trigger Azure Function having Blob trigger? No matter via API or using "Test/Run" feature.

The case is I need to do that in testing purposes. Currently what I see is one can provide name of the file in blob storage to trigger on. But this is useless as putting file there will trigger function anyway. What I want to do is to provide function with content of the file, not the name, to avoid unnecessary actions.

Unfortunately, Microsoft has poor documentation on all related subjects, but this one has none. The only mention found for 2016 year in this github issue, but it doesn't work now. All my attempts resulted in following error message:

Invalid blob path specified : { my payload }. Blob identifiers must be in the format 'container/blob'

Any clues?

Upvotes: 0

Views: 750

Answers (1)

Thiago Custodio
Thiago Custodio

Reputation: 18387

I guess you're mixing the ideas here. Blob Trigger means the function will get executed when a blob is uploaded to the storage account the Azure Function is listening to.

For testing purposes you can use Azurite:

https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azurite

Upvotes: 0

Related Questions