azurepowershellazure-storageazcopy

AzCopy not transferring any files


So my copy line looks like this.

.\azcopy copy $source $destination --recursive=TRUE

Where $source is a list I iterate through in a for each loop. And destination is a Uri containing sas which is retrieved by another function.

My sources are network shared folders like so:

$Sources = @(
  '\\computer\folder name\folder\*.zip',
)

A list of about five file paths on the same remote machine.

I'm troubleshooting with just the first filepath with the *.zip and there is a folder with a space in the middle like displayed.

My problem is that it all seems to run fine, but doesn't transfer any files and doesn't detect and files to transfer. There is one zipped folder in there.

Files to transfer = 0

Log file contains no errors and states that it completed successfully.

Any ideas?

F.y.i it works fine when running against a local file not a remote FileShare.


Solution

  • The solution was that the share path wasn't working but using the full unc path worked. So \\computer\folder2 might be set up as a share but it wouldn't work till I out \\computer\C$\folder1\folder2. So full path to each source not the path youd expect just to reach the share if you were going to it in file browser.