Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Move Azure database from one account to another acount in Azure

Tags:

azure

I have two Azure accounts, A and B

I have a sql server database created under subscription of Account A.

I want to move this sql server database to subscription of Account B.

like image 484
Jin Tiger Avatar asked Dec 08 '16 17:12

Jin Tiger


2 Answers

You can do it all in SQL Server Management Studio

  1. Connect to both Azure accounts in SSMS.

enter image description here

  1. Right click on the source database and do Tasks -> Export data tier application

  2. Save as a .bacpac file to your local disk

  3. In the target connection, go to Databases, right click and choose Import data tier application

  4. Choose Import from local disk and browse to the .bacpac file you just created

like image 115
hawbsl Avatar answered Nov 17 '22 11:11

hawbsl


There is another way similar to what hawbsl has described. However instead of exporting data tier application to local disk, export it to azure blob storage.

So export database in Account A to azure blob storage in Account B:

enter image description here

Then in Account B go to your sql server and click import database:

enter image description here

This link will describe how to import database from blob file

like image 38
JustLearning Avatar answered Nov 17 '22 11:11

JustLearning