PowerTip: Find available virtual machine size by using PowerShell
Summary: Use the Azure Resource Manager cmdlets to get the proper name for a virtual machine size. Is there a way to see the proper name for a virtual machine size without creating a virtual machine...
View ArticleCreate Azure Resource Manager virtual machines by using PowerShell – Part 2
Summary: Use the Azure Resource Manager cmdlets to define the operating system disk on a storage blob for a virtual machine. Would you help me, please? I need to know how to define storage for my...
View ArticlePowerTip: Get the time and date as a string of numbers by using PowerShell
Summary: Use the –format option in Get-Date to change the output. I’d like to build some log files and have the date and time as part of the name. Is there a way to show the date and time in a format...
View ArticleCreate Azure Resource Manager virtual machines by using PowerShell – Part 3
Summary: Use the Azure Resource Manager cmdlets to create and attach a virtual network card to a virtual machine. I’m trying to find some guidance about how to use PowerShell to create a virtual...
View ArticlePowerTip: Change current Azure Resource Manager subscription by using PowerShell
Summary: Use the Azure Resource Manager cmdlets to alter the current active subscription in use. I have about a dozen different subscriptions in my Azure Resource Manager account. How can I change it...
View ArticleCreate 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. I’ve got most of that virtual machine (VM) assembled, but I was having quite a time trying to...
View ArticlePowerTip: Search Azure Resource Manager image publishers by using PowerShell
Summary: Use the Azure Resource Manager cmdlets to search publishers for a match. Could you show me an example of how to search through the list of publishers for Azure images? Just use the...
View ArticleCreate 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. Now that I’ve built all the objects for the virtual machine (VM), what’s left before we spin up the...
View ArticlePowerTip: Export Azure resource group as JSON by using PowerShell
Summary: Use the Azure Resource Manager cmdlets to export a resource group as a JSON configuration. I’ve heard that JSON is used to define features in Azure Resource Manager. Is there a way to export a...
View ArticleBuild a hexadecimal clock in PowerShell – Part 1
Honorary Scripting Guy, Sean Kearney, is here today, and I’m going to sit down and have some fun this week. Today I was feeling a bit bored and, for some reason, the thought “hexadecimal clock” entered...
View ArticlePowerTip: Extend a string array in PowerShell
Summary: Use the built in features of PowerShell to easily add new Element to a string array. I created an array of strings in PowerShell, but I need to add to it. Is there a simple way to do this?...
View ArticleBuild a hexadecimal clock in PowerShell – Part 2
Summary: Manipulate string data from Get-Date in PowerShell. Honorary Scripting Guy, Sean Kearney, is here today to have a little more fun with our silly project to build a hexadecimal clock in the...
View ArticlePowerTip: Use PowerShell to identify a leap year
Summary: Use PowerShell and Math to identify a leap year. Is there a way to use PowerShell to identify whether this year is a leap year? Actually there is! You can use a combination of Get-date to find...
View ArticleBuild a hexadecimal clock in PowerShell – Part 3
Summary: Use Select-String in PowerShell to identify data and match it to an array. Honorary Scripting Guy, Sean Kearney, is here today to play more with our funky, nerdy, cool hexadecimal clock....
View ArticlePowerTip: Set a default value in a switch statement
Summary: Use the default field in switch statement to have an assumed value. I was playing with Select-String and would like to have it default to a value if none was trapped for. How can I do that?...
View ArticleBuild a hexadecimal clock in PowerShell – Part 4
Summary: Use PowerShell to navigate the neutral zone. Honorary Scripting Guy, Sean Kearney, is here today to continue forth (not COBOL nor even Visual BASIC) into our silly yet fun quest to build a...
View ArticlePowerTip: Set the color of the progress bar with PowerShell
Summary: Use the $Host object to alter the color of the progress bar in PowerShell. I was curious if there’s a way to change the color of the progress bar in PowerShell. Do you know how this could be...
View ArticleBuild a hexadecimal clock in PowerShell – Part 5
Summary: Learn to split data in a Here-String and get a console beep. Honorary Scripting Guy, Sean Kearney, is here with our final day this week to wrap up building a hexadecimal clock in PowerShell....
View ArticlePowerTip: Remove trailing space from a string by using PowerShell
Summary: Use the trim() method to remove leading and trailing spaces from a string. Could you do me a huge favor and show me how to get rid of spaces before and after a string in PowerShell? No problem...
View ArticleUse Windows PowerShell to search for files
Summary: Use Get-Childitem to search the files system with PowerShell. I saved a file somewhere on my computer and can’t find it. Is there a way to use Windows PowerShell to find it? Honorary Scripting...
View Article