microsoft presents: chef in action on azure - chefconf 2015

19
Microsoft Presents : Chef in Action on Azure Kundana Palagiri , Microsoft Azure Eugene Chigirinskiy, MSN

Upload: chef

Post on 07-Aug-2015

104 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Microsoft Presents: Chef in Action on Azure - ChefConf 2015

Microsof t P resen ts : Che f in Ac t ion on AzureK u n d a n a P a l a g i r i , M i c r o s o f t A z u r e

E u g e n e C h i g i r i n s k i y , M S N

Page 2: Microsoft Presents: Chef in Action on Azure - ChefConf 2015

L e a r n h o w c a n a u t o m a t e y o u r w o r k l o a d s i n A z u r e -

I a a S o r P a a S

W i n d o w s o r L i n u x ,

C l o u d o r H y b r i d .

t a k i n g M S N a s a c a s e s t u d y .

Goa ls

Page 3: Microsoft Presents: Chef in Action on Azure - ChefConf 2015

A z u r e a s a n o p e n c l o u d s u p p o r t s

• H y p e r s c a l e

• E n t e r p r i s e G r a d e

• H y b r i d

Azure Overv iew

Page 4: Microsoft Presents: Chef in Action on Azure - ChefConf 2015

COMPUTE

VirtualMachines

Get full control over a server in the cloud and maintain it as your business requires.

CloudServices

Managed Virtual Machines with specific web and worker roles that are stateless

Batch

For running large scale parallel and high performance computing (HPC) applications

Scheduler

Create jobs that run reliably on simple or complex schedules to invoke any type of service.

Remote App

Access Windows apps that run within the Service on VM’s from any device and any location.

WEB & MOBILE

Websites

Managed web platform, get started for free and scale as you go using many tools/ languages.

MobileServices

Add backend capabilities to mobile apps, with native client support on most device platforms.

APIManagement

Publish APIs to developers, partners and employees securely and at scale.

NotificationHubs

Deliver millions of cross platform push notifications from any application backend, anywhere.

NETWORKING

VirtualNetwork

Provision and manage VPNs in Azure and securely link to your on-premises IT infrastructure.

ExpressRoute

Connect on-premises and cloud data centers directly through dedicated, non-internet lines.

Traffic Manager

Load-balance incoming global traffic across multiple services running in multiple data centers.

ANALYTICS

HDInsight

Big Data (based on Apache Hadoop) analytics that integrate easily with Microsoft Office.

MachineLearning

Mine historical data with compute power to predict future trends or behavior.

StreamAnalytics

Process data streams in real-time to discover and react to trends.

DataFactory

Ingest data from multiple sources to combine into a cloud based Data Warehouse.

EventHubs

Ingest, persist, process millions of events per second from millions of devices.

IDENTITY

ActiveDirectory

Identity and access management for cloud applications and ability to link to on-premises Server AD.

Multi-FactorAuthentication

Safeguard access to data and apps with additional physical layer of security control.

MEDIA & CDN

MediaServices

Range of services that support video on-demand and live streaming workflows.

Content DeliveryNetwork (CDN)

Cache content for your apps at 100’s of edge locations to improve user experiences.

DATA

SQLDatabase

Managed relational database service with high availability and selectable performance levels.

DocumentDB

Store/retrieve millions of JSON objects from a highly scalable NoSQL document database.

RedisCache

Make applications scale and be more responsive under load by keeping data closer to app logic.

Search

Managed, scalable search service for your apps, create tunable search results and ranking models.

Tables

Massive scale for semi-structured key/value type data in this schema-less NoSQL store.

DEVELOPER SERVICES

Visual StudioOnline

Store code, plan and track projects, build, deploy and test apps in the cloud collaboratively.

ApplicationInsights

Analyze app usage, availability and performance to detect issues and solve problems proactively.

HYBRID INTEGRATION

StorageQueues

Simple message queue for application de-coupling architecture for scale out.

BiztalkServices

Build EDI and Enterprise App Integration (EAI) solutions in the cloud.

HybridConnections

