Reliable, Repeatable, Configurable & Automated Validation with

Slides:



Advertisements
Similar presentations
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Advertisements

Integrate into existing systems with PowerShell integration modules Extend by building PS modules to enable integrating into other systems Optimize.
Remote Service Solutions ATS 8550
Microsoft Application Virtualization 5.0: Introduction Mohnish Chaturvedi & Ian Bartlett Premier Field Engineer WCL312.
Microsoft Management Seminar Series SMS 2003 Change Management.
Infrastructure as code. “Enable the reconstruction of the business from nothing but a source code repository, an application data backup, and bare metal.
Copyright © New Signature Who we are: Focused on consistently delivering great customer experiences. What we do: We help you transform your business.
Inspirirani ljudima. Ugasite mobitele. Hvala.. Paolo Pialorsi Senior Consultant PiaSys ( Publishing apps for SharePoint 2013 on Microsoft.
Using Power BI with my DBA Database
Start-SPPowerShell – Introduction to PowerShell for SharePoint Admins and Developers Paul BAker.
How to be a SharePoint Developer
Build Fundamentals and Continuous Integration
Turning Your Checklists
6 Benefits of Using Microsoft Access Database. Microsoft Access is an efficient program that helps companies to carry out complex business processes in.
[+] Title Should Be 'Introduction to Pester‘ 89ms
Simplifying XEvents Management with dbatools
Administrating SQL Server with PowerShell dbatools
DevOps Database Administration
Solving ETL Bottlenecks with SSIS Scale Out
SharePoint Saturday Omaha April 2016
Administrating SQL Server with PowerShell dbatools
dbatools! The reason to finally start learning and using Powershell
Making PowerShell Useful
dbachecks! DBA Checklists: Reliable, Repeatable, & Automated
Administrating SSRS without boring web based clicks!
DevOps Database Administration
Making PowerShell Useful
Use PowerShell & dbatools to Manage your SQL Server Environment
Chrissy LeMaire, MVP & Rob Sewell, MVP
Unit testing for your database infrastructure
SQL Server and PowerShell Let’s Get Serious
dbatools! The reason to finally start learning and using Powershell
Reliable, Repeatable, Configurable & Automated Validation with
Course: Module: Lesson # & Name Instructional Material 1 of 32 Lesson Delivery Mode: Lesson Duration: Document Name: 1. Professional Diploma in ERP Systems.
PowerShell & PowerBi Reducing DBAs Context Switching
Making PowerShell Useful
PowerShell Best Practices for SQL DBA’s
PowerShell & PowerBi Reducing DBAs Context Switching
PowerShell & PowerBi Reducing DBAs Context Switching
Making PowerShell Useful
SQLSERVER:\ Using the SQL Server Provider with PowerShell
Automating the install and upgrade of SQL scripts
PowerShell & PowerBi Reducing DBAs Context Switching
Commands for SQL Server
PowerShell SQL Server I will be tweeting links as we go
The 6 P’s Powershell Profile Prepares Perfect Production Purlieu
JENKINS TIPS Ideas for making your life with Jenkins easier
The 6 P’s Powershell Profile Prepares Perfect Production Purlieu
Your code is not just…your code
The 6 P’s Powershell Profile Prepares Perfect Production Purlieu
Administrating SQL Server with PowerShell dbatools
Test and Verify Instances with DBAchecks
Reliable, Repeatable, Configurable & Automated Validation with
Microsoft Ignite NZ October 2016 SKYCITY, Auckland
Use PowerShell & dbatools to Manage your SQL Server Environment
HCL’s Viewpoint – DevOps on MS Cloud
Administrating SQL Server with PowerShell dbatools
Gold Sponsors.
dbatools! The reason to finally start learning and using Powershell
Managing and monitoring SQL Server on Linux from the command line
Using Dbatools to Automate Database Migrations
What it is and why you should use it
This is the slide shown before the presentation starts
The Future of Database Development
Your code is not just…your code
Database Testing Adam Anderson
The Future of Database Development (with containers)
The DBA Quit and now you’re it:
Environment Automation
Life Hacks: dbatools Edition
Presentation transcript:

Reliable, Repeatable, Configurable & Automated Validation with PowerShell dbachecks Rob Sewell @sqldbawithbeard https://sqldbawithAbeard.com

Speaker Questionnaire Name : Rob Occupation : DBA, Automator, Do-er, Trainer Interests : PowerShell, Automation And SQL (PaaS geddit?) Interesting Fact : Beard. (Still) Plays Cricket, Flies Drone Speaker : SQL Saturdays, SQL Relay, PowerShell Events Community : SQL South West , SQL Sat Exeter , PowerShell VG, PowerShell Conference EU Organiser, dbareports, dbatools, dbachecks, MVP

Quick Poll Contact Me robsewellsqldba @sqldbawithbeard RobSewell.info sqldbawithAbeard.com RobSewell.info mrrobsewell@outlook.com

Check Lists Photo by Glenn Carstens-Peters on Unsplash

What is Pester? Test Runner for PowerShell A Unit Testing Framework An Infrastructure Testing Framework https://github.com/pester https://www.youtube.com/watch?v=lNCR5yLSwi0 -- Test your Powershell with Pester and PSScriptAnalyzer “Untested Code is Broken Code” Infrastructure Testing with Pester - https://www.youtube.com/watch?v=zSEK74_fsLw Pester is a unit-testing framework for PowerShell, and perhaps the first open-source software product that ships with Windows itself! Author Adam Bertram will walk you through the Pester philosophy, syntax, and numerous real-world examples in this "Agile-published" book. The Pester Book https://leanpub.com/creatinghtmlreportsinwindowspowershell https://leanpub.com/powershell-scripting-toolmaking https://leanpub.com/pesterbook

Pester Writing Pester Tests for one SQL instance is easy Writing slightly different Pester Tests for slightly different instances is copy and paste It is possible to parameterize Pester tests (but not so easy to say!)

Challenges & Goals

Main Challenge - Configuration We wanted to be able to check a SQL environment like Production, UAT, DEV – horizontal We wanted to be able to check all the SQL Environments for a whole application – vertical We wanted to be able to check the SQL estate for a solution or system – block

Challenge - Output DBAs may need output instantly

Challenge - Output DBAs may want to automate and integrate with other solutions (DevOps, Daily Checks, Incident Response, Maintenance Windows)

Challenge - Output Management want output they understand – (and with pretty interactive pictures !)

Our Goal Create redistributable, easily configurable Pester tests using industry leaders checklists Enable output to suit the requirements of different types of end users human and machine Capability to provide response/resolution ?

dbachecks dbachecks is a framework created by and for SQL Server pros who need to validate their environments. This open source module allows us to crowdsource our checklists using Pester tests. Basically, we all share similar checklists and mostly just the server names and RPO/RTO/etc change.

System Requirements Client PowerShell v5.1 Server Minimum Recommended Client PowerShell v4 Modules dbatools Pester PSFramework Client PowerShell v5.1 Server Everything dbatools supports From SQL2000 to SQL vNext

Install is easy PowerShell Gallery Install-Module dbachecks Install-Module dbachecks –Scope CurrentUser * Automatically installs required modules

Get-DbcCheck - What Checks Are Available?

Get-DbcConfig - What Configs Are Available?

Invoke-DbcCheck – Run A Check

Set-DbcConfig – Config a Check > # Set the instances to check > Set-DbcConfig -Name app.sqlinstance Rob-XPS > Invoke-DbcCheck -Check OlaInstalled > Set-DbcConfig -Name policy.ola.database -Value DBA-Admin

Export-DbcConfig/Import-DbcConfig Export-DbcConfig –Path C:\Users\Beard\git\PesterConfigs\Application1_PROD.json Export-DbcConfig -Path C:\Users\Hair\git\PesterConfigs\Client1_System2_Quick.json Import-DbcConfig -Path Git:\PesterConfigs\Application1_PROD.json Invoke-DbcCheck Import-DbcConfig -Path Git:\PesterConfigs\Client1_System2_Quick.json

Start-DbcPowerBi Import-DbcConfig –path Git:\PesterConfigs\App1_Dev.json Invoke-DbcCheck -Show Summary -PassThru | Update-DbcPowerBiDataSource –Environment Development Import-DbcConfig –path Git:\PesterConfigs\App1_Test.json Invoke-DbcCheck -Show Summary -PassThru | Update-DbcPowerBiDataSource –Environment Test Import-DbcConfig –path Git:\PesterConfigs\App1_PROD.json Invoke-DbcCheck -Show Summary -PassThru | Update-DbcPowerBiDataSource –Environment Production Start-DbcPowerbi

Start-DbcPowerBi

Hey Beardy ! MUST BE TIME FOR A DEMO

Questions? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Rob Sewell @sqldbawithbeard https://sqldbawithAbeard.com

Quick Poll Contact Me robsewellsqldba @sqldbawithbeard RobSewell.info sqldbawithAbeard.com RobSewell.info mrrobsewell@outlook.com