SlideShare a Scribd company logo
1 of 17
Download to read offline
Deploying ASP.NET and MVC
applications to Azure

Glyn Darkin, Solutions Architect
18/04/2013

Our Awards:
What should you be mindful of as a developer if you are
considering Azure as a hosting platform?
Outside the scope of this discussion

•

Building for the Cloud

•

Cloud Service Worker Roles

•

Big Data

•

Mobile Services
Microsoft Azure for ASP.Net

SaaS

Websites

Media

Add-Ons

PaaS

Cloud
Services

Service
Bus

Distributed
Cache

IaaS

VMs

Storage

Network

Hyper-V
Azure Website vs. Cloud Service Web Role
Comparison Matrix
Feature
Access to services like Caching, Service Bus, Storage, SQL Azure Database
Support for ASP.NET, classic ASP, Node.js, PHP
Shared content and configuration
Deploy code with GIT, FTP
Near-instant deployment
Multiple deployment environments (production and staging)
Network isolation
Remote desktop access to servers
Ability to run programs with elevated permissions
Ability to define/execute start-up tasks
Ability to use unsupported frameworks or libraries
Support for Windows Azure Connect/ Windows Azure Network

Reference MSDN Blog

Web Sites

Web Roles

Yes

Yes

Yes

Yes

Yes

No

Yes

No

Yes

No

No

Yes

No

Yes

No

Yes

No

Yes

No

Yes

No

Yes

No

Yes
Is Azure the only PaaS that can host ASP.NET?

•

There will be others

•

It’s a race to the bottom

•

Our Solutions should be portable
Websites
Plain Vanilla Website
•

Replicates a Shared Hosting Platform but with elastic scalability

•

Can deploy a plain vanilla ASP.NET website

•

No SDK dependencies

•

No IDE dependencies

•

You can deploy your site to other hosting providers
– AWS, AppHarbour, Rackspace

•

10 free sites with the domain http://seotools.azurewebsites.net

•

Entity framework is fully supported with migrations
Cloud Service
Web Role
•

1 Cloud Service represents a single virtual machine

•

Part of a Cloud Solution

•

Requires the Azure SDK & tools to be installed

•

Uses a VIP to switch between a Staging & Production instance
–

•

Your code needs to reference the Azure SDK
–

•

Staging DNS creation & resolution can be SLOW

Therefore your product is not portable

Local development emulator
–
–

Learn to hack using shared resources

–
•

Very slow code, test, debug cycle

Is not the same as Azure, there are differences so be warned!!!!

No local disk access
Things you need to keep in mind
Part 1
•

You need to use the Session State provider for Windows Azure Caching
–

•

You don’t have write access to the file system
–

•

TempData uses Session State

You will need to store uploaded files in either Blob storage or SQL

You are running behind a load balancer
–

Requests that last longer than 60secs are killed
Things to keep in mind
Part 2
•

There is no SMTP server in Azure
–
–

•

User a Service link SendGrid or MailGun
User Message Bus to send message on premise and email from there

Logging/Trace output
–

Websites: Tracing output is stored against the website on disk & can be accessed via FTP
•

–

Cloud: Tracing has to be coded & configured & is stored in Table Storage
•

•

Or Streamed into Visual Studio Output Window!!!

It can be queried in Visual Studio

Configuration
–
–

•

Websites: Web.config with transformations
Cloud: ServiceDefinition.csdef and ServiceConfiguration.environment.cscfg

Images
–

Push your images to the Azure CDN
Deployment

Website

Cloud Service

Direct from TFS

Yes

Yes

Git, Mercurial, FTP

Yes

No

MSBuild, Powershell

Yes

Yes

Visual Studio*

Yes

Yes

Deployment Pipeline

No

Yes

* You should never be deploying from Visual Studio
Demo
The default MVC website
•

Windows Azure Website
– http://version1.azurewebsites.net/

•

Windows Azure Cloud Service
– http://version2.cloudapp.net/
Comparison of the file structures
Windows Azure SQL
Same Same but different
•

Fully managed database environment

•

