31
07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

Embed Size (px)

Citation preview

Page 1: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

07 | Integrate Development and Operations

Anthony Borton | ALM Consultant, Enhance ALMSteven Borg | Co-founder & Strategist, Northwest Cadence

Page 2: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

• Implement an automated deployment process

• Implement pre-production environments

• Manage feedback between development and operations

• Troubleshoot production issues

Module Overview

Page 3: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

Click to edit Master subtitle style

Microsoft Virtual AcademyImplement an automated

deployment process

Page 4: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

What the Study Guide says…

• architecting an automated build and deploy workflow

• integrating automated tests

• automating deployment into both test and production environments

Page 5: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

Click to edit Master subtitle style

Microsoft Virtual AcademyImplement pre-production

environments

Page 6: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

What the Study Guide says…

• automating the creation of virtual test lab environments

• automating deployment into virtual test environments

Page 7: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

What’s on a developers PC?

LINQPad

Web Platform installer

DropBox

Paint.NET

TeamViewer

PowerShell

7-Zip

UltraMon

Team Explorer

Windows 8Process MonitorProcess

ExplorerXMLSpy

SQL Complete

TestDriven .NET

Windows Live Writer

Auto Hotkey

Window Pad

Fences

Bins

NuGet

Microsoft Test Manager

Visual Studio

.NET Reflector

Notepad 2

CodeRush

Resharper

Fiddler

WinMerge

Expresso

FireBug

NDepend

WatiN

StyleCop

Pex

{Censored}

{Inappropriate}

Page 8: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

What does Production look like?

• Server SOE

• Multiple servers

• Controlled patching

• Firewalls

• Server hardening scripts

• Load balancers

Page 9: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

Lab Management Workflow

BUILD

restore env.

DEPLOYtake env. snapshot

TEST

Page 10: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

Two types of environments

Standard SCVMMAutomated deployment to environment Execution of manual and automated tests Automated data collection Startup and shutdown of virtual machines Use of Snapshots to revert to different states Support for Network isolation Support for physical servers Support for Hyper-V Support for VMWare

Page 11: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

Lab Environments

• A lab environment is a collection of virtual and physical machines, which you can use to develop and test applications.

• A lab environment can contain multiple roles needed to test multi-tiered applications, such as workstations, web servers, and database servers.

• You can use a build-deploy-test workflow with your lab environment to automate the process of building, deploying, and running automated tests on your application.

Page 12: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

Benefits of Lab Environments

• Reduced time between build and when a tester can start testing

• You can use a test plan to run automated tests using Microsoft Test Manager

• You can use a build-deploy-test workflow to test multi-tiered applications automatically

• Collect diagnostic data from all machines, even during manual testing

Page 13: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

Benefits of SCVMM Environments

• Quickly reproduce machine configurations − store collections of VMs that are configured to recreate typical production environments.

• Reproduce the exact conditions of a bug – When a test run fails, you can store a copy of the state of your lab environment.

• Run multiple copies of a lab environment at the same time – You can run multiple copies of your lab environment at the same time without conflicts.

Page 14: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

Supported OSes for Virtual Machines

• Windows XP SP3 and later versions

• Windows Vista

• Windows Server 2003

• Windows Server 2008

• Windows Server 2008 R2

• Windows 8 or later versions

Page 15: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

DEMO

Microsoft Virtual Academy

The Build-Deploy-Test workflow in action

Page 16: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

Click to edit Master subtitle style

Microsoft Virtual AcademyManage feedback between

development and operations

Page 17: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

What the Study Guide says…

• implementing tools to simplify communication

• identifying, measuring, and reporting key analytics and performance indicators such as cycle time and mean time to repair (MTTR)

• creating appropriate shared artefacts and process to facilitate communication

• standardizing required artefacts for defect reports

• creating strategies for test case reuse (both automated and manual) in production

Page 18: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

The Microsoft System Center Family

• Configuration Manager

• Data Protection Manager

• EndPoint Protection

• Orchestrator

• Operations Manager

• Service Manager

• Virtual Machine Manager

Page 19: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

Click to edit Master subtitle style

Microsoft Virtual AcademyTroubleshoot production

issues

Page 20: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

What the Study Guide says…

• gathering defect data from bugs in a production setting

• providing actionable data to the development team

• monitoring applications running in production for potential issues

• managing incident response times collaboratively between development and operations

Page 21: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

A Common Problem

• Developers typically spend considerable time debugging code

• Often bugs are difficult to find and in many cases we simply can’t reproduce them

• Much time is wasted stepping line by line through code

• IntelliTrace is a feature in Visual Studio Ultimate that is designed to help with this scenario

Find time Fix time

Page 22: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

Concept

• Basic concept is “capture debugger state information during program execution”

• Think of it like a personal DVR for developers

Page 23: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

Tester/Developer Scenario

Tester captures IntelliTrace data while executing test cases.

.iTrace file is attached when the Tester raises a Bug

Developers are able to find the issue much more quickly with the aid of the .iTrace file. Once fixed

they mark the bug resolved so the tester can retest

Tester Dev Team

Page 24: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

Enabling the IntelliTrace Collector

• The tester will enable the IntelliTrace data collector in the Properties for the test plan

Page 25: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

Collector Configuration

• The tester can configure the specific information that the data collector will collect

Page 26: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

Raising a bug with the IntelliTrace log included• When the tester creates a bug, the iTrace log file is

automatically linked if the collector is enabled

Page 27: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

Developers receive bug work item

Page 28: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

Developers open the .iTrace file

Page 29: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

The Importance of Symbol files

• Symbol Files– .PDB files– Used during the debugging process– Includes Source File Names, Line Numbers and Local

Variable Names

• You should always keep your symbol files around

• Symbol Server– Central location for storing your PDB files– Essentially this is just a file share

Page 30: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

• Make sure you know the role of Lab Management and what it offers a team

• Run through various Build Definition settings for DefaultTemplate and LabDefaultTemplate processes

• Be familiar with the capabilities of each System Center product

EXAM BEST BETS

Page 31: 07 | Integrate Development and Operations Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

©2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics 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.