Migrate Existing MVC Or .Net Application To Azure Environment

Migrate Existing MVC

Step 1 Create Azure Cloud Service Project
  • Open Visual Studio 2015
  • New Project
  • Choose Cloud
  • Select Azure Cloud Service
  • Re-Name(AzureCloudService)
  • Click Ok
  • Click OK on Add Role

    Migrate Existing MVC
Step 2
  • Right Click on Solution
  • Add
  • Existing Project
  • Open Existing Project
  • Select Project From Directory
  • Select Online Test Exam Project
  • Select Project File

    Migrate Existing MVC

    Migrate Existing MVC
Step 3
  • Right Click on Role
  • Add
  • Select Web Role Project in Solution

    Migrate Existing MVC
Step 4

Add References to the Windows Azure specific assemblies

There are 4 differences and they are,

  • Microsoft.WindowsAzure.Diagnostics
  • Microsoft.WindowsAzure.ServiceRuntime
  • Microsoft.WindowsAzure.StorageClient
    1. Right Click on Online Test Exam Maker Project
    2. Select Manage NuGet Package
    3. Click on Browse Tab
    4. Type AzureSDK2.2DLLs
    5. Click Install
Step 5 Database Migration
  1. Create Database Script
  2. Open http://portal.azure.com
  3. Select Database
  4. Create New SQL Azure Database
  5. Copy Credentials
Step 6
  1. Open SQL Server Management Studio in your System
  2. Connect with SQL Azure Database by Entering Credentials copied from Azure Portal
  3. Open New Query Run the Script
  4. Change Connection String in web.config
Step 7
  1. Build the project
  2. Run the project
  3. Out put
  4. Publish at Azure
Ebook Download
View all
Learn
View all