[{"data":1,"prerenderedAt":73},["ShallowReactive",2],{"/2026/01/11-copying-files-with-certain-file-extensions-using-azcopy-task-in-azure-devops":3},{"id":4,"title":5,"body":6,"date":64,"description":49,"extension":65,"meta":66,"navigation":67,"path":68,"robots":69,"seo":70,"stem":71,"__hash__":72},"posts/2026/01/11 copying-files-with-certain-file-extensions-using-AzCopy-task-in-Azure-DevOps.md","11 Copying Files With Certain File Extensions Using AzCopy Task In Azure DevOps",{"type":7,"value":8,"toc":61},"minimark",[9,18,25,28,31,33,36,50,53],[10,11,13],"post-title",{":date":12},"date",[14,15,17],"h1",{"id":16},"copying-files-with-certain-file-extensions-using-azcopy-task-in-azure-devops","Copying Files with Certain File Extensions using AzCopy Task in Azure DevOps",[19,20,21],"notes",{},[22,23,24],"p",{},"This is a repost from my old blog. First posted in 6/20/2024.",[26,27],"br",{},[22,29,30],{},"I was trying to copy only certain files within a directory to Azure Storage Account instead of the whole directory content.",[26,32],{},[22,34,35],{},"The files that I tried to copy are those ends with .zip, .tag.gz, and .py. AzCopy support wildcard on the source, so I would like to do something like this:",[37,38,39],"code-block",{},[40,41,46],"pre",{"className":42,"code":44,"language":45},[43],"language-text","azcopy copy C:\\{directory}\\[*.zip|*.tar.gz|*.py] ...\n","text",[47,48,44],"code",{"__ignoreMap":49},"",[22,51,52],{},"I found out later that there's --include-pattern option, so this works:",[37,54,55],{},[40,56,59],{"className":57,"code":58,"language":45},[43],"azcopy copy C:\\{directory}\\* --include-pattern *.zip;*.tar.gz;*.py\n",[47,60,58],{"__ignoreMap":49},{"title":49,"searchDepth":62,"depth":62,"links":63},2,[],"2026-01-11T00:00:00.000Z","md",{},true,"/2026/01/11-copying-files-with-certain-file-extensions-using-azcopy-task-in-azure-devops",null,{"title":5,"description":49},"2026/01/11 copying-files-with-certain-file-extensions-using-AzCopy-task-in-Azure-DevOps","2KOFjYqwSFsuu25WiOlOENwbX25JtOfnF1OOpi5OpzU",1785167451867]