[英]How to create Azure DigitalTwin models,relationships and twins using ARM templates?
Is there a way to deploy the Azure Digital twin models,relationships and twins using ARM template.有没有办法使用 ARM 模板部署 Azure 数字孪生模型、关系和孪生。
As mentioned, creating models, twins, and relationships is considered a 'data plane' operation and is not available via ARM.如前所述,创建模型、孪生和关系被视为“数据平面”操作,不能通过 ARM 获得。 You need to use SDKs, AZ CLI, or REST.
您需要使用 SDK、AZ CLI 或 REST。
However, you can do those things via a "post deployment script" from an ARM deployment.但是,您可以通过 ARM 部署中的“部署后脚本”来执行这些操作。 For an example of how do that, see this deployment which has an ARM template that deploys the ADT instance (among other things) and then pre-creates a twin graph via a bash post-deployment script (despite it ending in.ps1, which is an error).
有关如何执行此操作的示例,请参阅此部署,该部署具有 ARM 模板,该模板部署 ADT 实例(除其他外),然后通过 bash 部署后脚本预先创建双图(尽管它以.ps1 结尾,是一个错误)。
https://github.com/Azure-Samples/digital-twins-samples/tree/master/HandsOnLab/deployment https://github.com/Azure-Samples/digital-twins-samples/tree/master/HandsOnLab/deployment
No, ARM templates are used to deploy infrastructure.不,ARM 模板用于部署基础架构。
Azure Digital Twin models are deployed through SDKs, az cli commands and REST API calls. Azure 数字孪生模型通过 SDK、az cli 命令和 REST API 调用部署。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.