azure series 2 creating a cloud service - web role
DESCRIPTION
This presentation is about creating a Cloud project for hosting a simple ASP.Net MVC4 web application in a Web Role in Azure.TRANSCRIPT
AZURE SERIES 2 – CREATING CLOUD SERVICE – WEB ROLE
SARAVANAN S JEEVAN TECHNOLOGIES
Agenda
• Objective
• Cloud Service - Web Role
• Creating the Cloud Project
• Creating Cloud Service in Management Portal
• Deployment in to Azure
• Questions
Objective
• Build a new ASP.NET MVC 4 Cloud project
• Create a Cloud Service in Windows Azure
• Deploy the application in to azure
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
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
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
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
Creating Cloud Service in Azure Portal
• Cloud Services -> Create Svc
Creating Cloud Service in Azure Portal
• Quick Create -> Provide URL -> Create Cloud Service
Creating Cloud Service in Azure Portal
• Click on the created Cloud Service link
• Click on ‘New production Deployment’
Creating Cloud Service in Azure Portal
• Provide ‘Deployment Name’,
• Select ‘Package file(*.cspkg)’ & Config file (*.cscfg)
Creating Cloud Service in Azure Portal
• Tick the check box
• Click the ‘Tick’ button
Creating Cloud Service in Azure Portal
• Click on the ‘<deploymentname>’
Creating Cloud Service in Azure Portal
• Click on ‘Instances’
• Ensure the Status change to ‘Running’
Cloud Service Ready !!!