Runbook do Azure PowerShell para iniciar uma máquina virtual
## Connect to Azure via your RunAsAccount
$Conn = Get-AutomationConnection -Name AzureRunAsConnection
Connect-AzureRmAccount -ServicePrincipal -Tenant $Conn.TenantID -ApplicationId $Conn.ApplicationID -CertificateThumbprint $Conn.CertificateThumbprint | Out-Null
## To be executed
Start-AzureRmVM -ResourceGroupName "ServerGroup" -Name "Server01"
South African Hedgehog