Slide 1

Slide 1 text

Invoke-ChatOps Level Up and Change Your Culture with Chat and PowerShell Brandon Olin @devblackops

Slide 2

Slide 2 text

https://bit.ly/2E8Gb22 https://bit.ly/2ujgGLm Slides & Code

Slide 3

Slide 3 text

• What Is ChatOps? • The Problems/Opportunities • Benefits • Frameworks • Examples • PoshBot Overview • Demos • Q&A Agenda

Slide 4

Slide 4 text

What is ChatOps? "We're taking the things we're already doing and putting them in line with the conversations we're already having." -James Fryman (StackStorm)

Slide 5

Slide 5 text

What is ChatOps?

Slide 6

Slide 6 text

Bob: Hey Sally, a user called me and said hq-frodo1 fell over again. I’m not sure what’s wrong. Can you take a look? Sally: Ok, I don’t know much about that server but I think Brent does. I’ll try and track him down. 2 hours later… Sally: try it now. Brent said he fixed it. Bob: It works! Whatever you or Brent did fixed it. Thanks a bunch! The Problem

Slide 7

Slide 7 text

•Improve Context •Share Knowledge •Empower Team (why can’t Bob do this himself?) •Reduce Mean Time To Resolution (MTTR) •Fewer Brents Opportunities

Slide 8

Slide 8 text

Benefits Social •Knowledge Sharing •Team Empowerment •Situational Awareness •Faster Onboarding •Enable Retrospectives Technical •Increased Automation •Reduced MTTR •Better History & Logging •Improved Safety

Slide 9

Slide 9 text

ChatOps Frameworks •Hubot – JavaScript/CoffeeScript •Errbot - Python •Cog - Elixir •Lita – Ruby •Microsoft Bot Framework (.Net, Node.js) •PoshBot - PowerShell •Bot in language of choice (pick your poison)

Slide 10

Slide 10 text

Command Examples •Restart services •Get/resolve Service Desk tickets •Query APIs •Modify AD group membership •Create VMs •Check status of automated processes •Get performance graphs •Query monitoring systems •Deploy code/kick off CI/CD pipeline •Slap people with a trout

Slide 11

Slide 11 text

PoshBot - A PowerShell-based bot framework •Class-based •Modules => Commands •RBAC •Triggers •Scheduled Commands •Command Approvals •Parameter injection •Stateful Data •Channel and Command whitelist/blacklist •Multiple chat networks*

Slide 12

Slide 12 text

DEMO

Slide 13

Slide 13 text

•Start small (read-only) •Make it easy to do the right thing •Gain acceptance by: §Getting a champion §Low friction onboarding §Focus on low hanging fruit §Make it fun! How To Get There

Slide 14

Slide 14 text

devblackops.io @devblackops github.com/devblackops github.com/poshbotio https://bit.ly/2E8Gb22 https://bit.ly/2ujgGLm More From Me psake POSHOrigin Watchmen PoshBot plugins NetScaler PasswordState PSHealthZ Operation Validation Framework

Slide 15

Slide 15 text

THANK YOU! Please use the event app or Sched.com to submit a session rating!