/pyfuncbloboutput

A python Azure Functions sample that uses a blob input trigger and a blob output binding to copy blobs between containers while retaining their content-type.

Primary LanguagePythonMIT LicenseMIT

pyfuncbloboutput

This repo https://github.com/glennmusa/pyfuncblobclone, but use the Blob Output Binding instead of uploading the blob yourself.

Uses the Azure Functions Storage Blob Trigger and the Azure Functions Storage Blob Output Binding to clone a blob from the configured input_container_name in local.settings.json and makes use of the Azure Storage Blob SDK BlobClient to set its content type in the configured output_container_name in local.settings.json.

To get started:

  1. Clone ./local.settings.json.sample and rename it to local.settings.json
  2. Subtitute the settings values with your resources
  3. The blob is cloned in ./CloneSourceBlob/__init__.py
  4. Content-type is set in ./SetDestinationContentType/__init__.py