Not all T-SQL supported in Azure

•

SQL Management Studio not fully supported

•

SQL Server replication not supported

•

Backup strategy is a little different – SYNC instead

•

Full-Text Search not supported

•

Full list of unsupported features

•

If you want to scale your database then KISS

•

BCP from the command line is fastest way to get all your data in

•

MS SQL Server Migration Wizard - http://sqlazuremw.codeplex.com/

http://msdn.microsoft.com/en-us/library/windowsazure/ff394115.aspx
Conclusion
Recommendations
•

Websites uses everything you already know

•

CloudServices you have to learn new stuff

•

Start with Websites and migrate to a Cloud Service when you need to

•

Keep in mind that Azure is a moving target

•

Windows Azure SQL requires a very simple approach
– Great for developers, not so much for the SQL DBA

•

You can always just spin up a VM for a legacy app
Q&A

&
Links

•

Azure Storage Explorer
– Blob, Table, Queue

•

CloudBerry Storage Explorer
– Blob with Sync

More Related Content

What's hot

Modernize Java Apps on Microsoft Azure
Modernize Java Apps on Microsoft AzureModernize Java Apps on Microsoft Azure
Modernize Java Apps on Microsoft Azure
David J Rosenthal
 

What's hot (20)

Migrate an Existing Application to Microsoft Azure
Migrate an Existing Application to Microsoft AzureMigrate an Existing Application to Microsoft Azure
Migrate an Existing Application to Microsoft Azure
 
Microsoft Azure Platform-as-a-Service (PaaS)
Microsoft Azure Platform-as-a-Service (PaaS)Microsoft Azure Platform-as-a-Service (PaaS)
Microsoft Azure Platform-as-a-Service (PaaS)
 
Introduction of Windows azure and overview
Introduction of Windows azure and overviewIntroduction of Windows azure and overview
Introduction of Windows azure and overview
 
Introduction to Microsoft Azure 101
Introduction to Microsoft Azure 101Introduction to Microsoft Azure 101
Introduction to Microsoft Azure 101
 
Introduction of microsoft azure
Introduction of microsoft azureIntroduction of microsoft azure
Introduction of microsoft azure
 
Microsoft SQL Licensing Workshop - Software ONE
Microsoft SQL Licensing Workshop - Software ONEMicrosoft SQL Licensing Workshop - Software ONE
Microsoft SQL Licensing Workshop - Software ONE
 
Cloud computing and the Windows Azure Services Platform (KU Leuven)
Cloud computing and the Windows Azure Services Platform (KU Leuven)Cloud computing and the Windows Azure Services Platform (KU Leuven)
Cloud computing and the Windows Azure Services Platform (KU Leuven)
 
The Basics of Getting Started With Microsoft Azure
The Basics of Getting Started With Microsoft AzureThe Basics of Getting Started With Microsoft Azure
The Basics of Getting Started With Microsoft Azure
 
Azure hands on lab
Azure hands on labAzure hands on lab
Azure hands on lab
 
Creation of cloud application using microsoft azure by vaishali sahare [katkar]
Creation of cloud application using microsoft azure by vaishali sahare [katkar]Creation of cloud application using microsoft azure by vaishali sahare [katkar]
Creation of cloud application using microsoft azure by vaishali sahare [katkar]
 
Get Started With Microsoft Azure Cloud Service
Get Started With Microsoft Azure Cloud ServiceGet Started With Microsoft Azure Cloud Service
Get Started With Microsoft Azure Cloud Service
 
Introduction to Microsoft Azure
Introduction to Microsoft AzureIntroduction to Microsoft Azure
Introduction to Microsoft Azure
 
Modernize Java Apps on Microsoft Azure
Modernize Java Apps on Microsoft AzureModernize Java Apps on Microsoft Azure
Modernize Java Apps on Microsoft Azure
 
Introduction to Microsoft Azure
Introduction to Microsoft AzureIntroduction to Microsoft Azure
Introduction to Microsoft Azure
 
