This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) { |