Copy .bak file into SQL Server running on Azure VM via ADf

Sam Bera 26 Reputation points
2021-12-02T04:21:05.663+00:00

I have a requirement where a third party sends a copy of their database as a .bak file daily. What is the best way to update my SQL server database with this .bak file using Azure Data Factory?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,623 questions
SQL Server Migration Assistant
SQL Server Migration Assistant
A Microsoft tool designed to automate database migration to SQL Server from Access, DB2, MySQL, Oracle, and SAP ASE.
568 questions
0 comments No comments
{count} votes

Accepted answer
  1. YufeiShao-msft 7,146 Reputation points
    2021-12-02T06:07:12.907+00:00

    Hi @Sam Bera ,

    ADF doesn't support .bak file, your normal SQL Server backup cannot be restored in Azure. There are the Supported file formats

    But, you can chooes to restore .bak file to the local server, and then to create a .bacpac file from the restored DB
    Then Import a BACPAC file to a database in Azure SQL Database or Azure SQL Managed Instance


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Olaf Helper 47,436 Reputation points
    2021-12-02T10:35:02.397+00:00

    Other option is to copy the backup file to Azure Blob Storage, then you can restore the BAK from that location.
    See SQL Server Backup and Restore with Azure Blob Storage


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.