snippetMinor
How to deploy Dev Azure SQL code to Prod Azure SQL using dacpac without knowing the target server credentials
Viewed 0 times
prodwithoutthetargetserversqldacpacdevdeploycredentials
Problem
Here is my scenario -
I have access to source Azure SQL Database where i did few changes to schema (eg adding a table). Now I want to deploy this SQL code to prod Azure SQL Database using Azure DevOps dacpac task.
Build pipeline - I have used MS Build task to generate .dacpac file
Release pipeline - I know Azure SQL server name and Database name but do not know Server admin credentials. How to deploy dacpac to the Prod target server? What are all the tasks required in Release pipeline to achieve this and it should be repeatable process.
Any help would be really appreciated
I have access to source Azure SQL Database where i did few changes to schema (eg adding a table). Now I want to deploy this SQL code to prod Azure SQL Database using Azure DevOps dacpac task.
Build pipeline - I have used MS Build task to generate .dacpac file
Release pipeline - I know Azure SQL server name and Database name but do not know Server admin credentials. How to deploy dacpac to the Prod target server? What are all the tasks required in Release pipeline to achieve this and it should be repeatable process.
Any help would be really appreciated
Solution
You either have to have the login information in order to connect to the database, or, you have to configure your database server to allow access to Azure Services. This means that the SQL Database and server and the Azure DevOps pipelines have to be part of the same account (not necessarily the same login, but Azure AD). I'd lean towards requiring the connection information rather than open up everything broadly between all your Azure services.
Context
StackExchange DevOps Q#11151, answer score: 1
Revisions (0)
No revisions yet.