# How to enable an OPC UA Server running in an Azure Container Instance?

**URL:** <https://discourse.nodered.org/t/how-to-enable-an-opc-ua-server-running-in-an-azure-container-instance/42080>\
**Category:** General\
**Created:** [5 March 2021 10:25 UTC](https://discourse.nodered.org/t/how-to-enable-an-opc-ua-server-running-in-an-azure-container-instance/42080 "2021-03-05T10:25:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobiaspe](https://avatars.discourse-cdn.com/v4/letter/t/8edcca/32.png) [@tobiaspe](https://discourse.nodered.org/u/tobiaspe)\
**Post date:** [5 March 2021 10:25 UTC](https://discourse.nodered.org/t/how-to-enable-an-opc-ua-server-running-in-an-azure-container-instance/42080/1 "2021-03-05T10:25:46Z")

</div>

I am building an IIoT demo bundle using Factory IO, an OPC UA Server and additional edge computing SW to retrieve relevant OPC UA tags.

I found that the easiest, most controllable way to set up an OPC UA Server is by using the nodes in the nodre-red-contrib-opcua module in Node-Red.

I have deployed the ACI running Node-Red using the Azure CLI script as:

`az container create -g MyResourceGroup --name opcuaserver --image nodered/node-red --ip-address public --ports 80 1880 53530` , intended to dedicate the 53530 port for opc.tcp traffic.

In the Node-Red flow I use the modules OPC UA Server and OPC UA Client.

I need to be able to connect to the OPC UA Server on the endpoint `opc.tcp://20.72.191.16:53530/UA/Server` from external OPC UA Clients.

When I try to access the OPC UA Server using OPC UA Client nodes using either 127.0.0.1 or the public ACI IP adress of 20.72.191.16 as part of the endpoint, I am not able to connect. I am yet doing this with nodes within the ACI so far.

The peculiar error message reads: "Invalid endpoint : Configuration error : the certificate and private key do not match.

I find that strange since the OPC UA Server node is set to "Auto Accept Unknown Certificates" in the node settings. Where else can that kind of setting be changed?

I would be very grateful for any hints on how to access an OPC UA Server running in Node-Red in an ACI from an external party.

 ![Screenshot (302)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/b/3b76f1dfc289b1c6cd9504ec02c2ba9bf3e66615.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [4 May 2021 10:26 UTC](https://discourse.nodered.org/t/how-to-enable-an-opc-ua-server-running-in-an-azure-container-instance/42080/2 "2021-05-04T10:26:06Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
