'Valid Azure Blob Metadata Identifiers

I've been trying to add metadata on an .mp4 video that is stored on an Azure Blob. I want to add opengraph tags and when I try and enter them in, I get a message that says, "The name: 'og:type' should be a valid C# identifier." I'm not a C# developer and haven't been able to find documentation that shows valid C# identifiers for meta tags. Any help would be appreciated, thanks!

Edit: I must've misunderstood the purpose of the Metadata section as I thought it would add HTML meta tags to the document on the video's page. Do you know if this is possible? For example I want to share the link to this video on a social media site and would like to try and get this video to be able to play inline or have at least an image preview when sharing the link to the video

Azure Error Screenshot



Solution 1:[1]

Adding metadata to existing Azure blobs will only work if you give valid input.

Please note that:

Beginning with version 2009-09-19, metadata names must adhere to the naming rules for C# identifiers

As mentioned by @Stefan Wuebbe , you can find C# naming rules and conventions by following this document:

C# identifier names | Microsoft Docs

I tried in my environment and got the same error if I use colon (:) in the middle of metadata name.

enter image description here

To resolve the error, make use of underscore (_) instead of colon (:) like below:

enter image description here

To know more in detail, please refer below link:

Setting and retrieving properties and metadata for Blob service resources (REST API) - Azure Storage | Microsoft Docs

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1