Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 2.38 KB

functions-bindings-storage-blob-input-dotnet-isolated-types.md

File metadata and controls

35 lines (28 loc) · 2.38 KB
authorms.servicems.topicms.datems.author
mattchenderson
azure-functions
include
07/10/2023
mahender

When you want the function to process a single blob, the blob input binding can bind to the following types:

TypeDescription
stringThe blob content as a string. Use when the blob content is simple text.
byte[]The bytes of the blob content.
JSON serializable typesWhen a blob contains JSON data, Functions tries to deserialize the JSON data into a plain-old CLR object (POCO) type.
Stream1An input stream of the blob content.
BlobClient1,
BlockBlobClient1,
PageBlobClient1,
AppendBlobClient1,
BlobBaseClient1
A client connected to the blob. This set of types offers the most control for processing the blob and can be used to write back to it if the connection has sufficient permission.

When you want the function to process multiple blobs from a container, the blob input binding can bind to the following types:

TypeDescription
T[] or List<T> where T is one of the single blob input binding typesAn array or list of multiple blobs. Each entry represents one blob from the container. You can also bind to any interfaces implemented by these types, such as IEnumerable<T>.
BlobContainerClient1A client connected to the container. This type offers the most control for processing the container and can be used to write to it if the connection has sufficient permission.

1 To use these types, you need to reference Microsoft.Azure.Functions.Worker.Extensions.Storage.Blobs 6.0.0 or later and the common dependencies for SDK type bindings.

close