What happens when we throw ARM, DSC & POSH into a...

40
AUTOMATION What happens when we throw ARM, DSC & POSH into a blender? Karim Vaes

Transcript of What happens when we throw ARM, DSC & POSH into a...

Page 1: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

What happens when we

throw ARM, DSC & POSH

into a blender?

Karim Vaes

Page 2: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export
Page 3: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

Karim Vaes

Cloud Solution Architect

Cloud & Container Fanatic

Dev ~ Ops

Internal ~ Consultant

OpenSource ~ Microsoft

https://about.kvaes.be@kvaes https://blog.kvaes.be

Page 4: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATIONAUTOMATION

What to expect?

Source : http://www.prestigeestateservices.com/wp-content/uploads/2016/04/What-To-Expect-At-Estate-Sales.png

Page 5: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

Showcooking demo starts at 10:40

“Will it blend?”

Page 6: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

Source : https://upload.wikimedia.org/wikipedia/commons/thumb/5/52/Mainframe_Computer.svg/2000px-Mainframe_Computer.svg.png

Page 7: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATIONAUTOMATION

Let’s talk ingredients!

Page 8: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATIONAUTOMATION

Powershell

aka “PS”, “Posh”

Page 9: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

Azure Powershell

Page 10: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATIONAUTOMATION

Azure

Resource Manager

aka “ARM”

Page 11: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

Azure Templates can:

• Ensure Idempotency

• Simplify Orchestration

• Simplify Roll-back

• Provide Cross-Resource Configuration and

Update Support

Azure Templates are:

• Source files, can be checked-in

• Specifies resources and dependencies

(VMs, WebSites, DBs) and connections

(config, LB sets)

• Support parametrized input/output

Instantiation of repeatable config.Configuration Resource Group

MySQL Website VirtualMachines

My App

[SQL CONFIG] VM (2x)

DEPENDS ON

MySQLDEPENDS ON

MySQL

SQLCONFIG

Azure Resource Manager

Page 12: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

Platform Services

Infrastructure Services

WebApps

MobileApps

API Apps

Notification Hubs

HybridCloud

Backup

StorSimple

Azure SiteRecovery

Import/Export

SQL Database DocumentDB

Redis Cache

AzureSearch

StorageTables

SQL DataWarehouse

Azure AD Health Monitoring

AD PrivilegedIdentity Management

OperationalAnalytics

Cloud Services

BatchRemoteApp

ServiceFabric

Visual Studio

ApplicationInsights

VS Team Services

Domain Services

HDInsight MachineLearning Stream Analytics

Data Factory

EventHubs

Data LakeAnalytics Service

IoT Hub

Data Catalog

Security & Management

Azure ActiveDirectory

Multi-FactorAuthentication

Automation

Portal

Key Vault

Store/Marketplace

VM Image Gallery& VM Depot

Azure ADB2C

Scheduler

Xamarin

HockeyApp

Power BI Embedded

SQL Server Stretch Database

MobileEngagement

FunctionsCognitive Services Bot Framework Cortana

Security Center

Container Service

VM Scale Sets

Data Lake Store

BizTalkServices

Service Bus

Logic Apps

API Management

Content DeliveryNetwork

Media Services

Media Analytics

Page 13: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATIONAUTOMATION

Desired State Configuration

aka “DSC”

Page 14: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

Basic DSC Configuration{

Node e15-1{

WindowsFeature WebServer{

Name = "Web-Server"Ensure = "Present"

}

WindowsFeature CertAuth{

Name = "Web-Cert-Auth"Ensure = "Present"

DependsOn = "[WindowsFeature]WebServer"}

}}

ConfigScript1#Start-DscConfiguration -Path .\ConfigScript1 -Verbose -Wait

Configuration ConfigScript1

Page 15: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

DSC Essentials

Test-Resource

Set-Resource

Get-Resource

ApplyOnly

ApplyAndMonitor

ApplyAndAutoCorrect

Page 16: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATIONAUTOMATION

When to use what?

PS, ARM, DSC,...??!?

Page 17: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

Automated

Page 18: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

Less Automated

Page 19: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

Desired State

Yes

Infrastructure ARM

In-VM DSC

No

Automation Powershell

Speed &

DepthPowershell

Quick & Dirty Portal

Page 20: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATIONAUTOMATION

Let’s talk recipe!

Page 21: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATIONAUTOMATION

Anybody heard of DevOps?

Yeah, we do it,

just not with all

that hipster mumbo jumbo!

Page 22: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

Plan1 Monitor + Learn

ReleaseDevelop +

Test2

4

3

DevOps

Page 23: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

Doing

IT

Together

Page 24: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATIONAUTOMATION

Anybody heard of CI/CD?

Yeah, we deploy

stuff too!

Page 25: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

Continuous integration

cspkg

Page 26: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

Continuous delivery

Page 27: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATIONAUTOMATION

Anybody heard of Infra-as-

code?

Or maybe

even Config-as-code?

Page 28: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

Infrastructure and configuration

as code

Page 29: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

Everyone still awake?

Source : http://amaznginfo.com/wp-content/uploads/2015/12/o-CHILD-AFRAID-OF-THE-DARK-facebook.jpg

Page 30: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATIONAUTOMATION

Showcooking time!

Page 31: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATIONAUTOMATION

Show cooking time!

Thank god,

the theoretical

crap ends...

Page 32: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

Develop Build

Test

Deploy Environments Monitor and Learn

Development

Production

Acceptance

Testing

Page 33: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATIONAUTOMATION

Closing Thoughts

Page 34: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

Are you herding cattle or cats?

#expertslive

Source : http://theemarketingblog.blogs.lamp.elliance.com/wp-content/uploads/sites/2/2015/01/herding-cats.jpg

Page 35: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

Desired State

Yes

Infrastructure ARM

In-VM DSC

No

Automation Powershell

Speed &

DepthPowershell

Quick & Dirty Portal

When to use what?

Page 36: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

If you only read one book this

year… https://aka.ms/xdevops

Page 37: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

Everyone still awake?No need

to be afraid

Source : http://amaznginfo.com/wp-content/uploads/2015/12/o-CHILD-AFRAID-OF-THE-DARK-facebook.jpg

Page 38: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

Doing

IT

Together

!!!

Source : http://s27.postimg.org/j3esd6c5f/toddler2.jpg

Page 39: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

KeepCalmand put it on

Azure (Stack)

Thanks for listening!

Page 40: What happens when we throw ARM, DSC & POSH into a blender?expertslive.nl/wp-content/uploads/2016/12/Karim...Notification Hubs Hybrid Cloud Backup StorSimple Azure Site Recovery Import/Export

AUTOMATION

<Volgende sessie 11:30 – 12:30 uur>

Deliver PowerShell to your team: From a script on a UNC share to a self-updating module.

<Daniel Both & Bartosz Bielawski>