-
Notifications
You must be signed in to change notification settings - Fork 7
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
Support multidacpac deployment on hosted agent 2017 #20
Comments
@asiffermann I'd be happy to have your feedback on the recent changes I've made on that matter before I publish it :) |
Actually, we may want to move SQLServer/SQLPS and sqlpackage install to some tool installer task. |
They have changed the nuget package for sqlpackage which is now there https://www.nuget.org/packages/Microsoft.SqlServer.DacFx.x64/ I was running into that problem : https://blogs.msdn.microsoft.com/azuresqldbsupport/2017/09/19/deployment-fails-with-unable-to-connect-to-master-or-target-server-mydb_svr-you-must-have-a-user-with-the-same-password-in-master-or-target-server-mydb-db/ And it seems the probleme is related to azure receiving updates and hosted agent having a by design outdated version of sql package. It feels like a tool installer is now a must have. |
Arf no DacFx does not contain the exe. and https://www.nuget.org/packages/Microsoft.Data.Tools.Msbuild/ mentioned here https://blogs.msdn.microsoft.com/ssdt/2016/08/22/releasing-ssdt-with-visual-studio-15-preview-4-and-introducing-ssdt-msbuild-nuget-package/ lags one version behind |
Currently the detection script picks an older version that the last one available (which should be 140 instead of 130): C:\Program Files (x86)\Microsoft SQL Server\140\Dac\bin\SqlPackage.exe
|
Oops the log was from our out of date agent which explains a lot. Which is the perfect illustration of the need of a tool installer especially since azure team expects it to be up to date at all times |
Since the release of SQL Server 2017, sqlps is replaced by SqlServer powershell module which is a standalone package which can be installed with install-module command 🎉 . The even better news is that install-module is works just fine on current hosted agent images. So the following script just works:
SSDT (sqlpackage) is also available on agents. It is also available as a standalone nuget package.
It means that we could add the dependencies automatically if not found and support any agent without any manual steps (as long as it as nuget tools and powershell gallery tools).
The text was updated successfully, but these errors were encountered: