Is it possible to use a blob input binding (and blob output binding) on a http triggered function?
- Dominant language
- PowerShell
- Stars
- 1.1k
- Forks
- 215
- Avg merge
- 4h 2m
- Merged PRs (30d)
- 1
Description
Please describe the documentation request or issue. Be as specific as possible.
I am trying to develop a function app in c# that is triggered using http (eventually, through data factory) that picks up a file from blob storage, does stuff, and then writes a new file to a different location in blob storage.
I have built a function app (in VS code) that works using the http trigger and inputs the data from the request body and outputs to the post body, but when I try to add the input and output bindings to function.json so the files can be access from blob storage, they just get overwritten when I build. If this is possible, documentation that uses multiple bindings developed in vs code would be very helpful.
//Before build
{
"generatedBy": "Microsoft.NET.Sdk.Functions-1.0.29",
"configurationSource": "attributes",
"bindings": [
{
"type": "httpTrigger",
"methods": [
"post"
],
"authLevel": "function",
"name": "req"
},
{
"type": "blob",
"name": "inputBlob",
"path": "tivo-testing-block-blob/encrypted/{name}",
"connection": "AzureWebJobsStorage",
"direction": "in"
},
{
"type": "blob",
"name": "$result",
"path": "tivo-testing-block-blob/decrypted/{name}",
"connection": "AzureWebJobsStorage",
"direction": "out"
}
],
"disabled": false,
"scriptFile": "../bin/AzureFunctionsPGPDecrypt.dll",
"entryPoint": "AzureFunctionsPGPDecrypt.PGPDecrypt.RunAsync"
}
//After Build
{
"generatedBy": "Microsoft.NET.Sdk.Functions-1.0.29",
"configurationSource": "attributes",
"bindings": [
{
"type": "httpTrigger",
"methods": [
"post"
],
"authLevel": "function",
"name": "req"
}
],
"disabled": false,
"scriptFile": "../bin/AzureFunctionsPGPDecrypt.dll",
"entryPoint": "AzureFunctionsPGPDecrypt.PGPDecrypt.RunAsync"
}
Thank you!
K
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the C# Azure Functions documentation and the generated function.json shown in the issue, especially how bindings are declared when configurationSource is attributes. Confirm whether HTTP-triggered functions support blob input and output bindings, and how to preserve them through a build in VS Code. Done means the docs explain a working multiple-binding example or establish the supported alternative.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp
- Domain
- cloud
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 39/100