I'm very new to Azure and have been tasked with automating the process of taking an existing version of our database, converting it to the newer version and then uploading that to Azure.
The conversion is done, that parts easy, what I'm struggling with is getting a .bacpac file from SSMS using PowerShell. I know I can use the Export Data Tier Application function in SSMS to do this but I need it to be automated. From there I can use something like the following to actually upload the database:
I have looked around and cannot find a solution to this, or even know where to start.
1条答案
按热度按时间sr4lhrrt1#
You can create bacpac of your on-premises databases and locate them on a local folder (c:\MyBacpacs) using SQLPackage .
You can then use AzCopy to upload bacpacs to Azure BLOB storage