我正在尝试在下面运行puppet bolt command远程Azure VM通过powershell。
bolt command run ipconfig --targets winrm://158.28.0.546 --no-ssl -user testuser123 -password test@84p
在powershell中获取上述命令的错误
在 192.168.0.140 上失败:
连接到 192.168.0.140 10 秒后超时
1 个目标失败:192.168.0.140
如何解决上述问题
更新1:
WinRM在远程启用Azure Virtual Machine。即使在公共网络上也Firewall被禁用。Azure VM
添加DNS name后Azure Portal,我收到如下错误
无法连接到 https://testazurevm.westus.cloudapp.azure.com:5986/wsman:
由于目标机器主动拒绝,无法建立连接
