I have web application hosted on Windows azure instance. We have a test and live cloud service, the test service have 1 instance and live service have 3 instances.
The application for test is deployed automatically every nightly via TFS Builds and deployed to Windows Azure using power shell scripts.
The problem is we have old school sql scripts for database schema and data changes (if required). Currently we have to login to azure sql database manually (SMSS) and run the script.
I would like to automate the sql script on every build that run nightly via TFS Build Machine using powershell script. How can I do this ?
The SQL Script is re-runnable so there is no worries, if it runs the same script every day as this will not create any problem on the test application.