As a follow up to my previous post:
Setting Azure Storage Account Blob Metadata with Python Script
https://blog.terenceluk.com/2024/12/setting-azure-storage-account-blob-metadata-with-python-script.html
I realized that there are likely scenarios where we would want to add additional custom tags to the blob that aren’t derived from the folder structure or file name. What I’ve done is created a v2 of the script that will read a json file that contain the blob details along with any required custom tags that should be added to a blob’s metadata.
Here is an example of the json file:
The updated script can be found here: https://github.com/terenceluk/Azure/blob/main/Storage%20Account/Set-Blob-Metadata_v2.py
Example of tags configured on the blob:
For those who have read my previous post where I demonstrate how to modify this Python script for an Azure Function, the updated script for the additional tags can be found at the bottom of that post: