To deploy a .dacpac to Azure DB with VS Team Services you can use “Azure SQL Database Deployment” task.
Setup either Azure Classic service endpoint or Azure RM Service endpoint in the, Team Services team project.
In a build or release definition add an “Azure SQL Database Deployment” task. Both classic and RM based setting up shown below.
Provide
- Path to the .dacpac file. (build artifact drop path when used in a release definition)
- Azure DB server name
- Azure DB name
- Azure DB Server user name
- Azure DB Server user password
- Specify firewall rule to use AutoDetect and delete the rule once done.
or you have the option of setting firewall rule like below to get it working. Since you are deleting rule once done this is ok. But it is not that secure to allow all IPs like below.
This can successfully deploy the .dacpac file to Azure DB using VS Team Services Release.
No comments:
Post a Comment