IaaS vs. PaaS: Windows Azure Compute Solutions
IaaS vs. PaaS: Windows Azure Compute SolutionsIaaS vs. PaaS: Windows Azure Compute Solutions
IaaS vs. PaaS: Windows Azure Compute Solutions
 
Ingram Micro IaaS Playbook
Ingram Micro IaaS PlaybookIngram Micro IaaS Playbook
Ingram Micro IaaS Playbook
 
The Layman's Guide to Microsoft Azure
The Layman's Guide to Microsoft AzureThe Layman's Guide to Microsoft Azure
The Layman's Guide to Microsoft Azure
 
Introduction to Azure IaaS
Introduction to Azure IaaSIntroduction to Azure IaaS
Introduction to Azure IaaS
 
Cloud Computing and Microsoft Azure
Cloud Computing and Microsoft AzureCloud Computing and Microsoft Azure
Cloud Computing and Microsoft Azure
 
Windows azure jump start - ppt's - 2-6-2017
Windows azure   jump start - ppt's - 2-6-2017Windows azure   jump start - ppt's - 2-6-2017
Windows azure jump start - ppt's - 2-6-2017
 

Similar to Deploying asp.net and mvc applications to azure

Is Your Developer's Head in the Cloud? May 7 Webinar
Is Your Developer's Head in the Cloud? May 7 WebinarIs Your Developer's Head in the Cloud? May 7 Webinar
Is Your Developer's Head in the Cloud? May 7 Webinar
C/D/H Technology Consultants
 
Geek Sync | Taking Your First Steps to the Cloud—Building a Hybrid Model
Geek Sync | Taking Your First Steps to the Cloud—Building a Hybrid ModelGeek Sync | Taking Your First Steps to the Cloud—Building a Hybrid Model
Geek Sync | Taking Your First Steps to the Cloud—Building a Hybrid Model
IDERA Software
 

Similar to Deploying asp.net and mvc applications to azure (20)

Kudu voodoo slideshare
Kudu voodoo   slideshareKudu voodoo   slideshare
Kudu voodoo slideshare
 
Should I move my database to the cloud?
Should I move my database to the cloud?Should I move my database to the cloud?
Should I move my database to the cloud?
 
Integrating your on-premises Active Directory with Azure and Office 365
Integrating your on-premises Active Directory with Azure and Office 365Integrating your on-premises Active Directory with Azure and Office 365
Integrating your on-premises Active Directory with Azure and Office 365
 
A to z for sql azure databases
A to z for sql azure databasesA to z for sql azure databases
A to z for sql azure databases
 
Building Azure RemoteApp - Microsoft Campus Days 2014
Building Azure RemoteApp - Microsoft Campus Days 2014Building Azure RemoteApp - Microsoft Campus Days 2014
Building Azure RemoteApp - Microsoft Campus Days 2014
 
Migrare Applicazioni Web su Azure
Migrare Applicazioni Web su AzureMigrare Applicazioni Web su Azure
Migrare Applicazioni Web su Azure
 
Best Practices for couchDB developers on Microsoft Azure
Best Practices for couchDB developers on Microsoft AzureBest Practices for couchDB developers on Microsoft Azure
Best Practices for couchDB developers on Microsoft Azure
 
Implement SQL Server on an Azure VM
Implement SQL Server on an Azure VMImplement SQL Server on an Azure VM
Implement SQL Server on an Azure VM
 
AWS Webcast - Deploying Remote Desktop Gateway on the AWS Cloud
AWS Webcast - Deploying Remote Desktop Gateway on the AWS CloudAWS Webcast - Deploying Remote Desktop Gateway on the AWS Cloud
AWS Webcast - Deploying Remote Desktop Gateway on the AWS Cloud
 
Azure Databricks – Customer Experiences and Lessons Denzil Ribeiro Madhu Ganta
Azure Databricks – Customer Experiences and Lessons Denzil Ribeiro Madhu GantaAzure Databricks – Customer Experiences and Lessons Denzil Ribeiro Madhu Ganta
Azure Databricks – Customer Experiences and Lessons Denzil Ribeiro Madhu Ganta
 
