Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

PowerTip: Extend a string array in PowerShell

Summary: Use the built in features of PowerShell to easily add new Element to a string array. (image) I created an array of strings in PowerShell, but I need to add to it. Is there a simple way to do this? (image) Absolutely. Just use += to add an element to your string array. In the following example, we add a new element to the array that...

Create Azure Resource Manager virtual machines by using PowerShell – Part 5

Summary: Use the Azure Resource Manager cmdlets to assign credentials and create the virtual machine. This blog post is part of a series about how to create Azure Resource Manager virtual machines by using PowerShell. To get the most out of this series, read the posts in order. If you’re new to PowerShell, you might want to ...

Create Azure Resource Manager virtual machines by using PowerShell – Part 4

Summary: Use the Azure Resource Manager cmdlets to select the operating system image for a virtual machine. This blog post is part of a series about how to create Azure Resource Manager virtual machines by using PowerShell. To get the most out of this series, read the posts in order. If you’re new to PowerShell, you might want ...