Getting Oauth token error while executing azcopy

Dinesh Kumar 1 Reputation point
2020-06-10T14:47:17.017+00:00

Hi,

I have the below command to copy folders and its sub directories to blob storage. I am using the 10.3.4 version.
azcopy copy \uncserver\source1\folder1\archive https://1234server.blob.core.windows.net/folder2/target/archive/ --recursive

Am getting the below error while executing the above command. I know, am executing without SAS token. but it should regonize the OAuth token.
I want to go with Oauth token. How do I proceed further.

Error:
failed to perform copy command due to error: no sas token or OAuth token is present and the resource is not public.

Thanks.

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,742 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 23,981 Reputation points Microsoft Employee
    2020-06-10T17:13:56.827+00:00

    Ignoring the SAS token, there are a number of people who ran into Oauth token errors that were generated because the session key ring was not propagated/shared in the expected way. The workaround for this (other than using a SAS token), is to switch to a named session key ring instead of the default:

    Check your AzCopy Key:

    keyctl show
    

    Switch to a named session key ring:

    keyctl session workaroundSession
    

    After this, AzCopy should work as normal.

    Reference:

    1 person found this answer helpful.