/pyfuncblobclone

A python Azure Functions sample that takes an BlobTrigger InputStream object and uploads it to another container while retaining the content-type using the Azure Storage Python SDK

Primary LanguagePythonMIT LicenseMIT

pyfuncblobclone

This repo https://github.com/glennmusa/azfuncblobwithcontenttype, but make it Python

Uses the Azure Functions Storage BlobTrigger to process a blob from the configured input_container_name in local.settings.json and makes use of the Azure Storage Blob SDK BlobClient to clone the blob with its content type to 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. All the fun stuff happens in ./pyfuncblobclone/__init__.py