无法连接到虚拟机,因为入站端口规则不起作用。

huangapple go评论42阅读模式
英文:

Can't connect to VM because inbound port rule is not working

问题

我无法连接到我的Azure虚拟机,尽管尝试重新启动它并创建新实例。 DenyAllInbound规则以前阻止我连接到我的虚拟机,因为RDP规则应该覆盖它,但根本没有被添加。 今天Azure为我创建了RDP规则,正如它应该的那样,然而,我只能连接一次,从那以后就无法工作。而且那是一个不同的虚拟机。 我不得不删除它,因为在创建虚拟机时,Azure未告诉我就更改了区域,结果延迟非常高。 有什么建议可以解决这个问题?

我遇到了这个错误:
【图片链接】
我尝试过:

  1. 重新启动虚拟机
  2. 创建新的虚拟机
  3. 创建一个具有高优先级的新RDP规则
  4. 尝试更改端口,但显然3389是RDP的唯一选项。

更新:
【图片链接】

英文:

I'm having trouble connecting to my Azure VM, despite trying to restart it and creating new instances. The DenyAllInbound rule was preventing me from connecting to my VMs before because the RDP rule that's supposed to override it wouldn't get added at all. Today Azure is creating the RDP rule for me, as it should, however, I was only able to connect once, and it hasn't been working since then. Also, that was a different VM. I had to delete it because while creating the VM, Azure changed the region without telling me and as a result, there was very high latency. Any suggestions on how to fix this issue?

无法连接到虚拟机,因为入站端口规则不起作用。

I'm getting this error:
无法连接到虚拟机,因为入站端口规则不起作用。

I tried:

  1. Restarting the vm
  2. Creating a new vm
  3. Creating a new RDP rule with high priority
  4. Tried changing the port, but apparently 3389 is the only option for RDP

Update:
无法连接到虚拟机,因为入站端口规则不起作用。

答案1

得分: 1

你可以按照以下步骤检查 Azure VM RDP 连通性问题。

  1. 通过导航到 启动诊断 来检查 VM 运行状态,因为它会显示 Azure VM 的当前屏幕。

  2. 要收集 Azure VM 的诊断信息,请按照以下步骤安装 AzurePerformanceDiagnostics 扩展。

  3. 运行 VM 诊断 以收集 VM 信息。

  4. 完成诊断后,下载报告并分析问题。

  5. 运行 网络安全组 测试如下。

  6. 如果问题仍然存在,请尝试使用没有任何阻塞的不同 网络 进行检查。

有关更多关于 Azure VM RDP 问题的信息,请参考:解决连接到 Azure 虚拟机的远程桌面连接问题

英文:

You can check Azure VM RDP connectivity issues by following the steps.

  1. Check the VM running status by navigating to Boot diagnostics as it displays the current screen of Azure VM.

无法连接到虚拟机,因为入站端口规则不起作用。

  1. To collect Azure VM diagnostics install the AzurePerformanceDiagnostics extension as below.

Azure VM > Extensions + applications > Add.

无法连接到虚拟机,因为入站端口规则不起作用。

无法连接到虚拟机,因为入站端口规则不起作用。

Run the VM diagnostics to collect VM information.

无法连接到虚拟机,因为入站端口规则不起作用。

Once complete the diagnostics, download the report and analyse the issue.

无法连接到虚拟机,因为入站端口规则不起作用。

  1. Run Network security group test as below.

无法连接到虚拟机,因为入站端口规则不起作用。

  1. If still persisting the issue, kindly check with a different Network without any blockage.

Refer : Troubleshoot Remote Desktop connections to an Azure virtual machine more about Azure VM RDP issue.

答案2

得分: 0

我有一个拒绝所有规则,这是一个默认的硬编码规则,在诊断中显示,但我的入站端口3389的指标是100 - 有人能解释一下为什么我不能远程桌面连接到虚拟机吗?

一切看起来都正常。

英文:

I've got a deny all rule which is a default hardcoded rule showing under diagnostics but my metric for the inbound port 3389 is 100 - can someone explain why I can't RDP to the VM?

It all looks fine

无法连接到虚拟机,因为入站端口规则不起作用。

huangapple
  • 本文由 发表于 2023年2月26日 21:53:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/75572462.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定