saad ladki program manager microsoft corporation es15
Post on 22-Dec-2015
219 views
TRANSCRIPT
Deploying Web Applications With IIS 7.0 And The Web Deployment Tool
Saad LadkiProgram ManagerMicrosoft Corporation
ES15
Agenda
Challenges Deploying Web Applications Web Deployment Tool Overview Under the Hood Shared Hosting Server-Side Infrastructure Peak into the Future
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?
Installing a Web Application using IIS Manager Saad Ladki
Program ManagerMicrosoft Corporation
demo
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
Packaging a Web Application using IIS Manager Saad Ladki
Program ManagerMicrosoft Corporation
demo
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
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()
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);}
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);}
Web Deployment API
Saad LadkiProgram ManagerMicrosoft Corporation
demo
DiscountASP.NET Takeshi Eto
VP Business Development
Aristotle de la CruzDeveloper
partner
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
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
Deploying a Web Application to DiscountASP.NET
Saad LadkiProgram ManagerMicrosoft Corporation
demo
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
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.
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>
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
Creating a Web Application using Visual Studio 10 Saad Ladki
Program ManagerMicrosoft Corporation
demo
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
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
Evals & Recordings
Please fill
out your
evaluation for
this session at:
This session will be available as a recording at:
www.microsoftpdc.com
Please use the microphones provided
Q&A
© 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.