Connect apps in Azure with on-premises resources without a VPN or dedicated line.

ServiceBus

Messaging capabilities (pub/sub, queues) and on-premises to cloud connectivity solution.

STORAGE & BACKUP

Storage Blobs& Files

Store binary application data and web content – store for dedicated and shared virtual disks for VM’s

Import/Export

For massive data transfer – ship encrypted disks to move data in/out of blob storage.

Backup

Managed service that handles backup/restore of Windows Server machines/backup agent.

SiteRecovery

Coordinate replication and recovery of System Center private clouds

StorSimple

Automated, policy driven solution to extend on-premises primary storage for backup / DR.

MANAGEMENT

Automation

Run durable PowerShell scripts to automate frequent, long running, complex Azure tasks.

Portal

Web based experience to provision, control and monitor all Azure services.

Store /Marketplace

Find and manage other services provided by third parties.

OperationalInsights

Analyze and troubleshoot on-premises IT infrastructure without using instrumented code.

KeyVault

Safeguard and control keys and secrets in cloud scale hardware security modules.

Virtual Machines

VIRTUAL MACHINES

STORAGE BLOBS / FILES (Virtual Disks)

Windows

Linux

SQL

GalleryLoad Balancer

Cloud Services

Load Balancer

WEB ROLEINSTANCES

Tables/NoSQL

TYPE Y

STORAGE SOLUTIONS

Database

CACHE

Blobs/Files

TYPE X

QUEUE

Mobile Services

PUSH NOTIFICATIONS

USER AUTHENTICATION

STORE DATA IN THE CLOUD

Load Balancer

Windows PhoneiOSAndroidNokia X

Windows StoreiOSAndroidHTML5/JS

TablesSchedules

Custom API

SCRIPTS

SOURCECONTROL

Web Sites

Load Balancer

STANDARDGALLERY DEPLOY

FRAMEWORKS

Page 5: Microsoft Presents: Chef in Action on Azure - ChefConf 2015

Azure footprint

Page 6: Microsoft Presents: Chef in Action on Azure - ChefConf 2015

Full stack on Azure

Dozens of .NET & PHP CMS and Web applications

Via HTMl/JS, cross-platform and native

Ecosystem Provided

Languages, Dev Tools & App Containers

CMS & Apps

Devices

Databases

Management

MS Integrated

Operating

systems

UbuntuSUSE, OpenSUSE,

OpenLogic CentOS-based

Oracle Linux, CoreOS

Bring

your own

libcloud

jclouds

DocDB

DataStax

IDE

JENKINS

Xamarin CORDOVA

Ansible

Puppet

Page 7: Microsoft Presents: Chef in Action on Azure - ChefConf 2015

Chef + Azure = Awesome!

Infrastructure

PaaS

Infrastructure

System Center

Windows Server

Hyper-V

Services

Azure Pack

Datacenter Microsoft AzureChef

Consistency

Page 8: Microsoft Presents: Chef in Action on Azure - ChefConf 2015

Chef Bootstrapping Azure

Azure

Linux Integration Service Curated

ExtensionsAgent

Azure CLI

Knife

Page 9: Microsoft Presents: Chef in Action on Azure - ChefConf 2015

C h e f S e r v e r o n A z u r e – S i n g l e C l i c k D e p l o y

Page 10: Microsoft Presents: Chef in Action on Azure - ChefConf 2015

Azure Templates can:• Ensure Idempotency

• Simplify Orchestration

• Simplify Roll-back

• Provide Cross-Resource Configuration and Update Support

Azure Templates are: • Source file, can be checked-in

• Specifies resources and dependencies (VMs, WebSites, DBs) and connections (config, LB sets)

• Support parametized input/output

Instantiation of repeatable config.Configuration Resource Group

Azure Resource Manager

SQL Website VirtualMachines

My App

[SQL CONFIG] VM (2x)

DEPENDS ON SQLDEPENDS ON SQL

SQLCONFIG

Page 11: Microsoft Presents: Chef in Action on Azure - ChefConf 2015

B o o t S t r a p p i n g C h e f o n A z u r e

