Reputation: 30556
We have an Azure CDN pointed at blob storage container. We upload on a regular basis new files via AZ Copy.
I can set it in many ways such as https://learn.microsoft.com/nb-no/azure/cdn/cdn-manage-expiration-of-blob-content but not in bulk.
Is it possible to set the Cache-Control property/meta data via AzCopy?
Upvotes: 1
Views: 2516
Reputation: 66
Setting the Cache-Control property is supported in azcopy as of May 2019 https://github.com/Azure/azure-storage-azcopy/releases/tag/v10.1.2
Here's the corresponding release information from the link above:
New features
- Headers for Content-Disposition, Content-Language and Cache-Control can now be set when uploading files to Blob Storage and to Azure Files. Run
azcopy copy --help
to see command line parameter information, including those needed to set the new headers.
Upvotes: 5
Reputation: 914
Looking at the AzCopy parameters documentation, it does not appear you can set the Cache-Control property.
However, the Azure Data Movement Library exposes a SetAttributesCallback which would allow you to set properties.
Upvotes: 1