Open nzolotar opened 4 years ago
I'm in need of this feature too! We're using DbUp with Azure SQL. Would love to use AAD or MSIs instead of having to worry about protecting sql credentials
@sungam3r has tersely demonstrated how to use Azure Integrated Security with DbUp.
Let's close this issue?
@nzolotar for reference, there is a method overload of SqlDatabase()
that accepts boolean for azure support.
Example
var upgrader =
DeployChanges.To
.SqlDatabase(connectionString,null,true)
.WithScriptsEmbeddedInAssembly(Assembly.GetExecutingAssembly())
.LogToConsole()
.Build();
Thanks,
This does not work for Azure AD when on Azure Gov.
the url for getting the token that is hard-coded is incorrect here ("https://database.windows.net/"). Is there a way to make this configurable?
For the record, for Azure AD on Azure Gov, the url should be: "https://database.usgovcloudapi.net"
My links from https://github.com/DbUp/dbup-sqlserver/issues/7 point to nowhere... I don't remember what I wanted to show.
Base url for updated links: https://github.com/DbUp/dbup-sqlserver/tree/main/src/dbup-sqlserver
I cant get it to work because you only accept connection as a string! And I need to get Azure token first and then establish a connection. Please advise if there any options. urgent project!
and then