Azure Runbook – Get a file from Azure File System Storage

Question:

I am creating a Azure workflow runbook wherein I have to get a file from Azure File System Storage and publish that to a azure web app.

I tried with New-PSDrive but that command is not supported in runbook (even InlineScript doesn’t work). Could anyone help me with the script. In the below code I need to populate file path from azure file system.

I searched a lot but couldn’t find much information on this.

Answer:

Are you referring to a file in a Azure Storage account? If so, that is pretty easy to accomplish. Add the following to your Runbook, filling in the required information:

You also need to create an variable in your Automation Account, called “storageKey” containing your Storage Accounts key.

Source:

Azure Runbook – Get a file from Azure File System Storage by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply