/azfuncblobwithcontenttype

An Azure Function that uses a BlobTrigger to copy a blob to another container while retaining the original blob content-type

Primary LanguageC#MIT LicenseMIT

azfuncblobwithcontenttype

An Azure Function that uses a BlobTrigger to copy a blob to another container while retaining the original blob content-type.

The Azure Functions Blob Output Binding, as of December 2020, does not retain content-type property of blobs.

This sample follows the current guidance to use the Blob libraries directly to set the content-type property.

Monitored container in the configured input_container_name from Blob Trigger with content-type: the configured blob trigger container containing a blob with content-type set

Output blob in the configured output_container_name container with content-type: the desired cloned blob in another container with the content-type set