Powershell Winrm在Windows Azure Windows VM上不可用
我正在虚拟机部署中设置以下配置集Powershell Winrm在Windows Azure Windows VM上不可用,powershell,azure,powershell-remoting,winrm,Powershell,Azure,Powershell Remoting,Winrm,我正在虚拟机部署中设置以下配置集 <ConfigurationSet xsi:type="WindowsProvisioningConfigurationSet"> <ConfigurationSetType>WindowsProvisioningConfiguration</ConfigurationSetType> <ComputerName>ROLE173
<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>
尽管创建了窗口VM并设置了端点,但它似乎没有启动winrm服务
编辑
winrm似乎确实在端口5985上运行,并且端点设置为允许5985,但Windows VM防火墙正在阻止访问,是否需要打开部署上的防火墙?最后的问题是一个简单的错误修复。元素应该是WinRM而不是WinRM。没有模式或运行时验证错误这一事实实际上隐藏了原因
Seems the request what you have formed has to have a thumbprint
if you intend to access winrm via https and the way how you pass
the request seems to be little different. Can you pass your request like this?
change the listener protocol to type
<WinRm>
<Listeners>
<Listener>
<Type>Http</Type>
</Listener>
<Listener>
<Type>Https</Type>
<CertificateThumbprint>yourcertthumbprint</CertificateThumbprint>
</Listener>
</Listeners>
</WinRm>
This winrm request should add firewall exception rule.
Alternatively you can run the following powershell command for adding firewall policy for winrm service and you are all set.
Enable-PSRemoting
Let me know if this helps!!
一旦纠正了输入错误,将使用自签名证书在公共端口上设置winrm/https。
虽然Winrm/http仅为内部网络设置。您是否在VM上配置了允许外部访问的终结点?是的,我进行了配置,检查并打开了,问题是Windows Server内部防火墙默认关闭。最终我发现了问题,这是一个愚蠢的输入错误。元素WinRm vs WinRm。