Should/Can 您 运行 Node-OPCUA 服务器 运行 宁在 Azure 上?

Should/Can you run Node-OPCUA Server running on Azure?

我部署了我的 OPC 服务器(使用 Node.js node-opcua) on Azure as a WebApp and its running. I also got the opc.tcp address (eg. opc.tcp://somenumbers:4840/UA/INDUSTRIE4.0) . When I try to connect to it with UaExpert 我得到这个错误:

Discovery FindServersOnNetwork on opc.tcp://somenumbers:4840 failed (BadHostUnknown), falling back to FindServers

[uastack] OpcUa_P_ParseUrl: OpcUa_P_RawSocket_InetAddr reports error 0x81060000.

我做错了什么? Azure 上的 TCP 连接是否只能在同一网络中使用?

答案是:只有tcp的80和443端口在azure web app上是开放的。您需要的是虚拟机或在网络选项中激活 VNET。这只有在您拥有 Windows 机器时才有可能。

是的,正如您在回答中所说,端口 80 和 443 已为 Web 应用程序开放。

除了您的虚拟机选项之外,您还应该能够设置容器。 像 Azure 容器实例或 Service Fabric 网格容器。 (如果你不想 运行 像 aks 这样的集群)。