Answers for "azure powershell runbook to start a virtual machine"

0

azure powershell runbook to start a virtual machine

## 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"
Posted by: Guest on October-03-2020

Code answers related to "azure powershell runbook to start a virtual machine"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language