New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure SQL DACPAC task keeps failing #2123
Comments
I have the same build & release definition for an older project thats working fine. I tried both the "Microsoft Azure SQL Database V12" and the "Microsoft Azure SQL Database" project types. Both are not working for the newer release definitions. |
I'm experiencing the same error on both a local build agent and also on the hosted build agents. |
I've tried modifying the SqlAzureDacpacDeployment task it's powershell script by removing the firewall configurations, since I already had a manual firewall rule for my network. I'm still getting the same error. |
@bipindas and @aadje This error is a generic one thrown by sqlPackage.exe due to many possible reasons but main cause of this error is when sqlPackage.exe is not able to make connection with sql Server. Possible reasons could be : @bipindas : This error doesn't seems due to mismatch in dacpac version. If it so, error message will be unable to generate deployment plan but you can try with /p:AllowIncompatiblePlatform=true in additional properties to ensure this. |
Sent task logs to you email address. |
@Ajay-MS thanks, your suggestion to use the FQDN of the SQL server fixed the issue. |
I fixed my issue. I had to use the fully qualified domain name as well. |
@aadje , i am facing issues while deploying the Azure SQL DACPAC . I am getting the below errors ##[error] at Microsoft.TeamFoundation.DistributedTask.Worker.JobRunner.Run(IJobContext jobContext, IJobRequest job, IJobExtension jobExtension, CancellationTokenSource tokenSource) I have also added the Additional SqlPackage.exe Arguments field as you have mentioned above it goes like this Please let me know where i went wrong . |
@himanjanpati check your script for errors. If you have a pre or post deployement scripts check those as well. |
@bipindas thanx for your suggestion but i m not using any SQL script . I m following the steps mentioned in the below link . I am using the DACPAC package for creting the Database in the Azure SQL server . Please have the look . |
@himanjanpati - Can you check if you have added firewall rule correctly , I hope you have followed above steps to isolate if it's a firewall Issue. Verify following details are correct.
Still if you face issue you can try command from cmdline one , final command you can get from logs. If issue still not resolved then you can share logs with us. |
@Ajay-MS I'm getting this error message and have tried the steps you have mentioned. I can connect to the SQL Server from my laptop (SSMS installed locally) and browse the databases. It only happens during the release process - Execute Azure SQL: DacpacTask Is correct FQDN is provided for SQL server- yes. Can connect from the SSMS installed on my laptop Any ideas what's going on!? |
@Sandiejat |
i am facing issues while deploying the Azure SQL DACPAC . I am getting the below errors. *** Could not deploy package. |
The Azure SQL DACPAC task keeps failing. The tables are successfully updated but the tasks returns an error.
Initializing deployment (Failed)
[debug]System.Management.Automation.RemoteException: *** Could not deploy package.
[error]System.Management.Automation.ParentContainsErrorRecordException: *** Could not deploy package.
The text was updated successfully, but these errors were encountered: