New-PSSession in an Azure-runbook: Access denied (ARM)
问题 With the advice provided in this answer I was able to set up the winrm on a Azure VM(1). Right now, I can open a PS-Session with New-PSSession from any Azure VM(2) to the Azure VM(1) my local machine which to the Azure VM(1) But if I do exactly the same within an Azure runbook, $cred = Get-AutomationPSCredential -Name "admin" InlineScript { $vmSession = New-PSSession -ConnectionUri 'https://xxx.yyy.cloudapp.azure.com:5986' -Credential $cred -SessionOption (New-PSSessionOption -SkipCACheck