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, …

Continue reading

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 …

Continue reading

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 …

Continue reading

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

Poll: Favorite PowerShell Editor

Do you have a favorite PowerShell editor experience? Vote this in this poll, and make your voice heard! We’re gathering people’s feedback to help better understand which tools are popular among the PowerShell developer community, and tailor content towards that crowd. Thanks!

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

Digital Ocean Droplet – Linux VPS Review

I’ve been using the Digital Ocean Virtual Private Server (VPS) host on and off for a few months now, and I must say, they are incredibly easy to use! First of all, their web UI is simple, easy to use, and dare I say, enjoyable to use. They have one, and …

Continue reading

Find and Remove Package on Ubuntu Linux

I recently installed a couple packages that I didn’t need any longer on an Ubuntu Linux system. Most likely, you’ve installed packages using apt install or apt-get install. However, neither of these commands offer a command that lists out the packages that you’ve installed. To list out the installed packages, …

Continue reading

Hyper-V SecureBoot Error

I recently was trying to install Ubuntu Desktop 16 under a Hyper-V VM on Windows 10. Naturally, I downloaded the ISO image for the operating system, mounted it to a new Generation 2 Virtual Machine, and then proceeded to boot the VM. Unfortunately the VM was unable to boot to …

Continue reading

Select Unique Lines in Bash on Linux

If you have a file with repeated lines, and you want to remove duplicate lines, you can use the uniq command. The description of this utility, from its man page is simply: “report or omit repeated lines.” Consider the following example: trevor@MyUbuntuVM:~$ echo “this is is great” | uniq The output …

Continue reading