saad ladki program manager microsoft corporation es15

26
Deploying Web Applications With IIS 7.0 And The Web Deployment Tool Saad Ladki Program Manager Microsoft Corporation ES15

Post on 22-Dec-2015

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Saad Ladki Program Manager Microsoft Corporation ES15

Deploying Web Applications With IIS 7.0 And The Web Deployment Tool

Saad LadkiProgram ManagerMicrosoft Corporation

ES15

Page 2: Saad Ladki Program Manager Microsoft Corporation ES15

Agenda

Challenges Deploying Web Applications Web Deployment Tool Overview Under the Hood Shared Hosting Server-Side Infrastructure Peak into the Future

Page 3: Saad Ladki Program Manager Microsoft Corporation ES15

Challenges Deploying Web Applications How do I…

Package my application for others to easily install it?

Seamlessly deploy a database alongside my web application?

Transform configuration between development and production?

Backup instances of my application?

Page 4: Saad Ladki Program Manager Microsoft Corporation ES15

Installing a Web Application using IIS Manager Saad Ladki

Program ManagerMicrosoft Corporation

demo

Page 5: Saad Ladki Program Manager Microsoft Corporation ES15

Web Deployment Tool Overview

Deploy applications seamlessly from IIS Manager, VS10 and PowerShell

Synchronize Web servers, sites or applications

Package a web application Built on top of a powerful, flexible

framework with a provider-based model

Page 6: Saad Ladki Program Manager Microsoft Corporation ES15

Packaging a Web Application using IIS Manager Saad Ladki

Program ManagerMicrosoft Corporation

demo

Page 7: Saad Ladki Program Manager Microsoft Corporation ES15

Under The Hood

PROVID

ER

Web DeploymentEngine

Control and instruct

Understand how to

actually get the job done

SQL D

B PRO

VIDER

IISAPP PROVID

ERCO

NTEN

TPRO

VIDER

PROVID

ER

GetChildObjects()

GetMetadata()

Add()

Modify()

Delete()

Have a set of common interfaces

Page 8: Saad Ladki Program Manager Microsoft Corporation ES15

Under The Hood

Web Deployment Engine

ApplicationHost.config

Manifest

SQL Server DatabaseSite Content

Manifest Provider

IISAppProvider

ContentPathProvider

SQL Server Provider

PackageProvider

Package

GetMetadata()Add()Modify()Delete()

Page 9: Saad Ladki Program Manager Microsoft Corporation ES15

Web Deployment API Creating a package…

using Microsoft.Web.Deployment;

string packageFile = @"c:\mysite.zip"; using(DeploymentObject siteObject = DeploymentManager.CreateObject(

DeploymentProvider.IisApp, “My Site”)){

siteObject.SyncToPackage(packageFile,syncOptions);}

Page 10: Saad Ladki Program Manager Microsoft Corporation ES15

Web Deployment API Installing a package…

using Microsoft.Web.Deployment;

string packageFile = @"c:\mysite.zip";

using (DeploymentObject package = DeploymentManager.CreateObject(DeploymentProvider.Package, packageFile)){

package.SyncToAuto(syncOptions);}

Page 11: Saad Ladki Program Manager Microsoft Corporation ES15

Web Deployment API

Saad LadkiProgram ManagerMicrosoft Corporation

demo

Page 12: Saad Ladki Program Manager Microsoft Corporation ES15

DiscountASP.NET Takeshi Eto

VP Business Development

Aristotle de la CruzDeveloper

partner

Page 13: Saad Ladki Program Manager Microsoft Corporation ES15

DiscountASP.NET

Microsoft Windows shared hosting provider, specializing in ASP.net and SQL hosting

Early adopter of new Microsoft Technologies Focus on Innovation

Windows 2008 HostingIIS 7.0 Manager UI Extensions

URL Rewrite, DBManagerDiscountASP.NET IIS 7.0 Manager UI Extensions

web.config backup/restore toolNew FTP Management Tools

FTP Stop/Start, FTP IP whitelist/IP blacklist

Page 14: Saad Ladki Program Manager Microsoft Corporation ES15

DiscountASP.NET

Free Web Deployment Tool Sandbox AccountOpen Beta - Limited Availability - First 2000 50 mb disk space + 50 mb SQL 2008 databaseUse the Web Deployment Tool to create and

deploy packagesNo FTPProgram End Date: March 2009

http://labs.discountasp.net

Page 15: Saad Ladki Program Manager Microsoft Corporation ES15

Deploying a Web Application to DiscountASP.NET

Saad LadkiProgram ManagerMicrosoft Corporation

demo

Page 16: Saad Ladki Program Manager Microsoft Corporation ES15

Server-Side InfrastructureScenarios

Developers can: Deploy applications to the server without

needing administrative access

Administrators can: Create granular rules to control what

could be deployed to the server Delegate tasks to non-administrators

Page 17: Saad Ladki Program Manager Microsoft Corporation ES15

Server-Side InfrastructureComponents

Developer

Internet

IIS7

Web Management Service

Web Management

Agent

Web Deployment

Agent

Authorization Store

1. Deployment request is sent to the IIS 7.0 server.2. Web Management Service forwards the request to the

Web Deployment Agent.3. Web Deployment Agent validates user credentials

against the Deployment Authorization Store.

Page 18: Saad Ladki Program Manager Microsoft Corporation ES15

Server Authorization Allowing a non-admin to install a package<delegation> <authorization allowAdministrators="true" >

<rule providers="CreateApp"actions="*"path="{userScope}"pathType=“PathPrefix">

<permissions><user name="pdcuser" accessType="Allow" />

</permissions>

<runAs identityType="SpecificUser"userName="configuser"password="[enc]" />

</rule> </authorization></delegation>

Page 19: Saad Ladki Program Manager Microsoft Corporation ES15

Visual Studio 10 Integration

Maintain different web.config settings between dev and production environments

One-click web packaging and deployment IIS Settings Web Content Databases

Support for MS Build and Team Build environments

Built-in extensibility that allows future providers to plug-in

Page 20: Saad Ladki Program Manager Microsoft Corporation ES15

Creating a Web Application using Visual Studio 10 Saad Ladki

Program ManagerMicrosoft Corporation

demo

Page 21: Saad Ladki Program Manager Microsoft Corporation ES15

Future of Web Deployment

Web Farm Framework Seamless deployment to on-premises

and cloud-hosted servers Integration with the Web Platform Installer Provider Extensibility Integration with other Microsoft products Open Source Community

Application Packaging

Page 22: Saad Ladki Program Manager Microsoft Corporation ES15

Summary

The Web Deployment Tool is the seamless way to package, install and share web applications

It is integrated in the IIS Manager and VS10 It is easy to use the Web Deployment

Framework in your build environments You can try it today at

http://labs.discountasp.net You can download IIS extensions at

http://www.iis.net

Page 23: Saad Ladki Program Manager Microsoft Corporation ES15

Evals & Recordings

Please fill

out your

evaluation for

this session at:

This session will be available as a recording at:

www.microsoftpdc.com

Page 24: Saad Ladki Program Manager Microsoft Corporation ES15

Please use the microphones provided

Q&A

Page 25: Saad Ladki Program Manager Microsoft Corporation ES15

© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market

conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Page 26: Saad Ladki Program Manager Microsoft Corporation ES15