Skip to content

Instantly share code, notes, and snippets.

View chamindac's full-sized avatar

chamindac

View GitHub Profile
@chamindac
chamindac / AzureRGVMPowerGo.ps1
Created December 7, 2016 07:02 — forked from darrenjrobinson/AzureRGVMPowerGo.ps1
ParallelRMRGVirtualMachines
param(
[string]$power,
[string]$azureResourceGroup
)
if (!$power){Write-host "No powerstate specified. Use -Power start|stop"}
if (!$azureResourceGroup){Write-host "No Azure Resource Group specified. Use -azureResourceGroup 'ResourceGroupName'"}
# see if we already have a session. If we don't don't re-authN
if (!$AzureRMAccount.Context.Tenant) {