Replication between Storage account

Mohammed Altamash Khan 2,086 Reputation points
2022-09-14T09:01:44.82+00:00

Hello Folks

My Environment :

My Azure AD user is in different tenant and storage account is in different.

My SAN Storage box is sending backup to azure blob container , From container im copy the data manually daily in File share by using Azcopy CMD ( So my user can see the latest files daily ). I want to replicate my data in Container blob to File share storage automatically/periodic Schedule.

Question 1 : Is the a way i can automate this with a .bat file or any other way , i tried creating the .bat file but its throwing error of authentication.

So currently im sharing the fileshare mapping URL to end users for operations purpose.

Note : Why Im using fileshare in middle ? Answer : It has better backup/Restore option (Im looking for full backup of data each day ). 2. Easy UI for End users.

Regards,
Mohammed Altamash

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.
3,107 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Carlos Solís Salazar 17,871 Reputation points
    2022-09-14T12:36:26.04+00:00

    Hi @Mohammed Altamash Khan

    Thank you for asking this question on the **Microsoft Q&A Platform. **

    You can create a .bat file or a .ps1 file. An important requirement to avoid authentication errors with azcopy is to create/use a SAS token.

    azcopy copy "https://account.blob.core.windows.net/mycontainer1/?sv=2018-03-28&ss=bjqt&srt=sco&sp=rwddgcup&se=2019-05-01T05:01:17Z&st=2019-04-30T21:01:17Z&spr=https&sig=MGCXiyEzbtttkr3ewJIh2AR8KrghSy1DGM9ovN734bQF4%3D" "\fileshare\path" --recursive=true

    Hope this helps,

    ----------

    Accept Answer and Upvote, if any of the above helped, this thread can help others in the community looking for remediation for similar issues.
    NOTE: To answer you as quickly as possible, please mention me in your reply.


Your answer

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