Isaac Levin
Isaac Levin

Reputation: 2909

Import data into new Storage Account Azure Resource Manager

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?

Upvotes: 0

Views: 294

Answers (2)

Nava Vaisman Levy
Nava Vaisman Levy

Reputation: 514

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

Upvotes: 1

David Makogon
David Makogon

Reputation: 71130

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.

Upvotes: 0

Related Questions