Is there a way to set properties on uploaded files, such as HTTP x-ms-blob-cache-control?
AzCopy/v10.0.2-Preview Azure-Storage/0.1 (go1.10.3; Windows_NT)
Windows 10
Hi @mrgregwaugh, thanks for reaching out!
We support content type, content encoding, and metadata. Currently we do not support blob cache control, I've added an item in our backlog for it.
Hello, if I copy files to storage blob using azcopy and then want to set cache control on those files, is there a way? Is it supported?
Hi @Snfhm, you could use Storage Explorer to set cache control on those files. We'll get to adding this support soon, sorry for the inconvenience!
Thanks @zezha-msft. Do you have some documentation for that?
If I try to set cache control property using PowerShell script in Azure Web App post deployment, do you think it is possible?
@Snfhm I'm not sure about PowerShell, but Azure CLI can do it.
This would be great. I want to add the cache control property when uploading through Azure DevOps Pipelines.
the lack of this option makes me do manual work instead of automating it in my azure devops pipeline, + 1
+1
This feature was added in the most recent release: https://github.com/Azure/azure-storage-azcopy/releases/tag/v10.1.2 (Sorry about the delay in updating this issue)
@JohnRusk Is it possible to have these properties supported for azcopy sync as well?
For sync, the plan is that they should be sync'd if the sync is blob-to-blob (they're not right now, but that's a bug, and they will be soon). We haven't yet thought of doing them for upload-style syncs. @zezha-msft is our sync expert. @zezha-msft what do you think?
Most helpful comment
the lack of this option makes me do manual work instead of automating it in my azure devops pipeline, + 1