Runbook Azure PowerShell pour démarrer une machine virtuelle
## 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