Share via

AzCopy Not Working

KJ 81 Reputation points
2021-03-01T16:17:47.657+00:00

I’m trying to sync all newer files in a local folder to Azure blob storage using a certificate for authentication. For testing purposes, I used the example command to create a self signed certificate and uploaded it to Azure.
This part appears to be working, but I still can’t get any files from the local folder to appear in blob folder.
Not sure if it’s a syntax error in the AZCopy command or something else. No errors message appears other than a notice that environment variables with the certificate password may be visible in my command history.

This is the command I tried.

azcopy login --tenant-id ***** --service-principal --certificate-path C:\Upload\certificate.pfx --application-id ***** sync "c:\upload\files\" "https://tenantname.blob.core.windows.net/$root"

Is there a different way to write this command that will work?

Azure Storage
Azure Storage

Globally unique resources that provide access to data management services and serve as the parent namespace for the services.

Azure Blob Storage
Azure Blob Storage

An Azure service that stores unstructured data in the cloud as blobs.

0 comments No comments

Answer accepted by question author

Anonymous
2021-03-01T19:33:26.213+00:00

@KJ
I believe the issue might be the syntax of the command. They should be two separate commands instead of one. Can you please try running the azcopy login followed separately by azcopy sync?

-------------------------------

Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

Was this answer helpful?


1 additional answer

Sort by: Most helpful
  1. Marimuthu Sarangapani Ayyappan 1 Reputation point
    2021-03-01T16:28:38.603+00:00

    Hi,

    For syncing the files, please use AzCopy Sync.
    Please refer to this documentation.

    https://learn.microsoft.com/en-us/azure/storage/common/storage-ref-azcopy-sync?toc=/azure/storage/blobs/toc.json

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.