I'm trying to get the AdventureWorks dataset into a new Azure SQL Server Database, using the instructions here : https://learn.microsoft.com/en-us/sql/samples/adventureworks-install-configure?view=sql-server-ver16&tabs=ssms
When I connect to the Azure SQL Server either via Azure Data Studio, or MS SQL Server Management Studio, I do not have the "Restore" button, as indicated in the instructions in the link above.
I've also tried using T-SQL (in both environments), and get an error that the RESTORE statement is not supported in this version of SQL Server.
I've found in the Azure portal, when I'm on the SQL Server Resource, there's an option to Import Database, from a file saved in Azure Blob container, so I moved the .bak file there, and I've gone through the wizard and tried importing the .bak file that way, to no avail. The wizard asks for Microsoft Entra Admin Username and Password, so I enter my own, but then after a long time of deploying/importing the database, I get an error:
Message: Failed to authenticate the user XXXXXXXXX@XXXXX.XXX in Active Directory (Authentication=ActiveDirectoryPassword).
Error code 0xinvalid_grant
AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access XXXXXXX...
but I can't find an option to set it up with MFA, only username and password.
I've since found documentation to suggest that you cannot import a .bak file into Azure SQL database, and it must be a .bacpak
- Why does the tutorial in the link above imply that you can
- How does one convert a .bak file to a .bacpak file? Why does Microsoft not supply the .bacpak file?
Does anyone have any suggestions how to proceed?
Thanks.