Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
/ pyfuncbloboutput Public archive

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.

License

Notifications You must be signed in to change notification settings

glennmusa/pyfuncbloboutput

Repository files navigation

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

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages