Pester for Infrastructure Validation

I have been using Pester and integrated it with my dxExchange.WebServices module following HDD/TDD practices. I have wanted to start incorporating Pester testing into cloud configuration validation and management for some time, but never really got around to it. A couple of weeks ago, I participated in a Network DevOps course facilitated by Nick Russo … Continue reading Pester for Infrastructure Validation

Advertisements

PowerShell Ternary Statement

Ternary statements can be very useful but difficult to read. Many blue moons ago, I used to write a lot of Java, which has a ternary statement just like C: x = (condition) ? 1 : 0;
 It is a short and concise way to have a condition if it is a matter of setting … Continue reading PowerShell Ternary Statement

Updated dxExchange.WebServices

I have completed refactoring the dxExchange.WebServices module. It is at greater than feature parity to the previous release. Notable changes: Complete help Custom output formatting Pester tests! Deployed to the PowerShell Gallery!!! With that said, assuming a relatively modern version of PowerShell (4.x+): Install-Module dxExchange.WebServices Get-Command -Module dxExchange.WebServices The repository is on GitHub dxExchange.WebServices.

Help Driven Development with dxExchange.WebServices

I wrote a post about Help Driven Development (HDD) some time back. To summarize, HDD builds on top of what I have since come to understand as Behavioral Driven Development (BDD) and Test Drive Development (TDD). The aim of the paradigms are to improve code and invert the normal process, prioritizing the tasks that often … Continue reading Help Driven Development with dxExchange.WebServices

Focusing on Help Driven Development

I often times write up a never ending While loop in PowerShell to run something every X minutes.  Usually, I do this if I have manually deleted a user from Azure AD and I am waiting for it to synchronize back up: https://gist.github.com/dustindortch/3c2b865f5cbf49248b09e8836d564ec1 When I am done, I just [Ctrl]+[Break], or maybe I insert a … Continue reading Focusing on Help Driven Development

PowerShell Advanced Functions and Verbose Mode

Advanced Functions have been around for quite a while now and they still aren’t being used ubiquitously. It isn’t just a more complicated function, it is a defined thing. When you use out of the box cmdlets, they come with many common parameters, like Verbose. This is one of the things that Advanced Functions provide, … Continue reading PowerShell Advanced Functions and Verbose Mode

Microsoft Teams PowerShell Module and Insight into the Disappointment

I was just listening to episode 10 of the Office 365 Exposed podcast with Tony Redmond and Paul Robichaux. Tony was reviewing some of the conversation in his somewhat recent blog post, Why the PowerShell Module for Teams is Critically Flawed. We have seen some of the the issues outlined before, particularly with the means … Continue reading Microsoft Teams PowerShell Module and Insight into the Disappointment