Showing category results for Hey Scripting Guy!

Jun 8, 2016
Post comments count0
Post likes count0

PowerTip: Change current Azure Resource Manager subscription by using PowerShell

Doctor Scripto

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 from the default one to one of my others? You can do this very task by using the Select-AzureRMSubscription cmdlet and providing either the name of...

Windows PowerShellPowerTipguest blogger
Jun 8, 2016
Post comments count0
Post likes count0

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

Doctor Scripto

Summary: Use the Azure Resource Manager cmdlets to create and attach a virtual network card to 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 to...

Windows PowerShellguest bloggerSean Kearney
Jun 7, 2016
Post comments count0
Post likes count0

PowerTip: Get the time and date as a string of numbers by using PowerShell

Doctor Scripto

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 where it’s all numbers? Absolutely! Just use the –format option with Get-Date and supply a format for the output. To see the format as month, day, ...

Windows PowerShellPowerTipguest blogger
Jun 7, 2016
Post comments count0
Post likes count0

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

Doctor Scripto

Summary: Use the Azure Resource Manager cmdlets to define the operating system disk on a storage blob 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 mi...

Windows PowerShellguest bloggerSean Kearney
Jun 6, 2016
Post comments count0
Post likes count0

PowerTip: Find available virtual machine size by using PowerShell

Doctor Scripto

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 first? Just use the Get-AzureRMVMSize cmdlet, and filter on the Name property. You just need to supply a location first. In this example, we are loo...

Windows PowerShellPowerTipguest blogger