Is Your Developer's Head in the Cloud? May 7 Webinar
Is Your Developer's Head in the Cloud? May 7 WebinarIs Your Developer's Head in the Cloud? May 7 Webinar
Is Your Developer's Head in the Cloud? May 7 Webinar
 
Navigating the turbulence on takeoff: Setting up SharePoint on Azure IaaS the...
Navigating the turbulence on takeoff: Setting up SharePoint on Azure IaaS the...Navigating the turbulence on takeoff: Setting up SharePoint on Azure IaaS the...
Navigating the turbulence on takeoff: Setting up SharePoint on Azure IaaS the...
 
Migrating Customers to Microsoft Azure: Lessons Learned From the Field
Migrating Customers to Microsoft Azure: Lessons Learned From the FieldMigrating Customers to Microsoft Azure: Lessons Learned From the Field
Migrating Customers to Microsoft Azure: Lessons Learned From the Field
 
Geek Sync | Taking Your First Steps to the Cloud—Building a Hybrid Model
Geek Sync | Taking Your First Steps to the Cloud—Building a Hybrid ModelGeek Sync | Taking Your First Steps to the Cloud—Building a Hybrid Model
Geek Sync | Taking Your First Steps to the Cloud—Building a Hybrid Model
 
SQL ON Azure (decision-matrix)
SQL  ON  Azure (decision-matrix)SQL  ON  Azure (decision-matrix)
SQL ON Azure (decision-matrix)
 
Global Windows Azure Bootcamp - San Diego
Global Windows Azure Bootcamp - San DiegoGlobal Windows Azure Bootcamp - San Diego
Global Windows Azure Bootcamp - San Diego
 
The Essentials of Building Cloud-Based Web Apps with Azure
The Essentials of Building Cloud-Based Web Apps with AzureThe Essentials of Building Cloud-Based Web Apps with Azure
The Essentials of Building Cloud-Based Web Apps with Azure
 
Moving from SBS to Azure
Moving from SBS to AzureMoving from SBS to Azure
Moving from SBS to Azure
 
Aws Amity University Presentation Mar-10-2022
Aws Amity University Presentation Mar-10-2022Aws Amity University Presentation Mar-10-2022
Aws Amity University Presentation Mar-10-2022
 
What's New for the Windows Azure Developer? Lots!!
What's New for the Windows Azure Developer?  Lots!!What's New for the Windows Azure Developer?  Lots!!
What's New for the Windows Azure Developer? Lots!!
 

More from Glyn Darkin

More from Glyn Darkin (7)

SMACIT: The technology trends driving business transformation
SMACIT: The technology trends driving business transformationSMACIT: The technology trends driving business transformation
SMACIT: The technology trends driving business transformation
 
Native vs Hybrid vs Mobile Web
Native vs Hybrid vs Mobile WebNative vs Hybrid vs Mobile Web
Native vs Hybrid vs Mobile Web
 
Agile Commerce
Agile CommerceAgile Commerce
Agile Commerce
 
Mobile Opportunities
Mobile OpportunitiesMobile Opportunities
Mobile Opportunities
 
Business Case Canvas
Business Case CanvasBusiness Case Canvas
Business Case Canvas
 
Recommendations
RecommendationsRecommendations
Recommendations
 
Kick now - a Lean StartUp Machine project
Kick now - a Lean StartUp Machine projectKick now - a Lean StartUp Machine project
Kick now - a Lean StartUp Machine project
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 

