Azure series 2 creating a cloud service - web role
1. AZURE SERIES 2 – CREATING CLOUD
SERVICE – WEB ROLE
SARAVANAN S
JEEVAN TECHNOLOGIES
2. Agenda
• Objective
• Cloud Service - Web Role
• Creating the Cloud Project
• Creating Cloud Service in Management Portal
• Deployment in to Azure
• Questions
3. Objective
• Build a new ASP.NET MVC 4 Cloud project
• Create a Cloud Service in Windows Azure
• Deploy the application in to azure
4. Pre-requisites
• VS2012 or VS2010 with Service Pack 1
• ASP.NET MVC 4
• Windows Azure SDK Tools (latest)
• Microsoft Web Publish for Visual Studio 2010
(August 2012)
• A Windows Azure subscription with the Web
Sites Preview enabled
5. Cloud Service (Hosted Service)
IIS <= Web Role(Instance)
IIS <= Web Role(Instance)
IIS <= Web Role(Instance)
Web Role(Instance0)
Web App – Web Role – Cloud Service
ASP.Net MVC4
Web App
(web.config)
MVC4 Web
Project
Web Role
Project
*.CloudApp.net
6. Creating the Cloud Project
• Create Cloud project -> Web Role
– MVC4 Web App project
– Web Role project
• Create a Home Controller with Index Action
• Set Web project as “Startup Project”
• Test MVC app
• Set Web Role project as Startup
• Test Web Role Project
• Create ‘Package’
– *. cspkg
– *.cloud.cscfg
7. Creating Cloud Service in Azure Portal
• Login to Azure portal
• Cloud Services -> Create Svc (*.cloudapp.net)
• Deploy (package) to Production/Staging
– Deployment Name
– Package
– Config file