0
votes

We are using Azure devops to deploy changes to Azure SQL database using dacpac. I want to add a step in the build or release pipeline to take backup of the database but didn't find any task in devops marketplace. Can anyone suggest some way to take db backup in devops pipeline. It will be very helpful. Thanks.

1
Hi friend, any update for this issue?LoLance

1 Answers

2
votes

Azure CLI with az sql db commands can be used to manage your Azure Database. Azure Devops Service provides Azure CLI task to call Azure CLI in Azure Devops pipelins.

And here're two documents that you can refer to:

Use CLI to backup an Azure SQL single database to an Azure storage container

Use CLI to restore a single database in Azure SQL Database to an earlier point in time