27
Continuous Integration & Automation with Windows Azure Web Sites Adam Grocholski Technical Evangelist // Microsoft

St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

Embed Size (px)

DESCRIPTION

Computers have a long history of executing tasks which follow a set workflow, to help eliminate repetitive, error prone, and potentially mundane tasks, why should deploying your website be any different? Windows Azure Web Sites was built with automation in mind enabling both Continuous Deployment as well as hooks for Continuous Integration Support. In this session, we will write the prescription for your Continuous Delivery needs on Windows Azure Web Sites using tools you know and love including TFS and Git.

Citation preview

Page 1: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

Continuous Integration &Automation withWindows Azure Web Sites

Adam GrocholskiTechnical Evangelist // Microsoft

Page 2: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

Platinum Sponsors

Silver Sponsors

Gold Sponsors

Page 3: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

[email protected]@codel8r

thinkfirstcodelater.com

Contact Me

adam grocholski

Page 4: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

Agenda

Familiarization of configuration settings and deployment pipeline.Explore environment acquisition options.Delve into continuous integration and continuous delivery.How to deploy to multiple environments.Automate processes with scripting.Visual Studio “Monaco”.

Automation processes with scripting.

Page 5: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites
Page 6: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

Continuous Integration

Page 7: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

A software development practice where members of a team integrate their work frequently, usually each person integrates at least daily - leading to multiple integrations per day.

-- Martin Fowler

Page 8: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

Windows Azure Web Sites

Page 9: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

Fast, Simple, High Density Hosting.

Page 10: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

Windows Azure Web Sites

ASP ASP.NET

PHP Node.js

HTTP Handler

Language Support

TFS Online

Git

CodePlex

GitHub

Bit BucketDrop Box

Deployment

SNI or IP Based SSL

X86 | x64

Auto Scaling

Scalability[ Free | Shared | Standard ]

Endpoint Monitorin

g

Custom Domains

MetricFTP

Features

Page 11: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

Web Site > Quick Create

Demo

Page 12: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

Windows AzureLoad

Balancer

IIS ARR

API Frontend

Deployment Server(s)

Runtime DB

Web Server Pool

Web Site

Web Site

Web Site

Web Site

Web Site

Web Sites Databases

Web Site

Storage

Storage Controlle

r

Windows Azure Web Sites Architecture

Page 13: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

FTP Deployment

Windows AzureLoad

Balancer

IIS ARR

API Frontend

Deployment Server(s)

Runtime DB

Web Server Pool

Web Site

Web Site

Web Site

Web Site

Web Site

Web Sites Databases

Storage Controlle

r

Web Site

Storage

Page 14: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

Source Control Deployment

Windows AzureLoad

Balancer

IIS ARR

API Frontend

Deployment Server(s)

Runtime DB

Web Server Pool

Web Site

Web Site

Web Site

Web Site

Web Site

Web Sites Databases

Storage Controlle

r

Web Site

Storage

Page 15: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

Deploy from TFS Online

Demo

Page 16: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

Deployment Pipeline

Receive Deployment Notification

Run Deployment

Script

Deployment Success/Failu

re

Update Source Code

http://github.com/projectkudu/kudu

Page 17: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

Multi-Environment Deployment with TFS Online

Demo

Page 18: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

Web Sites Environments by Branching

Development Staging Production

Page 19: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

Visual Studio “Monaco”

Page 20: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

Let’s change gears…

Page 21: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

Windows Azure Environment Automation

Page 22: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

Create a Web Site

New-AzureWebSite –Name “<<name>>” –Location “<<location>>”

azure site create “<<name>>”” --location “<<location>>”

Page 23: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

Automating Resources & App Settings

Windows AzureLoad

Balancer

IIS ARR

API Frontend

Deployment Server(s)

Runtime DB

Web Server Pool

Web Site

Web Site

Web Site

Web Site

Web Site

Web Sites Databases

Storage Controlle

r

Web Site

Storage

Page 24: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

Scripting

Demo

Page 25: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

What Next?

Try it out. For Free.Build what you want. Scale as you need. Full access with no strings attached.http://aka.ms/thecloud

Hello startups!You have an ideas so brilliant it burns. BizSpark can help make it real.http://aka.ms/JoinBizSpark or CONTACT ME!

Page 26: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

[email protected]@codel8r

thinkfirstcodelater.com

Contact Me

adam grocholski

Page 27: St. Louis Day of .NET 2013 - Continuous Integration and Scripting with Windows Azure Web Sites

© 2013 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.