Scripting Blog [archived]

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

PowerTip: List Azure Resource Manager resources assigned to a resource group by using PowerShell

Summary: Use the Azure Resource Manager cmdlets to show resources that are assigned under a resource group. (image) I looked at the console for Azure Resource Manager and can see all the resources for a particular resource group. Is there a way to see that by using PowerShell? (image) There sure is! Just use the Get-AzureRMResource cmdlet ...

PowerTip: Get Azure Virtual Machine Diagnostics by using PowerShell

Summary: Use the Azure Resource Manager cmdlets to retrieve diagnostic data within Azure Resource Manager virtual machines. (image)  Our QA department was asking a very specific question that I didn’t know how to answer. Is there anything in an Azure virtual machine (VM) to show the quality of the boot and its startup? (image)  Maybe this...

PowerTip: Show Azure Resource Manager virtual machine status with PowerShell

Summary: Using the Azure Resource Manager cmdlets to see the running state of a virtual machine. (image)  I remember using the old cmdlets for Azure, and they would show the status of my virtual machines.  How can I do that with the new cmdlets? (image)  Use the Get-AzureRM cmdlet with the –Status parameter to expand the available ...

PowerTip: List Azure Resource Manager virtual networks with PowerShell

Summary: Use the AzureRM cmdlets to list all available virtual networks in a subscription. (image)  I’m doing work for a client who forgot to give me a list of the virtual networks in the client's Azure subscription. Could you save me some time and show me how to get that list? (image)  Just use the Get-AzureRMVirtualNetwork cmdlet. This...

PowerTip: View properties from a storage account with PowerShell

Summary: View and access the SKU from a storage account for future use. (image)  I went to work with the New-AzureRMStorageAccount cmdlet but was confused about how to know which name to use for the SKU. Is there an easy way to know which one to use? (image)  There most certainly is! Just create your storage account in the Azure portal ...