Trouble Connecting External OPC UA Server to Azure IoT Operations in Kubernetes

00407304 0 Reputation points
2025-02-09T22:35:09.34+00:00

Hello,

I am working on a research project related to OPC UA over MQTT and following a tutorial on Azure IoT Operations. My goal is to transfer simulated data from an OPC UA server (Prosys OPC UA Simulation Server) to the cloud.

So far, I have successfully:

  • Set up an Azure Arc-enabled Kubernetes cluster on my local machine (Laptop).
  • Deployed Azure IoT Operations within the cluster.

However, I am facing an issue when trying to connect the external OPC UA server (Prosys OPC UA Simulation Server) to the OPC UA connector in Azure IoT Operations. I used the UA TCP connection address provided by Prosys to add an asset endpoint, but the connection does not work.

I would appreciate any guidance on:

  1. Possible reasons why the external OPC UA server connection is failing.
  2. Configuration steps or troubleshooting methods to resolve this issue.
  3. Any network, firewall, or security settings that need to be adjusted.

Has anyone encountered a similar issue or have insights into how to successfully connect an external OPC UA server to Azure IoT Operations?

Thanks in advance!

Azure IoT Operations
Azure IoT Operations
Azure IoT Operations is a set of modular services enabled by Azure Arc.
37 questions
{count} votes

2 answers

Sort by: Most helpful
  1. VSawhney 0 Reputation points Microsoft Vendor
    2025-02-10T04:58:07.3766667+00:00

    Hello 00407304,

    Thank you for reaching out to Microsoft Q&A Forum.

    Here are some of the steps you can follow for checking the proper connectivity:

    Get the OPC UA Server's Endpoint:

    • Obtain the UA TCP connection address from your Prosys OPC UA Simulation Server.

    Configure the Asset Endpoint in Azure IoT Operations:

    • In the Azure IoT Operations web UI, navigate to the section where you can manage asset endpoints.
    • Add a new asset endpoint and enter the UA TCP connection address of your Prosys OPC UA Simulation Server.

    Set Up Security and Certificates:

    • Ensure that the OPC UA server's application instance certificate is added to the trusted certificates list in Azure IoT Operations. This list is implemented as a Kubernetes native secret named aio-opc-ua-broker-trust-list. Reference 

    Network Configuration:

    • Verify that your Kubernetes cluster has the necessary network access to reach the OPC UA server. This might involve configuring network policies, firewall rules, or VPN connections.

    Monitor and Verify Connection:

    • Once the asset endpoint is configured, monitor the connection status in the Azure IoT Operations web UI.

    Could you please go through above steps and give the error trace if the issue persists.

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful.


  2. Sander van de Velde | MVP 34,766 Reputation points MVP
    2025-02-10T18:18:22.0866667+00:00

    Hello @00407304,

    welcome to this moderated Azure community forum.

    I encountered also a challenge using that same simulation.

    So, I'm also interested in the answer @VSawhney shared.

    Instead, I went for a different approach and write a custom OPC-UA server using C#.

    Check this blog post for both the source code (available on GitHub) and the steps to get it running.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.