variable
variable

Reputation: 9684

How to invoke a POST web api when a file arrives in azure blob storage, and post the file to the api?

I have video files arriving into Azure blob storage.

When the file arrives, I want to invoke a REST api and pass the file in the api's POST method.

What is the Azure blob storage setting where-in I can configure the api call trigger (when new file arrives) and specify that the file needs to be POST'ed?

Upvotes: 0

Views: 967

Answers (1)

Gaurav Mantri
Gaurav Mantri

Reputation: 136216

What is the Azure blob storage setting where-in I can configure the api call trigger (when new file arrives) and specify that the file needs to be POST'ed?

There are many ways to accomplish this.

One possible solution is to make use of Blob Triggered Azure Function. The Function will be triggered when a blob is created. In your Function code, you can invoke your API and post the blob data.

Other option would be to use Azure Logic Apps where you can define a workflow that gets invoked when a blob is created.

Upvotes: 1

Related Questions