none
Uploading .PST files using AzCopy

    Question

  • I am getting a forbidden on the destination folder, which I dont understand.

    I cant see what is wrong with my line, can anyone help

    The location is a Server 2012 and I am running from my machine on the network.  

    C:\Program Files (x86)\Microsoft SDKs\Azure>AzCopy.exe /source:\\OSBORNESRV\DATA\4-IT\365Trial\Alan /Dest:https://f9b8dacbac1b47318eef395.blob.core.windows.net/ingestiondata/OSBORNESRV/4-IT/365Trial/Alan/ /Destkey:xflBjyInl3NuHdIs1KwHjP3cuS66O3zZ5xLPUn41JL1HYsgguklNI6SKWbdCoXL1W3sZ1Rmx /S /Pattern:*.pst /V:C:\Logs\upload.log
    Incomplete operation with same command line detected at the journal directory "C:\Users\Alan\AppData\Local\Microsoft\Azure\AzCopy", do you want to resume the operation? Choose Yes to resume, choose No to overwrite the journal to start a new operation. (Yes/No) y
    Finished 0 of total 0 file(s).
    [2015-12-08 11:22:09][ERROR] Error parsing destination location "https://f9b8dacbac1b47318eef395.blob.core.windows.net/ingestiondata/OSBORNESRV/4-IT/365Trial/Alan/": The remote server returned an error: (403) Forbidden.
    Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.

    C:\Program Files (x86)\Microsoft SDKs\Azure>

    Tuesday, December 8, 2015 12:04 PM

Answers

  • Hi Alan,

    can you please check if you are using the correct and valid Azure storage account key (for /DestKey)? Just to double-check as these keys usually ends with "==" (at least on my side). This video on youtube shows how to get it using the classic portal https://www.youtube.com/watch?v=KMjeSDa_2AE . But you'll find the primary / secondary key in the (new) Azure Portal as well.

    If you want to use a SAS token then you have to use a different commandline parameter: /DestSAS

    Wednesday, December 9, 2015 1:18 PM

All replies

  • Is 'ingestiondata' container exist ??

    Try to rename all your source files to lower case names.

    I think that also, when using bulk copy, you should copy directly to the container :

    C:\Program Files (x86)\Microsoft SDKs\Azure>AzCopy.exe /source:\\OSBORNESRV\DATA\4-IT\365Trial\Alan /Dest:https://f9b8dacbac1b47318eef395.blob.core.windows.net/ingestiondata/


    Regards, Samir Farhat || Datacenter Consultant || The way to share my knowledge with the community Visit my blog : buildwindows.wordpress.com buildwindows.wordpress.com </a>

    Tuesday, December 8, 2015 1:24 PM
  • Thank you Samir, I tried without the rest of the folder path (friendly path) but still same error

    I have also moved onto the server, still same

    Tuesday, December 8, 2015 3:12 PM
  • Let's try something simple:

    create a file text : abc.txt (lower case)

    Copy it using AZcopy


    Regards, Samir Farhat || Datacenter Consultant || The way to share my knowledge with the community Visit my blog : buildwindows.wordpress.com buildwindows.wordpress.com </a>

    Wednesday, December 9, 2015 9:48 AM
  • Hi Alan,

    can you please check if you are using the correct and valid Azure storage account key (for /DestKey)? Just to double-check as these keys usually ends with "==" (at least on my side). This video on youtube shows how to get it using the classic portal https://www.youtube.com/watch?v=KMjeSDa_2AE . But you'll find the primary / secondary key in the (new) Azure Portal as well.

    If you want to use a SAS token then you have to use a different commandline parameter: /DestSAS

    Wednesday, December 9, 2015 1:18 PM
  • Hi Alan,

    Where you able to fix your issue? If one (or multiple) of the answers below helped to answer your question, please mark all of them as an answer to your question.

    This will enable other forum members to immediately see which of the answers helped to resolve your issue/question.

    Many thanks,Oliver

    Monday, December 14, 2015 7:38 AM
  • Hi Guys

    Thank you for all the help, the == was the key, the copy/paste I did had not got the full string.

    Got to successfully load now.  I just posted a slightly different problem as below regarding seeing the files in location once they are uploaded.

    https://social.msdn.microsoft.com/Forums/azure/en-US/db996aa5-0bd7-484d-b0af-3bcb06f8eec8/how-can-i-see-azcopy-pst-files-in-my-azure-storage-account?forum=windowsazuredata

     


    Monday, December 14, 2015 9:43 AM