Design and Implement Azure Web App
C# Corner Bangalore Chapter Meet
Ayush Rathi
DEVELOPER | DESIGNER | TRAINER
@ayushrathi15 AyushRathi.com
Hybrid
• App Service Overview
• App Service Plan
• Deploying Web Apps
• Defining Deployment Slots
• Configuring Web Apps
• Scaling Web Apps
The Azure App Service is a Platform as a Service
offering, or PaaS, from Microsoft.
Azure App Service Overview
Benefits
Multiple languages and frameworks
Integrates with other SaaS Platforms or even
on-premises
Wide variety of templates already available
Integrates with Visual Studio
Highly Scalable
Any platform and on any device
Azure App Service Web Apps (or just Web Apps) is a
service for hosting web applications, REST APIs, and
mobile back ends.
Azure Web Apps
App Design Options
XHTML
CSS
JavaScript
Windows
PowerShell/ Azure
CLIWebMatrixVisual Studio
Web DeployFTP(S) to AzureLocal or cloud based
source control
Web App Deployment Models and Methods
App Service Plan
• Every app needs to be associated to an app service plan.
• An App Service plan defines a set of compute resources for a
web app to run.
App Service Plans
Free and shared
• Test and dev
Basic
• Low traffic, manual scaling, 3 instances
Standard
• Production apps, auto-scaling and backup, 10 instances
Premium
• Can use App Service Environments (ASE), 20 instances
Deploying Web Apps
Demo
• Creating A Web App
Deployment Slots
Define Deployment Slots
• Typically, we never want to deploy an app directly into
production.
• In Azure, we can deploy the deployment slots, test and
then release to production.
• Think of deployment slots as staging areas.
Deployment
Slots
Method to support rapid development
Not available in Free, Shared, or Basic plans
5 slots (default slot is named production)
DEV, QA, UAT environments
Each slot has its own hostname and
configuration
Deployment Slots Workflow
App Production
Staging
Testing
Production
Staging
Swap
Users are unware of this transaction
• • Settings that Swap Settings that Don't Swap
What is Swapped and What is Not Swapped
General settings
App settings
Connection strings
Handler mappings
Monitoring settings
Diagnostic settings
WebJobs content
Custom domain names
SSL certificates and bindings
Scale settings
Publishing endpoints
WebJobs schedulers
Demo
• Adding a Deployment Slot
named Staging to existing Web
App
Configure Web Apps
Demo
• Configure app settings
Scale Web Apps
Demo
• Scaling Up Web app
• App Service Overview
• App Service Plan
• Deploying Web Apps
• Defining Deployment Slots
• Configuring Web Apps
• Scaling Web Apps
The Cloud is changing the world
@ayushrathi15 | AyushRathi.com

Design and Implement Azure Web Apps

Editor's Notes

  • #18 1. URL is different for deployment slots. 2. a.Click on SWAP b. Swap type – Swap / Swap with preview c. Source – Staging d. Destination – Production e. Click OK 3. If you go to resource group and check, you have another web app staging.
  • #20 Open Web App Settings -> Application Settings General Settings - > .net, php, java, python, nodejs version Platform – 32Bit (Free, Shared) , 64Bit (Basic, Premium) Managed Pipeline – Integrated OR Classic(used for legacy app) ARR Affinity – Also known as sticky sessions. You could turn it on to ensure that the particular client is always directed to the same instance for the duration of that session. Auto Swap – When ever there is a new update to staging slot then it will automatically be swapped into the production slot. Debugging – Turn on so as to use Visual Studio to connect directly to the web app. Once on, it remained turned on for 48Hrs. App settings Connection Strings – To connect to database. Default Documents Handler Mapping – It is used to add custom script processors to configure specific extensions such as php, resp.
  • #22 Open Web App Settings -> Application Settings General Settings - > .net, php, java, python, nodejs version Platform – 32Bit (Free, Shared) , 64Bit (Basic, Premium) Managed Pipeline – Integrated OR Classic(used for legacy app) ARR Affinity – Also known as sticky sessions. You could turn it on to ensure that the particular client is always directed to the same instance for the duration of that session. Auto Swap – When ever there is a new update to staging slot then it will automatically be swapped into the production slot. Debugging – Turn on so as to use Visual Studio to connect directly to the web app. Once on, it remained turned on for 48Hrs. App settings Connection Strings – To connect to database. Default Documents Handler Mapping – It is used to add custom script processors to configure specific extensions such as php, resp.