39
Cloud Management Azure IaaS and RightScale MSBuild, PowerShell and Windows Workflow Foundation Integration Patrick McClory, Solutions Archit RightSc @patrickmccl t Klein, Windows Azure Technical Evangelist osoft scott Watch the video of this presentat ion

RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Embed Size (px)

DESCRIPTION

In April of 2013 Microsoft released the Windows Azure IaaS service for general availability. We were proud to be a launch day partner with Microsoft and here at RightScale we are excited to see the cloud computing market mature and grow. Please join us for an in-depth discussion and demonstration on how to increase agility and automation in your software development lifecycle. In this webinar, we will cover how to: - Enrich the dev/test cycle with Infrastructure as a Service (IaaS) - Perform rapid testing and validation - Enable virtual machine usage for dev/test, with a deep discussion of the artifacts and mechanics of it - Create IT policy without headaches - Enable dev/test with "approved assets" and policies

Citation preview

Page 1: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

Azure IaaS and RightScale MSBuild, PowerShell and Windows Workflow Foundation Integration

Patrick McClory, Solutions ArchitectRightScale

@patrickmcclory

Scott Klein, Windows Azure Technical EvangelistMicrosoft@sqlscott

Watch the video of this presentation

Page 2: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

# 2# 2

Agenda• Windows Azure IaaS GA Announcement • Brief overview of RightScale• Quick tour of RightScale.netClient for RightScale API 1.5• 3 demos

• MSBuild Integration via TFS• PowerShell Integration• Windows Workflow Foundation

• Check it out• Q/A

Page 3: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Windows Azure Infrastructure Services GA

3

Page 4: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Your data center

Windows Azure

Scalable on-demand infrastructure in the cloud

Growing list of validated & Microsoft supported workloads

Secure private network connection to on-premises

Connect with on-premises Active Directory and domains

Virtual Machines

Windows Server

Virtual Network

VHD

your app in the public

cloud

Linux

Page 5: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Getting Started with Virtual MachinesMultiple options toget started…

Management Portal

>_Scripting

(Windows, Linux and Mac)

REST API

Sharepoint

BizTalk

Page 6: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Open to all Apps and Images

Microsoft® Virtual Machine Converter

Windows Azure Virtual Machines

VMware® vCenter™ vSphere Hypervisor™

Microsoft® Windows® Hyper-V Hypervisor

PowerShell

VMDK VHD

Page 7: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Persistent Virtual Machines with Geo-Replication

Windows Azure Storagecontinuous storage geo-replication

WEST

DC

EASTDC

> hundreds of miles

Page 8: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Other Service

Providers

VHD

VHD VHD

Your Data Center

VHD VHD

Windows Azure

VHD VHD

VHD VHD

Flexibility & Portability

VHD

VHD

Page 9: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

PowerShell for Automation and Advanced Management

Automation Query, manage and configure – at scale:

• Virtual Machines

• Storage across multiple subscriptions and storage accounts

• Tiered deployment workflows

Virtual Machines Configure storage and networking

Domain join to AD on-premises

Remotely management & configure

Bring your own machine images or disks

Virtual Network Configure Virtual Network

Manage configuration and gateway

Connect to on-premises networks

Storage Upload & download VHDs from storage accounts to on-premises

Copy VHDs between storage accounts and subscriptions

Page 10: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Virtual Machines Manage virtual machines

consistently with ServerTemplates

Remote management and hands-off interaction

RightScale for Automation and Advanced Management

Automation Take Virtual Machines from boot-

ready to Operational Scale on demand Versioned assets from

ServerTemplates to RightScripts

Ready to go Hundreds of ServerTemplates to

deploy common technologies available

Consistent boot experience every time

Secure Grant varying levels of access to virtual machines and configuration

OAuth/SSO Compliant with logging for compliance needs

Page 11: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

High memory instances

Monthly SLA : Virtual Machines*

Monthly SLA : Virtual Network

24x7 support , variety of plans in effect

Validated & supported Microsoft workloads

Price reduction: standard Windows (22%) & Linux (29%) instances, starting 6/1

Increase in value of member offers – i.e. MSDN & MPN

VM Depot open source community images

What is new at general availability (GA)?

*multiple instances in an availability set

Page 12: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

RightScale OverviewBrief, artifacts-focused view of the world

Page 13: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

# 13# 13

RightScale• Cloud management company founded in 2006• Supports multiple public and private clouds• Started integration with Microsoft IaaS over a year ago• Marketplace full of artifacts to accelerate development and

