Training / New Courses

New Training: Infrastructure Testing with PowerShell and Pester Testing Framework

by Trevor Sullivan
New Training: Monitor Windows Performance Counters and Event Logs with PowerShell picture: A
Published on January 22, 2021

In this 9-video, DevOps training, CBT Nuggets trainer Trevor Sullivan covers how you can leverage Pester to monitor infrastructure.

Watch this new PowerShell training.

Pester is an open source testing framework for PowerShell. While its primary purpose is to provide unit testing for PowerShell code, it can also be used for generic testing purposes.

Applying a test-driven model to infrastructure monitoring naturally helps you document your environment. You can also infer intent by examining the contents of a test suite. Storing your infrastructure tests as code allows you to version control your environmental monitoring tools, track changes over time, and easily revert changes that break desired functionality.

Some examples of automated infrastructure tests are as follows.

  • Ping default gateway, with less than "X" milliseconds response time

  • Monitor for an HTTP 200 OK status code from a production website

  • Ensure firewall rules are not modified on managed routers

  • Verify that cloud costs do not get out of control

There are many other scenarios in which you can apply similar techniques for infrastructure monitoring, using a test-driven approach.

After taking this CBT Nuggets skill, you'll know how to ensure the Pester module is up-to-date on your system, and how to write Pester tests. We'll specifically cover how to implement some simple assertions to validate that ping response times are less than a given threshold. You'll also learn how to use PowerShell to perform validation testing and performance testing against HTTP endpoints.

This training includes:

  • 9 videos

  • 1 hour of training

Watch a video from the series:

Start learning Pester for infrastructure monitoring today!



Ultimate Networking Cert Guide

A 97-page guide to every Cisco, Juniper, F5, and NetApp certification, and how they fit into your career.

By submitting this form you agree that you have read, understood, and are able to consent to our privacy policy.

Don't Miss Out

Get great content delivered to your inbox.

I have read and understood the privacy policy, and am able to consent to it.

Recommended Articles

Get CBT Nuggets IT training news and resources

I have read and understood the privacy policy and am able to consent to it.

© 2022 CBT Nuggets. All rights reserved.Terms | Privacy Policy | Accessibility | Sitemap | 2850 Crescent Avenue, Eugene, OR 97408 | 541-284-5522