gpt4 book ai didi

azure - 使用代码更改edgeAgent和edgeHub的 'createOptions'

转载 作者:行者123 更新时间:2023-12-03 02:36:44 24 4
gpt4 key购买 nike

有没有办法使用代码更改“edgeHub”模块的createOptions

我知道如何使用 Azure 门户执行此操作:设置模块 -> 运行时设置 -> CreateOptions

enter image description here

我可以使用 API 吗?

示例:AzureCLI 具有 az iot Edge deployment create(但它不允许我编辑系统模块:

az iot Edge 部署 create --deployment-id $deploymentId --hub-name $hubName --content $contentPath --target-condition $targetCondition --layered

也许 C# 客户端有办法做到这一点,或者有一个可访问的 REST API。有什么想法吗?

最佳答案

只需使用此命令即可开始:az iot edge set-modules --device-id $deviceId --hub-name $hubName --content $deploymentFilePath另请检查此链接:https://learn.microsoft.com/de-de/azure/iot-edge/how-to-deploy-modules-cli

关于azure - 使用代码更改edgeAgent和edgeHub的 'createOptions',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62902163/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com