Deploying asp.net and mvc applications to azure

  • 1. Deploying ASP.NET and MVC applications to Azure Glyn Darkin, Solutions Architect 18/04/2013 Our Awards:
  • 2. What should you be mindful of as a developer if you are considering Azure as a hosting platform?
  • 3. Outside the scope of this discussion • Building for the Cloud • Cloud Service Worker Roles • Big Data • Mobile Services
  • 4. Microsoft Azure for ASP.Net SaaS Websites Media Add-Ons PaaS Cloud Services Service Bus Distributed Cache IaaS VMs Storage Network Hyper-V
  • 5. Azure Website vs. Cloud Service Web Role Comparison Matrix Feature Access to services like Caching, Service Bus, Storage, SQL Azure Database Support for ASP.NET, classic ASP, Node.js, PHP Shared content and configuration Deploy code with GIT, FTP Near-instant deployment Multiple deployment environments (production and staging) Network isolation Remote desktop access to servers Ability to run programs with elevated permissions Ability to define/execute start-up tasks Ability to use unsupported frameworks or libraries Support for Windows Azure Connect/ Windows Azure Network Reference MSDN Blog Web Sites Web Roles Yes Yes Yes Yes Yes No Yes No Yes No No Yes No Yes No Yes No Yes No Yes No Yes No Yes
  • 6. Is Azure the only PaaS that can host ASP.NET? • There will be others • It’s a race to the bottom • Our Solutions should be portable
  • 7. Websites Plain Vanilla Website • Replicates a Shared Hosting Platform but with elastic scalability • Can deploy a plain vanilla ASP.NET website • No SDK dependencies • No IDE dependencies • You can deploy your site to other hosting providers – AWS, AppHarbour, Rackspace • 10 free sites with the domain http://seotools.azurewebsites.net • Entity framework is fully supported with migrations
  • 8. Cloud Service Web Role • 1 Cloud Service represents a single virtual machine • Part of a Cloud Solution • Requires the Azure SDK & tools to be installed • Uses a VIP to switch between a Staging & Production instance – • Your code needs to reference the Azure SDK – • Staging DNS creation & resolution can be SLOW Therefore your product is not portable Local development emulator – – Learn to hack using shared resources – • Very slow code, test, debug cycle Is not the same as Azure, there are differences so be warned!!!! No local disk access
  • 9. Things you need to keep in mind Part 1 • You need to use the Session State provider for Windows Azure Caching – • You don’t have write access to the file system – • TempData uses Session State You will need to store uploaded files in either Blob storage or SQL You are running behind a load balancer – Requests that last longer than 60secs are killed
  • 10. Things to keep in mind Part 2 • There is no SMTP server in Azure – – • User a Service link SendGrid or MailGun User Message Bus to send message on premise and email from there Logging/Trace output – Websites: Tracing output is stored against the website on disk & can be accessed via FTP • – Cloud: Tracing has to be coded & configured & is stored in Table Storage • • Or Streamed into Visual Studio Output Window!!! It can be queried in Visual Studio Configuration – – • Websites: Web.config with transformations Cloud: ServiceDefinition.csdef and ServiceConfiguration.environment.cscfg Images – Push your images to the Azure CDN
  • 11. Deployment Website Cloud Service Direct from TFS Yes Yes Git, Mercurial, FTP Yes No MSBuild, Powershell Yes Yes Visual Studio* Yes Yes Deployment Pipeline No Yes * You should never be deploying from Visual Studio
  • 12. Demo The default MVC website • Windows Azure Website – http://version1.azurewebsites.net/ • Windows Azure Cloud Service – http://version2.cloudapp.net/
  • 13. Comparison of the file structures
  • 14. Windows Azure SQL Same Same but different • Fully managed database environment • Not all T-SQL supported in Azure • SQL Management Studio not fully supported • SQL Server replication not supported • Backup strategy is a little different – SYNC instead • Full-Text Search not supported • Full list of unsupported features • If you want to scale your database then KISS • BCP from the command line is fastest way to get all your data in • MS SQL Server Migration Wizard - http://sqlazuremw.codeplex.com/ http://msdn.microsoft.com/en-us/library/windowsazure/ff394115.aspx
  • 15. Conclusion Recommendations • Websites uses everything you already know • CloudServices you have to learn new stuff • Start with Websites and migrate to a Cloud Service when you need to • Keep in mind that Azure is a moving target • Windows Azure SQL requires a very simple approach – Great for developers, not so much for the SQL DBA • You can always just spin up a VM for a legacy app
  • 16. Q&A &
  • 17. Links • Azure Storage Explorer – Blob, Table, Queue • CloudBerry Storage Explorer – Blob with Sync