azure series 2 creating a cloud service - web role

17
AZURE SERIES 2 – CREATING CLOUD SERVICE – WEB ROLE SARAVANAN S JEEVAN TECHNOLOGIES

Upload: saravanan-subburayal

Post on 10-Jun-2015

1.045 views

Category:

Technology


1 download

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

Page 1: Azure series 2   creating a cloud service - web role

AZURE SERIES 2 – CREATING CLOUD SERVICE – WEB ROLE

SARAVANAN S JEEVAN TECHNOLOGIES

Page 2: Azure series 2   creating a cloud service - web role

Agenda

• Objective

• Cloud Service - Web Role

• Creating the Cloud Project

• Creating Cloud Service in Management Portal

• Deployment in to Azure

• Questions

Page 3: Azure series 2   creating a cloud service - web role

Objective

• Build a new ASP.NET MVC 4 Cloud project

• Create a Cloud Service in Windows Azure

• Deploy the application in to azure

Page 4: Azure series 2   creating a cloud service - web role

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

Page 5: Azure series 2   creating a cloud service - web role

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

Page 6: Azure series 2   creating a cloud service - web role

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

Page 7: Azure series 2   creating a cloud service - web role

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

Page 8: Azure series 2   creating a cloud service - web role

Creating Cloud Service in Azure Portal

• Cloud Services -> Create Svc

Page 9: Azure series 2   creating a cloud service - web role

Creating Cloud Service in Azure Portal

• Quick Create -> Provide URL -> Create Cloud Service

Page 10: Azure series 2   creating a cloud service - web role

Creating Cloud Service in Azure Portal

• Click on the created Cloud Service link

• Click on ‘New production Deployment’

Page 11: Azure series 2   creating a cloud service - web role

Creating Cloud Service in Azure Portal

• Provide ‘Deployment Name’,

• Select ‘Package file(*.cspkg)’ & Config file (*.cscfg)

Page 12: Azure series 2   creating a cloud service - web role

Creating Cloud Service in Azure Portal

• Tick the check box

• Click the ‘Tick’ button

Page 13: Azure series 2   creating a cloud service - web role

Creating Cloud Service in Azure Portal

• Click on the ‘<deploymentname>’

Page 14: Azure series 2   creating a cloud service - web role

Creating Cloud Service in Azure Portal

• Click on ‘Instances’

• Ensure the Status change to ‘Running’

Page 15: Azure series 2   creating a cloud service - web role

Cloud Service Ready !!!

Page 16: Azure series 2   creating a cloud service - web role
Page 17: Azure series 2   creating a cloud service - web role