略過導覽

Azure 快速入門範本目前提供英文版

Azure Digital Twins with Time Data History Connection

jeffyou543 提供
上次更新日期: 2022/7/10

This template creates an Azure Digital Twins instance configured with a time series data history connection. In order to create a connection, other resources must be created such as an Event Hubs namespace, an event hub, Azure Data Explorer cluster, and a database. Data is sent to an event hub which eventually forwards the data to the Azure Data Explorer cluster. Data is stored in a database table in the cluster

此 Azure Resource Manager (ARM) 範本是由社群成員 (而非 Microsoft) 建立。每個 ARM 範本都是由其擁有者 (而非 Microsoft) 依據授權合約授權給您。Microsoft 並不負責社群成員所提供和授權的 ARM 範本,而不會為了安全性、相容性或效能進行篩選。社群 ARM 範本並未依據任何 Microsoft 支援方案或服務提供支援,而且會在沒有任何擔保的情況下依現況提供。

參數

參數名稱 說明
digitalTwinsName Name given to Digital Twins resource
eventHubsNamespaceName Name given to Event Hubs namespace resource
eventHubName Name given to event hub resource
adxClusterName Name given to Azure Data Explorer cluster resource
databaseName Name given to database
databaseTableName Name given to table in database
eventHubsNamespacePlan Event Hubs namespace SKU option
eventHubsNamespaceTier Event Hubs namespace SKU billing tier
eventHubsNamespaceCapacity Event Hubs throughput units
clusterPlan Azure Data Explorer cluster SKU option
clusterCapacity Azure Data Explorer cluster capacity
clusterTier Azure Data Explorer cluster tier
retentionInDays Number of days to retain data in event hub
partitionCount Number of partitions to create in event hub
hotCachePeriod The time to keep database data in cache
softDeletePeriod The time data is kept in database
principalId The id that will be given data owner permission for the Digital Twins resource
principalType The type of the given principal id
location Location of to be created resources

使用範本

PowerShell

New-AzResourceGroup -Name <resource-group-name> -Location <resource-group-location> #use this command when you need to create a new resource group for your deployment
New-AzResourceGroupDeployment -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.digitaltwins/digitaltwins-with-function-time-series-database-connection/azuredeploy.json
安裝和設定 Azure PowerShell

命令列

az group create --name <resource-group-name> --location <resource-group-location> #use this command when you need to create a new resource group for your deployment
az group deployment create --resource-group <my-resource-group> --template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.digitaltwins/digitaltwins-with-function-time-series-database-connection/azuredeploy.json
安裝和設定 Azure 跨平台命令列介面