0
votes

I am creating an ARM template to deploy a handful of apps, databases and storage accounts. I am able to create a new SQL Database from a .bacpac file that sits in a storage account, and that allows me to populate data into the db on deployment. I was wondering if there is something similar for Storage Accounts. Say I want to create a new instance of an environment, but I want to load it with Storage Account Data from Production. Currently, I have a PowerShell script that gets the name and key for the source and destination storage account, and I then call AZCopy to move the data that way. Is there a preferred approach to doing this task using ARM? Is there anything in the Pipeline to allow importing data from an existing Storage Account?

2

2 Answers

1
votes

How about using Azure Data Factory with a copy activity from blob to blob? it can be created by the deployment template.

0
votes

ARM doesn't have any data- or file-copying routines built-in, as it's focused on infrastructure buildout coordination. You could certainly use ARM to kick off a custom script in a VM, or some other mechanism that starts your AzCopy procedure running.