AzureRT/azure-sdk-tools — pull request #35 by rickrain (2013-07-08 23:25:01+00:00)
Title: Added wildcard support for the Name parameter on Start-AzureVM and Stop-AzureVM

Added wildcard support for the Name parameter on Start-AzureVM and Stop-AzureVM.

Example regular expressions supported:

// Starts all VM's in the service MyService
Start-AzureVM -Name * -ServiceName MyService

// Starts all VM's whose Name starts with "test" in the service MyService
Start-AzureVM -Name test* -ServiceName MyService

// Starts all VM's whose Name ends with "test" in the service MyService
Start-AzureVM -Name *test -ServiceName MyService

// Starts the VM whose Name is "myvm" in the service MyService
Start-AzureVM -Name myvm -ServiceName MyService

// Stops all VM's in the service MyService
Stop-AzureVM -Name * -ServiceName MyService -Force

// Stops all VM's whose Name starts with "test" in the service MyService
Stop-AzureVM -Name test* -ServiceName MyService -Force

// Stops all VM's whose Name ends with "test" in the service MyService
Stop-AzureVM -Name *test -ServiceName MyService -Force

// Stop the VM whose Name is "myvm" in the service MyService
Stop-AzureVM -Name myvm -ServiceName MyService