Azure-storage-azcopy: Set Blob Properties - HTTP Cache-Control, etc

Created on 19 Oct 2018  路  11Comments  路  Source: Azure/azure-storage-azcopy

Is there a way to set properties on uploaded files, such as HTTP x-ms-blob-cache-control?

Which version of the AzCopy was used?

AzCopy/v10.0.2-Preview Azure-Storage/0.1 (go1.10.3; Windows_NT)

Which platform are you using? (ex: Windows, Mac, Linux)

Windows 10

enhancement

Most helpful comment

the lack of this option makes me do manual work instead of automating it in my azure devops pipeline, + 1

All 11 comments

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wahalulu picture wahalulu  路  3Comments

IGx89 picture IGx89  路  4Comments

massive picture massive  路  3Comments

brettrowberry picture brettrowberry  路  4Comments

Dikkekip picture Dikkekip  路  5Comments