Upload
rightscale
View
1.432
Download
1
Tags:
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
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
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
Windows Azure Infrastructure Services GA
3
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
Getting Started with Virtual MachinesMultiple options toget started…
Management Portal
>_Scripting
(Windows, Linux and Mac)
REST API
Sharepoint
BizTalk
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
Persistent Virtual Machines with Geo-Replication
Windows Azure Storagecontinuous storage geo-replication
WEST
DC
EASTDC
> hundreds of miles
Other Service
Providers
VHD
VHD VHD
Your Data Center
VHD VHD
Windows Azure
VHD VHD
VHD VHD
Flexibility & Portability
VHD
VHD
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
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
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
Cloud Management
RightScale OverviewBrief, artifacts-focused view of the world
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
Cloud Management
# 14# 14
Anatomy of an Instance Running in RightScale
ServerTemplate
RightLink
Scripts and
Recipes
Machine Image
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
Cloud Management
# 16# 16
ServerTemplate in action
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
Cloud Management
RightScale.netClientOpen Source .net Client for RightScale API 1.5
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
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)
Cloud Management
# 21# 21
Mapping REST to .net
Cloud Management
Dev/Test with AzureMSBuild + TFS + Azure + RightScale
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
Cloud Management
# 24# 24
General SDLC Workflow
Cloud Management
# 25# 25
Organizing MSBuild Process
Cloud Management
# 26# 26
Dev/Test with MSBuildDemo
Cloud Management
# 27# 27
Resources• Source code for reference app in github• Team Foundation Server or another MSBuild orchestration utility
like CruiseControl.net or TeamCity• Web Deploy 3.0 installed on all machines packaging builds• RightScale Support page on MSDeploy• Some more detail in another blog post
Cloud Management
PowerShell + RightScale and AzureFamiliar and easy admin platform for SysAdmins
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
Cloud Management
# 30# 30
Using PowerShell to build the environment
Cloud Management
# 31# 31
PowerShell + RightScale API 1.5Environment Tear-Down Demo
Cloud Management
# 32# 32
Resources• Cmdlet code is in Github• Also builds a package as a part of the post-build events on the
RightScale.netClient solution• PowerShell API direct call examples on support.rightscale.com
• Will give you examples from curl, PowerShell and sometimes the RightAPIClient ruby gem
• Other PowerShell references• ss64.com/ps• http://www.microsoft.com/en-us/download/details.aspx?id=7097• http://www.jonoble.com/blog/2011/12/12/powershell-quick-reference-guides-and
-cheat-sheets.html
Cloud Management
Windows Wofkflow FoundationAuto-magic 3-Tier Deployments
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
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
Cloud Management
# 36
DemoWindows Workflow Foundation + Windows Azure with RightScale
Cloud Management
# 37# 37
Code available on Github• Core library
• RightScale.netClient (github) (nuget)
• Windows Workflow Foundation library• RightScale.netClient.ActivityLibrary (github) (nuget)
• Windows Workflow Foundation project• RightScale.3Tier.Workflow (github)
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
Cloud Management
Q/A | Discussion