Test and Verify Instances with DBAchecks

Slides:



Advertisements
Similar presentations
Deployment and Configuration Management Solution
Advertisements

Automated Deployment Framework Using TFS and Custom PowerShell cmdlets to create an automated deployment framework.
What's New for Build Automation in Team Foundation Server 2015 Paul Hacker Solution Architect, Microsoft ALM MVP.
Infrastructure as code. “Enable the reconstruction of the business from nothing but a source code repository, an application data backup, and bare metal.
Continuous Deployments using SSDT
Rob Sewell Making PowerShell Useful Real-Life Examples of Powershell in Action Slides available here -
Introduction to SQL Server Automation with Powershell by Chris Sommer.
Declarative Configuration Management with Azure Automation DSC and ARM Nathan Lasnoski Vice President of blog.concurrency.com Concurrency.
Working with SQL Server for Linux Cross-Platform
Outsourcing Database Administration
Introduction to Unit Testing in JavaScript
DBA and IT Professional for ~9 years. Currently I am a Data Architect
Turning Your Checklists
[+] Title Should Be 'Introduction to Pester‘ 89ms
Using PowerShell with Python & SQL Server
Simplifying XEvents Management with dbatools
Administrating SQL Server with PowerShell dbatools
DevOps Database Administration
Reliable, Repeatable, Configurable & Automated Validation with
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
SQL Server and PowerShell Let’s Get Serious
Making PowerShell Useful
TDD adoption plan 11/20/2018.
Use PowerShell & dbatools to Manage your SQL Server Environment
Chrissy LeMaire, MVP & Rob Sewell, MVP
dbatools - PowerShell and SQL Server Working Together
Unit testing for your database infrastructure
SQL Server and PowerShell Let’s Get Serious
dbatools! The reason to finally start learning and using Powershell
SQL Server Agent The Life Preserver for the Drowning DBA Lance Tidwell.
In this session… Introduce what we’re talking about
How to Perform A Health Check By Edward Roepe Perimeter DBA, LLC
Reliable, Repeatable, Configurable & Automated Validation with
DBA for ~4+years, IT Professional for 7.5 years.
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
The 6 P’s Powershell Profile Prepares Perfect Production Purlieu
TDD & ATDD 1/15/2019.
Outsourcing Database Administration
Administrating SQL Server with PowerShell dbatools
Reliable, Repeatable, Configurable & Automated Validation with
Test Driven Lasse Koskela Chapter 9: Acceptance TDD Explained
Use PowerShell & dbatools to Manage your SQL Server Environment
Administrating SQL Server with PowerShell dbatools
AD, gMSA and SQL Server Windows Authentication in a Container
DEVOPS & THE FUTURE OF TESTING
SSDT, Docker, and (Azure) DevOps
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
SSDT, Docker, and (Azure) DevOps
An Intro & Implementing dbatools
What it is and why you should use it
Environment Automation
Database Testing Adam Anderson
SQL Server on Containers
Life Hacks: dbatools Edition
Presentation transcript:

Test and Verify Instances with DBAchecks

About Me Josh Corrick (@joshCorr) https://Corrick.io/blog Worked in IT for around 7 years Lived in Jacksonville for 4 years MCSA - Linux in Azure Passionate about PowerShell Contributed to Dbatools I like to Hike

Overview What is DbaChecks? What does DbaChecks run on? What is Unit testing? How do we use DbaChecks? Demos

But First… Who are you? Dba? Developer? BI + Reporting? All three of these? PowerShell?

What is DbaChecks? DbaChecks is a framework for checking SQL Instances Think of it as a Automated Checklist It is written in PowerShell and is an open sourced module https://Dbachecks.io Written by @cl (Chrissy LeMaire), @sqldbawithbeard (Rob Sewell) and a handful of others

How do you Install DbaChecks?

What does DbaChecks run on? DbaChecks requires PowerShell version 4+ (but not 6…yet) Some modules from PowerShell Gallery Pester Dbatools PSFramework

What is Pester? A Behavior Driven Development Test Runner ….It is a test framework for PowerShell ……It’s module for writing code to check your code …………It helps you test things with PowerShell

Testing Types Test Types Unit Tests smaller units of code Integration Tests how code works together with a system Component Tests on how information passes through code System Tests that a system meets the specs required Acceptance QA Testing to ensure the everything is running

Testing Types Test Types Unit Tests smaller units of code Integration Tests how code works together with a system Component Tests on how information passes through code System Tests that a system meets the specs required Acceptance QA Testing to ensure the everything is running

Why should I care about Pester? …………Pester helps you test things with PowerShell Before Pester Find a Problem Write a Script Run that Script See Errors on the Screen Google Errors Adjust Script Repeat steps 3-6 until working With Pester Find a Problem Write a Script Write a Unit Test for that Script Run the Test If your test passes your good If it doesn’t adjust your script

Back to DbaChecks Leverages Unit and Integration tests to validate systems Includes Necessary checks (Backup Integrity) Desirable checks (Suspect Pages, Duplicate Index) Best Practices (SQL Agent job ownership, PowerPlan)

DEMOS

Questions?

Contact Me Josh Corrick Twitter: @joshCorr Blog: https://Corrick.io/blog Email: Joshua@Corrick.io