首页 > 解决方案 > 如何启用在 Azure 容器实例中运行的 OPC UA 服务器?

问题描述

我正在使用 Factory IO、一个 OPC UA 服务器和其他边缘计算软件构建一个 IIoT 演示包,以检索相关的 OPC UA 标签。

我发现设置 OPC UA 服务器最简单、最可控的方法是使用 Node-Red 中的 nodre-red-contrib-opcua 模块中的节点。

我已使用 Azure CLI 脚本将运行 Node-Red 的 ACI 部署为:

az container create -g MyResourceGroup --name opcuaserver --image nodered/node-red --ip-address public --ports 80 1880 53530,旨在将 53530 端口专用于 opc.tcp 流量。

在 Node-Red 流程中,我使用模块 OPC UA Server 和 OPC UA Client。

我需要能够opc.tcp://20.72.191.16:53530/UA/Server从外部 OPC UA 客户端连接到端点上的 OPC UA 服务器。

当我尝试使用 OPC UA 客户端节点使用 127.0.0.1 或 20.72.191.16 的公共 ACI IP 地址作为端点的一部分访问 OPC UA 服务器时,我无法连接。到目前为止,我只是对 ACI 中的节点执行此操作。

特殊的错误消息显示:“无效的端点:配置错误:证书和私钥不匹配。

我觉得这很奇怪,因为 OPC UA 服务器节点在节点设置中设置为“自动接受未知证书”。这种设置还能在哪里更改?

我将非常感谢有关如何从外部方访问 ACI 中的 Node-Red 中运行的 OPC UA 服务器的任何提示。

在 ACI 中运行的 Node-Red 流

标签: node.jsdockernode-redopc-uaazure-container-instances

解决方案


推荐阅读