Deploy to Database
1. Add database connection string in web.config
2. Deploy app to cloud
3. Access database in Server Explorer
1. Add database connection string
Replace with the connection string of your databaseSee next slide for how to get your database connection string on Azure Portal
Obtain database connection string on Azure Portal
2. Deploy app to cloud
Right click and select publish
3. Access database in Server Explorer
Need to configure the firewall of database to allow the access from your IP address
You can monitor the performance of your database on Azure Portal
Go to your web app, create an account and log in.
Oops, got an error after log in?Because we haven’t completed deploying the database, e.g. the table “UserQuestions” is missing.(to do in next class)
These tables were implemented using LINQ-to-SQL rather then Entity Framework.We will need to re-implement this part in next class