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.
- Clone ./local.settings.json.sample and rename it to
local.settings.json
- Subtitute the settings values with your resources
- The blob is cloned in ./CloneSourceBlob/__init__.py
- Content-type is set in ./SetDestinationContentType/__init__.py