Comments (5)
Hi, I currently cannot validate this quickly but thank you for the update, will test it later!
from azure-functions-dotnet-worker.
It isn't part of the current plan, but something we need to evaluate as it wouldn't be difficult to do.
I'll leave this open so we can continue the discussion and define a scope for what would be exposed.
from azure-functions-dotnet-worker.
@hansmbakker an update: this should be supported with the latest preview we've published (preview5). Tools for that are currently being validated for deployment.
from azure-functions-dotnet-worker.
@hansmbakker This should be working. Here is a quick sample for your reference.
[Function("GetItemsFromBlob")]
public HttpResponseData Run(
[HttpTrigger(AuthorizationLevel.Function, "get", Route ="items/{itemId}")] HttpRequestData req,
[BlobInput("samples-workitems/{ItemId}.txt", Connection = "MyStorageConnString")] string blob
)
{
var response = req.CreateResponse(HttpStatusCode.OK);
response.Headers.Add("Content-Type", "text/plain; charset=utf-8");
response.WriteString($"Blob content: {blob}");
return response;
}
This sample is reading the itemId value from the http request URL and use that for getting the blob input entry. For example if you issue a request like /api/items/foo
, "foo" will be bound to the ItemId segment of the route and the blob input binding will try to get the "foo.txt" file from the "sample-workitems" container.
Let us know if you run into any issues.
from azure-functions-dotnet-worker.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.
from azure-functions-dotnet-worker.
Related Issues (20)
- Azure Function Dapr Extension Input and Output Binding Doesn't Work with `Microsoft.Azure.Functions.Worker.Sdk` Version >= 1.16.0 HOT 1
- Flex Consumption simple app has 'no functions found' intermittently HOT 2
- Dotnet-isolated Function does not start with the latest Extensions.Storage package HOT 13
- System.ObjectDisposedException: Cannot access a disposed object. on DefaultFunctionContext HOT 6
- Enabling Central Package Management breaks inner build
- Improve testability of source generators providing Verify into project HOT 8
- How to inject custom parameter to HttpFunction in isolated dotnet worker? HOT 3
- Getting Application Insights spam ("Invoke")
- Migration to Isolated Worker - Issue with CosmosDB Continuation Token HOT 2
- Missing sample function app to real test of current state of SDK HOT 3
- Azure Functions with ASP.NET Core Fails to Read appsettings with Comments, Causing System.Text.Json.JsonReaderException
- Azure functions HttpTriggers Json deserialization failure should return BadRequest instead of Internal Server error
- Azure function app removes host.json and local.settings.json
- DateOnly and TimeOnly parameter binding throws exception HOT 1
- Azure Function with .NET and AOT produces Exception: System.InvalidOperationException: Reflection-based serialization HOT 5
- ServiceBusTrigger with IsBatched true is delivering same message id more than once
- HTTPTrigger with ASP.NET Core integration support ActionResult<> as result
- Unable to retrieve dead letter messages for a specific sessionId in Azure Service Bus
- Build failing with not being able to restore workerExtension.csproj HOT 2
- SignalR input binding interaction
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-functions-dotnet-worker.