且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何通过PowerShell在Azure虚拟机上远程运行Puppet bolt命令

更新时间:2023-02-15 11:45:27

对于此问题,尝试连接后错误显示超时.通常,这是因为端口不允许您连接.据我所知,应该有两个原因.一是防火墙不允许从端口访问.另一个是不监听该端口.

For this issue, the error shows a timeout after trying to connect. Generally, it is because the port does not allow you to connect. And there should be two reasons as I know. One is that the firewall does not allow access from the port. Another is that the port does not be listened to.

对于您来说,您可以检查防火墙是否允许WinRM端口,以及是否在VM中启用了WinRM.

For you, you can check if the firewall allows the WinRM port and if the WinRM is enabled in the VM.