For context: I am currently tasked with creating a pipeline that tests the application for my work. The application is coded in C# and uses a local database instance of a SQL Server.
Part of our solution is a tool to reset the database with all needed data and our application needs input from the database on startup. Part of the application is a supporting tool, that sets up the database with all important data via a .bak file and some SQL scripts.
For testing we are using AzureDevops pipelines. Currently we are able to cover all our needs via the hosted agents in a 'windows-latest' vm.
So to my question:
To fully test the application, I would need to create a SQL Server instance within the VM of the pipeline. But so far I only found information on how to connect to an external server or how to install it manually, so not really any approach for what I am trying to create. Is creating a local instance within the pipeline VM such a bad idea that nobody covers it? How do I go about doing this? Any help would be greatly appreciated.
Currently the application is tested manually with a local SQL Server 15.0.2130 instance. We use SSMS to view and test SQL-scripts. The instance is setup via SQL Express.
Update:
Trying to answer the first comment, I found SQL Server Express LocalDB as mentioned in this question. This seems promising so far, I will update on whether this solved my problem or not.