سؤال

I have create mvc5 application (web UI with sql server and entity framework) which is working as expected, now I want to deploy it in azure ,what it the simplest way to do that?

Currently the application work with SQL DB how should I change it to work with azure sql Db ,what are the steps...

im using VS2013 premium for web

Thanks!

هل كانت مفيدة؟

المحلول

  1. Login to your windows Azure account
  2. Create a SQL Database on Azure
  3. Map database to your new created website
  4. Download PublishSettings for your website
  5. Visual Studio: Right click on your MVC Solution and choose publish
  6. Choose import and select the downloaded publishsettings
  7. Connection: choose the provided azure connectionstring to your database
  8. click publish

You can also login to your azure account after clicking on Publish in VS. Then you don´t need to download your publishsettings. Choose the website you want to deploy to, select the connectionstring and publish.

Hope this will fit your needs.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top