Error Messages Running Yum on RedHat 7.3

I’ve been using Ubuntu Server for a while now, on various Microsoft Azure or Amazon Web Services (AWS) EC2 instances, and the experience has been pretty awesome. I recently spun up a RedHat Enterprise Linux (RHEL) 7.3 instance on AWS EC2. RedHat 7.3 was just released about a week ago from today. One of the … Read moreError Messages Running Yum on RedHat 7.3

Use PowerShell to Copy Files over WMI

Scenario Recently, a question came up on StackOverflow, about PowerShell, where someone wanted the ability to copy a file to a remote system via Windows Management Instrumentation (WMI). The question went on to clarify that the individual did not want to have any dependency on SMB (Server Message Block) shares, and that they specifically wanted … Read moreUse PowerShell to Copy Files over WMI

Run PowerShell Natively on Linux and Docker!

Microsoft just made a huge splash today, by announcing that PowerShell is now available on Linux! I created a launch video that demonstrates how to get PowerShell Core running inside a Docker container! You can see the video over on Microsoft’s MSDN Channel 9. https://channel9.msdn.com/Shows/msftazure/Run-PowerShell-Natively-on-Linux-with-Docker Check if PowerShell is Running in a Docker Container If … Read moreRun PowerShell Natively on Linux and Docker!

Docker Login Error: x509: certificate signed by unknown authority

We recently set up a custom Docker Registry, using the VMware Harbor solution. The NGINX endpoint was secured using a TLS certificate from DigiCert. When we ran the docker login command, to authenticate to this registry, we were receiving a very common error message: x509: certificate signed by unknown authority The crux of the issue … Read moreDocker Login Error: x509: certificate signed by unknown authority

Change Allocation Method for Azure Network Interface

Update Azure Network Interfaces with PowerShell

Have you already provisioned a Microsoft Azure Virtual Machine, with a dynamic private IP address? Do you want to change that dynamically provisioned IP address to a static IP address? If so, you’re in luck! This process is relatively easy using the Microsoft Azure PowerShell module. Install PowerShell 5.0 First, make sure you’re running PowerShell … Read moreChange Allocation Method for Azure Network Interface

Use PowerShell to Persist Environment Variables

Persistent Environment Variables PowerShell

In PowerShell, you can easily create environment variables using a few different methods. However, these are only scoped to the current PowerShell process, and not to any process running inside the user’s profile, or any process running on the system. Here are a few examples of methods that you can use to set environment variables … Read moreUse PowerShell to Persist Environment Variables

Merge AVHDX Hyper-V Checkpoints

Hyper-V Edit Disk - Merge Action

When you create a snapshot of a virtual machine in Microsoft Hyper-V, a new file is created with the .avhdx file extension. The name of the file begins with the name of its parent VHDX file, but it also has a GUID following that, uniquely representing that checkpoint (sometimes called snapshots). You can see an … Read moreMerge AVHDX Hyper-V Checkpoints

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 put two single quotes next … Read moreA Story of PowerShell Quoting Rules

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.) Automation is scalable across many … Read moreDesigning Command Line Tool User Experience