Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Copy files from One Azure Storage account blob to another storage account Blob.

(0) ShareShare
ReportReport
Posted on by

Hello ,

           I am facing issue in URL when i try to download the copied Blob files.

Am trying to copy files from azure storage account to another storage account blob.it is getting success and i need the URL to access each files which is copied .

for example : 

this is source URL for file :

https://dev01.blob.core.windows.net/tool/%7B4EA0DDE5-F934-4B4D-84E7-BEF248103A72%7D/CreateTaskGuide.xml?sv=2014-02-14&sr=b&sig=wQ1huQu7dRs1HGSre%2Bb67O%2B1Uohy%2F0LmXG5TfITmpe0%3D&st=2017-11-09T06%3A33%3A54Z&se=2045-06-15T06%3A38%3A54Z&sp=r 

this file is transferred to another storage account folder but need to know how to access the file using url like above . i tried to change the url like below

https://dev01.blob.core.windows.net/tool/%7B4EA0DDE5-F934-4B4D-84E7-BEF248103A72%7D/CreateTaskGuide.xml?sv=2014-02-14&sr=b&sig=wQ1huQu7dRs1HGSre%2Bb67O%2B1Uohy%2F0LmXG5TfITmpe0%3D&st=2017-11-09T06%3A33%3A54Z&se=2045-06-15T06%3A38%3A54Z&sp=r 

but am getting signature related error.

Please suggest any solution. 

Thanks

Suganthi

*This post is locked for comments

  • Verified answer
    Martin Dráb Profile Picture
    233,634 Most Valuable Professional on at
    RE: Copy files from One Azure Storage account blob to another storage account Blob.

    Both URLs look the same to me.

    But if you try to use a shared access signature from one storage account to access resources in another storage account, it's not going to work.

  • Community Member Profile Picture
    on at
    RE: Copy files from One Azure Storage account blob to another storage account Blob.

    Hi,

         The First storage account URL got it from the below code,

    "var uploadedBlobInfo = blobStorageService.GetData(

               '{780FFA43-DBA0-4D6D-8D47-C2A9A834542D}',

               'rtatool',

               BlobUrlPermission::ReadWrite,

                       System.TimeSpan::FromDays(strategy.getBlobLinkExpirationTimeSpanInMinutes()),

                       false);

    url = uploadedBlobInfo .bloblink;"

    the second Storage account URL i manually changed. also i tried to get it from the same code used above but it is also throwing error that

    "An exception of type 'Microsoft.DynamicsOnline.Infrastructure.Components.SharedServiceUnitStorage.SharedServiceUnitNotFoundException' occurred in Microsoft.Dynamics.Clx.ServicesWrapper.dll but was not handled in user code

    Additional information: Record for Id - {780FFA43-DBA0-4D6D-8D47-C2A9A834542D} not found."

    but the file( {780FFA43-DBA0-4D6D-8D47-C2A9A834542D} ) is exists in azure storage account.

    how to i get the URL. please help.

    Regards,

    Suganthi

  • Martin Dráb Profile Picture
    233,634 Most Valuable Professional on at
    RE: Copy files from One Azure Storage account blob to another storage account Blob.

    Where did you get the URL?

  • Community Member Profile Picture
    on at
    RE: Copy files from One Azure Storage account blob to another storage account Blob.

    Hi Martin,

                        I am getting below error.

    This XML file does not appear to have any style information associated with it. The document tree is shown below.

    <Error>

    <Code>AuthenticationFailed</Code>

    <Message>

    Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:c1589fb9-001e-0121-70e6-6136b6000000 Time:2017-11-20T10:00:09.6221181Z

    </Message>

    <AuthenticationErrorDetail>

    Signature did not match. String to sign used was r 2017-11-09T06:33:54Z 2045-06-15T06:38:54Z /rrdev04d60d3af1be8fe668/rtatool/{4EA0DDE5-F934-4B4D-84E7-BEF248103A72}/CreateTaskGuide.xml 2014-02-14

    </AuthenticationErrorDetail>

    </Error>

    Regards,

    Suganthi

  • Martin Dráb Profile Picture
    233,634 Most Valuable Professional on at
    RE: Copy files from One Azure Storage account blob to another storage account Blob.

    Can you tell us more about the error, please?

    Also, consider asking in a forum about Azure storage rather than in AX forums.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 48

#3
shanawaz davood basha Profile Picture

shanawaz davood basha 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans