/demo-web-classic

A sample ASM Classic based Cloud Service Demo Code Base

Primary LanguageJavaScriptMIT LicenseMIT

web-demo-classic

This is a sample for writing durable functions and enabling docker support.

Requirements:

Installation

Clone the repo

git clone https://github.com/danielscholl/web-demo-classic.git web-demo-classic

Build and Test the Project on Localhost

  1. Build the Project <ctrl><shift><b>

  2. Test the project <F5>

Create ASM Classic Resources

  1. Create a Resource Group

    • Name: ClassicCommon
    • Location: South Central US
  2. Create a Virtual Network (Classic) in the Resource Group - ClassicCommon

    • Name: classicVNet
    • Location: South Central US
    • Address Space: 10.0.0.0/24
    • Subnet Name: MiddleTier
    • Subnet Address Range: 10.0.0.0/27
  3. Create a Virtual Machine (Classic) in the Resource Group - ClassicCommon SQL Server 2016 SP1 Standard on Windows Server 2016

    • Name: classic-vm
    • Location: South Central US
    • User Name: azureuser
    • Password: **********
    • Size: Standard D1_v2
    • Storage Account: {initials}classic
  4. Update the Storage Connection String in WebMVC & WebWorker Role "Settings" Cloud Configuration

    • Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString: <your_storage_connectionstring>
    • StorageConnectionString: <your_storage_connectionstring>
  5. Prepare the Database on the Virtual Machine

    • RDP to the Virtual Machine. Note: You might have to apply the RDP Fix
    • Enable Mixed Mode Authentication
    • Add a SQL Server User: 'azureuser'
    • Connect as azureuser
    • Create a Database name:db
    • Open Firewall Rule for 1433
  6. Update the DB Connection WebWorker Role "Settings" Cloud Configuration and WebMVC/Web.Release.config

    • AdsDbConnectionString: <your_db_connectionstring>
  7. Update the DB Connection for WebMVC in Web.Release.config

    • AdsContext: <your_db_connectionstring>
  8. Publish the Cloud Serivce "ClassicWeb"

    • ServiceLabel: ClassicCommon
    • ServiceName: classiccommon
    • Storage Account: <your_storageaccount>