Accessing an azure vm through Powershell remote from Azure Automation
问题 I am trying to access an azure vm via powershell remoting from azure automation. All our vms inside the subscription do not have public ips (only private ip). I have tried to access by New-Pssession (as below) , but no luck. Could you please let me know what are the other ways to achive this? $connectionName = "AzureRunAsConnection" $SPC = Get-AutomationConnection -Name $connectionName Write-Output $SPC Add-AzureRmAccount -ServicePrincipal -TenantId $SPC.TenantId -ApplicationId $SPC