在 Azure VM 外部(公开)访问 SonarQube 端口 9000

Access SonarQube Port 9000 outside (publicly) the Azure VM

我在 Azure VM (Windows) 上配置了 SonarQube。一切都按预期工作。唯一的问题是我无法在我的 Azure VM 之外访问 SonarQube 门户。我在防火墙和子网 NSG 中将端口列入白名单,但没有用。我尝试通过 VM Public IP 和 DNS 访问它,但 none 有效。

端口:9000

是否需要任何特定配置?

如果在 Azure VM 上配置 SonarQube 后一切都按预期工作 (Windows)。您应该通过打开浏览器并打开 http://localhost:9000/.

来查看声纳主屏幕

确保向 Windows 防火墙添加规则。您可以在 Azure VM 上以管理员身份打开命令提示符并运行以下命令。

netsh advfirewall firewall add rule name=Sonar dir=in action=allow protocol=TCP localport=9000

在 NSG 中添加入站安全规则。

那么您应该可以通过http://<public IP address of VM>:9000访问它。

您可以获得更多详细信息here,如果您有任何问题,请告诉我。