web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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

I have the same question (0)
  • Martin Dráb Profile Picture
    237,912 Most Valuable Professional on at

    Can you tell us more about the error, please?

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

  • Community Member Profile Picture
    on at

    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
    237,912 Most Valuable Professional on at

    Where did you get the URL?

  • Community Member Profile Picture
    on at

    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

  • Verified answer
    Martin Dráb Profile Picture
    237,912 Most Valuable Professional on at

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans