Showing results for PowerTip - Scripting Blog [archived]

Jun 8, 2016
Post comments count0
Post likes count0

PowerTip: Change current Azure Resource Manager subscription by using PowerShell

Doctor Scripto
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 7, 2016
Post comments count0
Post likes count0

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

Doctor Scripto
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 6, 2016
Post comments count0
Post likes count0

PowerTip: Find available virtual machine size by using PowerShell

Doctor Scripto
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
Jun 3, 2016
Post comments count0
Post likes count0

PowerTip: List all virtual network subnets by using PowerShell

Doctor Scripto
Doctor Scripto

Summary: Use the Azure Resource Manager cmdlets to identify all the available subnets in a particular virtual network. I’m trying to figure out a way to list all the subnet configurations in a virtual network in Azure Resource Manager. Got any tips? How about the answer? It’s a matter of combining the Get-AzureRMVirtualNetwork cmdlet and Get-Azu...

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

PowerTip: List all Azure Resource Manager storage accounts by using PowerShell

Doctor Scripto
Doctor Scripto

Summary: Use the Azure Resource Manager cmdlets to identify available storage accounts. I’m working a client site, and they’d like me to document the configuration of their Azure Resource Manager environment. I’m in desperate need of a list of the storage accounts. Help me, please? One cmdlet and you’re done. Just use the Get-AzureRMStorageAccou...

Windows PowerShellPowerTipguest blogger