deployment• Cross-platform (multiple OS and multiple versions) managed within

RightScale system

Page 14: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

# 14# 14

Anatomy of an Instance Running in RightScale

ServerTemplate

RightLink

Scripts and

Recipes

Machine Image

Page 15: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

# 15# 15

Hierarchical set of assets to leverage• Machine Images/VHD’s are collected into a MultiCloud Image (MCI)

• Functionally equivalent images across multiple clouds/regions

• MCI’s are packaged together within a ServerTemplate (ST)• ST offers 3 major hooks to perform tasks on the server

• Boot scripts/recipes• Operational scripts/recipes• Decommission scripts/recipes

Page 16: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

# 16# 16

ServerTemplate in action

Page 17: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

# 17# 17

MultiCloud Marketplace

• RightScale tested and released assets for Windows, IIS, SQL Server and Active Directory

• Open Source ServerTemplates with other novel features as described

• Novel ServerTemplates – like the AIO ST we’ll be using a bit later

Tons of assets to get started

Page 18: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

RightScale.netClientOpen Source .net Client for RightScale API 1.5

Page 19: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

# 19# 19

RightScale API 1.5• REST API with JSON and XML response types• RightScale core functionality exposed• http://reference.rightscale.com/api1.5/index.html

Page 20: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

# 20# 20

RightScale.netClient overview• Generic wrapper for the RightScale API 1.5 toolset• Media Types = Classes/Object Model• Resources = Static methods per class• A couple of assumptions made:

• Generally, resources map to media types 1:1• For Resources with multiple urls, more descriptive names are better:

• Instance.index() and Instance.index_ServerArray(serverArrayId)

Page 21: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

# 21# 21

Mapping REST to .net

Page 22: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

Dev/Test with AzureMSBuild + TFS + Azure + RightScale

Page 23: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

# 23# 23

UseCase/Scenario• We’re running a .net shop using Team Foundation Services 2012

(TFS) for source control• Standard web application being developed

• We’ll use the Mileage Stats demo app • Slightly modified to use Microsoft SQL Server instead of SQL CE• DB Backups and scripts available for download

• Application is nearing time to be released to production• Ability to test in multiple environments rapidly is critical• Build from local consistently with how production builds are created

Page 24: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

# 24# 24

General SDLC Workflow

Page 25: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

# 25# 25

Organizing MSBuild Process

Page 26: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

# 26# 26

Dev/Test with MSBuildDemo

Page 28: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

PowerShell + RightScale and AzureFamiliar and easy admin platform for SysAdmins

Page 29: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

# 29# 29

Use Case/Scenario• Familiar platform for Windows Sysadmins• Leverage RightScale within other automation processes already

scripted• Manage our Dev/Test Environments from the MSBuild Demo

• On the way out the door—let’s make sure we tear the instances down• Build a scheduled task to stand them up again in the morning with the latest

stable build

Page 30: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

# 30# 30

Using PowerShell to build the environment

Page 31: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

# 31# 31

PowerShell + RightScale API 1.5Environment Tear-Down Demo

Page 33: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

Windows Wofkflow FoundationAuto-magic 3-Tier Deployments

Page 34: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

# 34# 34

Process Workflow

Create Deployment

Create SQL Severs

Create LB Servers

Create IIS Server Array

Import SQL ServerTemplate

Import LB ServerTemplate

Import IIS ServerTemplate

Launch SQL1

Launch SQL2

Launch 2x Load Balancers

Launch IIS instance inside ServerArray

Set Public DNS for Load Balancers

Initialize SQL Server Synchronous

Mirroring

Page 35: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

# 35# 35

Server.launch(serverID)• Simple call to RightScale.netClient to launch a specific server• Code includes some additional supporting activity to fulfill the

requirements of a custom Workflow Foundation CodeActivity along with some logging

Page 36: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

# 36

DemoWindows Workflow Foundation + Windows Azure with RightScale

Page 38: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

# 38# 38

Check it out for free• RightScale offers a 60 day free trial and a free tier

• http://www.rightscale.com/azure

• Hook up your MSDN account’s IaaS allotment and check it out• Signup is easy -

http://support.rightscale.com/09-Clouds/Azure/Tutorials/Add_Windows_Azure_to_a_RightScale_Account

Page 39: RightScale Webinar: Best Practices: Software Development Strategies Using Windows Azure

Cloud Management

Q/A | Discussion