【发布时间】:2014-02-23 12:48:02
【问题描述】:
我正在虚拟机部署中设置以下 ConfigurationSet
<ConfigurationSet xsi:type="WindowsProvisioningConfigurationSet">
<ConfigurationSetType>WindowsProvisioningConfiguration</ConfigurationSetType>
<ComputerName>ROLE173D</ComputerName>
<AdminUsername>myname</AdminUsername>
<AdminPassword>mypassword</AdminPassword>
<WinRm>
<Listeners>
<Listener>
<Protocol>Http</Protocol>
</Listener>
<Listener>
<Protocol>Https</Protocol>
</Listener>
</Listeners>
</WinRm>
<DisableSshPasswordAuthentication>false</DisableSshPasswordAuthentication>
</ConfigurationSet>
虽然创建了 Window VM(并设置了端点),但它似乎没有启动 winrm 服务。
编辑
似乎 winrm 确实在端口 5985 上运行,并且 Endpoint 设置为允许 5985,但 Windows VM 防火墙阻止了访问,是否可以在部署时打开防火墙?
【问题讨论】:
-
您是否在 VM 上配置了端点以允许外部访问?
-
是的,我做了,我检查并打开了,问题是Windows Server内部防火墙默认关闭。
标签: powershell azure powershell-remoting winrm