Azcopy 6.0 Move Functionality

Azcopy 6.0 does not support /mov. You can use script to upload the files to blob/file storage. Once the data is copied the same type of file will be deleted from source path. It also has resume functionality that means while coping if Azcopy got stuck then it will start coping the data from same point.

Solution1:

cd D:\azcopy\AzCopy
 $Journal = “$env:LocalAppData\Microsoft\Azure\AzCopy”
 Get-ChildItem -Path $Journal -file |Remove-Item

$files=(Get-ChildItem -Path D:\azcopy1234 -Filter "*.evtx").name
 foreach($file in $files)
 {
 $file
 $source="D:\azcopy1234"
 $destination="https://prafullpocrmdiag117.file.core.windows.net/filestorage1"
 $result=.\AzCopy.exe /source:"$source" /dest:"$destination" /destkey:Destkey /pattern:"$file" /y
 $result
 $breakresult=$Result.split()
 if ($breakresult[8] -eq $breakresult[13] -and $breakresult[34] -eq "0")
 {
 Remove-Item -Path ("$source"+"\"+"$file")
 }
 else
 {
 Write-Host "copy failed"
 }
 }

Solution2

Script:-
 cd D:\azcopy\AzCopy
 $Journal = “$env:LocalAppData\Microsoft\Azure\AzCopy”
 .\AzCopy.exe /Z:$Journal
 $source="D:\azcopy1234"
 $destination="https://prafullpocrmdiag117.file.core.windows.net/filestorage1"
 $result=.\AzCopy.exe /source:"$source" /dest:"$destination" /destkey:key1 /Pattern:"*.evtx" /XO
 $result
 $breakresult=$Result.split()
 if ($breakresult[8] -eq $breakresult[13] -and $breakresult[34] -eq "0")
 {
 Get-ChildItem -Path $source -File -Filter "*.evtx" |Remove-Item
 }
 else
 {
 Write-Host "copy failed"
 }