Azure-docs: Broken folder structure

Created on 24 Sep 2018  Â·  13Comments  Â·  Source: MicrosoftDocs/azure-docs

I have a custom activity that had some dependencies in a folder. I had no issues transferring it to blob storage but when the custom activity was copied to Azure Batch, the folder structure was flattened. This behaviour is not documented. Is it expected?


Document details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

assigned-to-author data-factorsvc doc-bug triaged

All 13 comments

@Anded Thanks for the feedback! We are currently investigating and will update you shortly.

@Anded Can you please provide more detail on your specific scenario?

I have a custom activity to decrypt PGP encrypted files. I am using GnuPG binaries to do it, so they have to be included with the activity. So, when built, I have activity executables and a folder with GnuPG binaries. Like so:
image
The problem is that it is structured exactly the same way on blob storage but the folder structure gets flatenned when Azure Batch copies the activity's files. My activity is expecting GnuPG binaries in GnuPG_bin folder and fails to find them when run on Azure Batch. I have figured this out by listing the activity's run directory on Azure Batch. It just ends up looking this this:
image
It looks like this is either an undocumented behaviour or a bug.

@Anded I have assigned the issue to the content author to evaluate and update as appropriate. Thanks again!

Forwarded question to PM

in-progress

@Anded Yes this is the behavior by design. It is on our backlog to improve this in order to maintain the same structure.
For now, suggestion is to zip the folder, so custom activity copies it as is, and then unzip it in custom code in the path you want.

please-close

While the behaviour is by design, it is still undocumented in the article...

@Anded We're talking about the contents of the _folderPath_ property of the Custom Activity, correct? Mentioned under here Custom activity?

That is correct.

@Anded I have added the explanation and suggested workaround to the article under the _folderPath_ property. I'll let you know late tomorrow (Tuesday) when the updated page is published, for you to take a look at for me. Thanks.

@Anded Please check the expanded description of folderpath. I believe that this resolves the issue.

please-close

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JamesDLD picture JamesDLD  Â·  3Comments

bityob picture bityob  Â·  3Comments

paulmarshall picture paulmarshall  Â·  3Comments

Agazoth picture Agazoth  Â·  3Comments

jebeld17 picture jebeld17  Â·  3Comments