将运行Linux的VM连接到Azure IoT中心 [英] Connecting a VM running Linux to an Azure IoT Hub

查看:121
本文介绍了将运行Linux的VM连接到Azure IoT中心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候,

正如标题所述,我有一个运行CentOS Linux 7的VM,由于我已经开发了将IoT HuB与Azure功能链接的系统,因此需要将其连接到IoT HuB.

as the title says I have a VM running CentOS Linux 7, and I need to connect it to an IoT HuB since I already have developed a system chaining the IoT HuB with Azure Functions.

我可以猜测如何从Azure获取公钥/私钥来执行连接,但是我不知道该安装什么,也不知道如何使用VM.

I can guess how can I get the public/private key from Azure to execute the connection, but I do not know what to install nor what to do with the VM.

我已经研究了他们的文档,但是我发现只有具有其他操作系统的IoT设备.

I already looked into their documentation, but I have only found IoT devices with other OS.

谢谢!

推荐答案

您好XavoPls,

Hello XavoPls,

您可以使用 适用于Linux(VM)设备的apt-get软件包.Microsoft创建了在Launchpad平台上发布的apt-get软件包,因此在Linux上使用IoT Hub设备SDK更为简单.请参考资料 这里.

You can use the apt-get packages for Linux(VM) devices.Microsoft has created apt-get packages that are published on the Launchpad platform, it simpler to use the IoT Hub device SDK on Linux. Please refer to document here.

您还可以使用其他在Linux上支持的SDK,例如 python java

You can also use other SDKs which support on Linux, such as python, java, NodeJs

教程显示了如何使用Azure IoT中心门户网站工具和Azure CLI命令来检索连接字符串和测试设备的连接性.

This tutorial shows how to use Azure IoT Hub portal tools and Azure CLI commands to retrieve the connection string and test device connectivity.

最好的问候,

迈克尔


这篇关于将运行Linux的VM连接到Azure IoT中心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