Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 1.21 KB

functions-bindings-blob-storage-metadata.md

File metadata and controls

30 lines (26 loc) · 1.21 KB
title description services author manager ms.service ms.topic ms.date ms.author ms.custom
include file
include file
functions
craigshoemaker
gwallace
azure-functions
include
08/02/2019
cshoe
include file

The blob trigger provides several metadata properties. These properties can be used as part of binding expressions in other bindings or as parameters in your code. These values have the same semantics as the Cloud​Blob type.

Property Type Description
BlobTrigger string The path to the triggering blob.
Uri System.Uri The blob's URI for the primary location.
Properties BlobProperties The blob's system properties.
Metadata IDictionary<string,string> The user-defined metadata for the blob.

For example, the following C# script and JavaScript examples log the path to the triggering blob, including the container:

public static void Run(string myBlob, string blobTrigger, ILogger log)
{
    log.LogInformation($"Full blob path: {blobTrigger}");
}