Te m p l a t e s

Demo

Page 12: Microsoft Presents: Chef in Action on Azure - ChefConf 2015

• A z u r e G a l l e r y I m a g e f o r C h e f S e r v e r.

• Te s t k i t c h e n o n W i n d o w s - h t t p s : / /r u b y g e m s . o r g / g e m s / t e s t - k i t c h e n

• C h e f P r o v i s i o n i n g o n A z u r e .

• C h e f E x t e n s i o n f o r W i n d o w s a n d L i n u x V M s .

• P o w e r S h e l l D S C c o m p l e t e i n t e g r a t i o n . ( C h e f v e r s i o n 1 2 . 2 . 0 o r g r e a t e r ) .

• A z u r e C L I c o m m a n d s f o r C h e f b o o t s t r a p p i n g .

• K n i f e s u p p o r t f o r C h e f b o o t s t r a p p i n g .

Azure - Che f Fea tures

Page 13: Microsoft Presents: Chef in Action on Azure - ChefConf 2015

MSN

• Globa l Foo tp r in t• Mass ive Aud ience• #1 Por ta l in 26 marke ts• Thousands o f nodes

50 markets

26 languages

Page 14: Microsoft Presents: Chef in Action on Azure - ChefConf 2015

• Azure PaaS prov ides• V M / n o d e l i f e c y c l e

• M a i n t e n a n c e , O S p a t c h , u p g r a d e s , e t c .

• E l a s t i c i t y a n d A u t o S c a l i n g

• N o m o r e h a r d w a r e u n d e r u t i l i z a t i o n

• Chef p rov ides• A u t o m a t i o n

• S h a r i n g

• D a t a D e p l o y m e n t

M S N D e p l o y m e n t s = A z u r e P a a S + C h e f

Page 15: Microsoft Presents: Chef in Action on Azure - ChefConf 2015

• Prov ides the code fo r boo ts t rapp ing the empty ro le w i th Chef c l ien t• I n s t a l l s t h e C h e f C l i e n t a s W i n d o w s S e r v i c e v i a M S I

• L o c a t e s r o l e i n s t a n c e I D a n d c r e a t e s C h e f N o d e s a u t o m a t i c a l l y

• C o n f i g u r e s t h e n o d e ( d e v e l o p e r c a n p r o v i d e p o l l i n g i n t e r v a l , c h e f s e r v e r U R L , e t c ) a n d r e g i s t e r s i t w i t h C h e f S e r v e r

• S t a r t s t h e c l i e n t s e r v i c e

• Gener ic – can be used by any Azure PaaS Serv ice• Open Source – w i l l be ava i lab le on G i tHub in near

fu tu re .

Chef C l i en t Ins ta l l e r SDK

Page 16: Microsoft Presents: Chef in Action on Azure - ChefConf 2015

Chef Client SDK – State Diagram

Page 17: Microsoft Presents: Chef in Action on Azure - ChefConf 2015

C r e a t i n g a n e w A z u r e P a a S S e r v i c e m a n a g e d b y C h e f

Demo

Page 18: Microsoft Presents: Chef in Action on Azure - ChefConf 2015

• Bookmark fo r more in fo rmat ion on M ic roso f t and DevOps : h t tp : / /aka .ms/devops

• DevOps resources fo r Prac t i t i oners : h t tp : / /aka .ms/devopsmva

• Key sess ions to a t tend @ Chef

DevOps Resources

Date Title Speaker(s)

Wed @ 1:30-2:10p Microsoft Presents: Chef in Action on Azure Eugene Chigirinskiy; Kundana Palagiri

Thurs @ 1:15-1:55p

PowerShell from the Ground Up Jeffery Snover

Thurs @ 1:15-1:55p

Automate what you can, document what you can’t and have the wisdom to know the difference

Jessica DeVita

Thurs @ 2:10-2:5o Windows PowerShell Desired State Config (DSC) for Veteran Chefs

Damien Caro; Steven Murawski

Page 19: Microsoft Presents: Chef in Action on Azure - ChefConf 2015