A Story of PowerShell Quoting Rules

PowerShell Quoting Rules

This will be a fairly brief article that talks about single quotes vs. double quotes in the PowerShell automation language. Single Quotes In PowerShell, single quotes are commonly used to define string literals. If you want to include a single quote inside of a single-quoted string literal, then you simply …

Continue reading

Designing Command Line Tool User Experience

Linux Terminal Running Docker

Introduction Software developers, infrastructure & DevOps engineers, and operational IT staff are heavy users of the command line. The benefits of the command line are clear: Commands are / should be readable Commands are repeatable Commands can be shared amongst a team (eg. via source control / chat / etc.) …

Continue reading

Azure PowerShell Extensions Updates

The Azure PowerShell Extensions module (AzureExt) for Windows PowerShell has seen another interesting update! Let’s take a look at some of the high-level changes: External dependencies have been completely removed The module now supports PowerShell ISE Snippets for Azure Resource Manager (ARM) Resources New command: Remove-AzureRmResourceGroupGui New command: Start-AzureRM Check …

Continue reading

PowerShell Error: Publishing Module to Gallery

I recently tried publishing a very small, simple PowerShell module to the PowerShell Gallery. I ran into a few errors that were rather cryptic. To get more debugging information, I ran Publish-Module with the -Verbose switch parameter. The main errors I noticed were as follows: Invalid URI: The format of the …

Continue reading

Microsoft MVP Renewal: Third Consecutive Year

This morning, I received the coveted, diamond-like e-mail that most people anticipate with fervor. For the third year in a row, I have been awarded the Microsoft MVP award for contributions to the community. I very much enjoy, and am passionate, about being involved in various IT communities, locally, nationally, …

Continue reading

PSA: Upload your PowerShell Modules!

For some time now, the PowerShell Gallery has been available, enabling the upload of PowerShell modules to a centralized repository. This repository provides an easily discoverable location from PowerShell 5.0’s PowerShellGet module. In order to install a PowerShell module in PowerShell 5.0, a user must simply type Install-Module -Name <ModuleName>. …

Continue reading

Auto-Complete .NET Constructor Params

Introduction If you’re a regular PowerShell script or module author, you’re probably accustomed to creating .NET objects using object constructors. In the Microsoft .NET Framework, each struct or class can have one or more constructors. A constructor enables the type consumer to instantiate the object using a set of zero …

Continue reading

Azure Template Deployment with PowerShell :: MTUG Norway

On August 26th, 2015, I delivered a presentation on deploying Azure Resource Manager (ARM) JSON templates using the ARM PowerShell module for the Microsoft Technology User Group (MTUG) in Norway. This event was coordinated by Microsoft MVP Jan Egil Ring. You can view the 1.5 hour recording of the presentation …

Continue reading

Create a Visual Studio Project for your PowerShell Scripts

Are you eager to take advantage of Visual Studio PowerShell Tools? This video talks about how to create a Visual Studio Solution & Project to help you manage your PowerShell script files. If you’ve already got a set of one-off scripts, that doesn’t necessarily warrant a PowerShell module, but you …

Continue reading

PowerShell Splatting: Overview

Have you ever been writing a PowerShell script, and looked at how wordy and long the command becomes? If so, you’ll want to familiarize yourself with the concept of PowerShell Splatting. This technique allows you to declare your PowerShell cmdlet parameters in a HashTable (aka. dictionary or key-value pairs), and …

Continue reading