共用方式為


Microsoft.TimeSeriesInsights 環境/eventSources 2020-05-15

Bicep 資源定義

環境/eventSources 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.TimeSeriesInsights/environments/eventSources 資源,請將下列 Bicep 新增至範本。

resource symbolicname 'Microsoft.TimeSeriesInsights/environments/eventSources@2020-05-15' = {
  localTimestamp: {
    format: 'string'
    timeZoneOffset: {
      propertyName: 'string'
    }
  }
  location: 'string'
  name: 'string'
  tags: {
    {customized property}: 'string'
  }
  kind: 'string'
  // For remaining properties, see Microsoft.TimeSeriesInsights/environments/eventSources objects
}

Microsoft.TimeSeriesInsights/environments/eventSources 物件

設定 種類 屬性,以指定對象的類型。

針對 Microsoft.EventHub,請使用:

{
  kind: 'Microsoft.EventHub'
  properties: {
    consumerGroupName: 'string'
    eventHubName: 'string'
    eventSourceResourceId: 'string'
    ingressStartAt: {
      time: 'string'
      type: 'string'
    }
    keyName: 'string'
    localTimestamp: {
      format: 'string'
      timeZoneOffset: {
        propertyName: 'string'
      }
    }
    serviceBusNamespace: 'string'
    sharedAccessKey: 'string'
    timestampPropertyName: 'string'
  }
}

針對 Microsoft.IoTHub,請使用:

{
  kind: 'Microsoft.IoTHub'
  properties: {
    consumerGroupName: 'string'
    eventSourceResourceId: 'string'
    ingressStartAt: {
      time: 'string'
      type: 'string'
    }
    iotHubName: 'string'
    keyName: 'string'
    localTimestamp: {
      format: 'string'
      timeZoneOffset: {
        propertyName: 'string'
      }
    }
    sharedAccessKey: 'string'
    timestampPropertyName: 'string'
  }
}

屬性值

CreateOrUpdateTrackedResourcePropertiesTags

名字 描述 價值

EventHubEventSourceCreateOrUpdateParametersOrEventHubEventSourceResource

名字 描述 價值
事件來源的種類。 'Microsoft.EventHub' (必要)
性能 建立或更新要求所需的 EventHub 事件來源屬性。 EventHubEventSourceCreationPropertiesOrEventHubEventSourceResourceProperties (必要)

EventHubEventSourceCreationPropertiesOrEventHubEventSourceResourceProperties

名字 描述 價值
consumerGroupName 事件中樞取用者群組的名稱,此群組會保存要從中讀取事件的數據分割。 字串 (必要)
eventHubName 事件中樞的名稱。 字串 (必要)
eventSourceResourceId Azure Resource Manager 中事件來源的資源標識碼。 字串 (必要)
ingressStartAt 物件,其中包含擷取事件起點的詳細數據。 IngressStartAtProperties
keyName 授與事件中樞之時間序列深入解析服務存取權的SAS 金鑰名稱。 此金鑰的共用存取原則必須授與事件中樞的「接聽」許可權。 字串 (必要)
localTimestamp 物件,表示本機時間戳屬性。 其中包含需要使用的本機時間戳格式,以及對應的時區位移資訊。 如果未為localTimestamp指定值,或為 null,則不會使用事件輸入本機時間戳。 LocalTimestamp
serviceBusNamespace 包含事件中樞的服務總線名稱。 字串 (必要)
sharedAccessKey 授與時間序列深入解析服務讀取事件中樞之共用存取金鑰的值。 這個屬性不會顯示在事件來源回應中。 字串 (必要)
timestampPropertyName 將做為事件來源時間戳的事件屬性。 如果未為 timestampPropertyName 指定值,或指定 null 或空字串,則會使用事件建立時間。 字串

IngressStartAtProperties

名字 描述 價值
時間 ISO8601具有秒精確度的 UTC 日期時間(毫秒是選擇性的),指定要取用事件的日期和時間。 字串
類型 ingressStartAt 的類型,它可以是 “EarliestAvailable”、“EventSourceCreationTime”、“CustomEnqueuedTime”。 'CustomEnqueuedTime'
'EarliestAvailable'
'EventSourceCreationTime'

IoTHubEventSourceCreateOrUpdateParametersOrIoTHubEventSourceResource

名字 描述 價值
事件來源的種類。 'Microsoft.IoTHub' (必要)
性能 建立或更新要求所需的IoTHub事件來源屬性。 IoTHubEventSourceCreationPropertiesOrIoTHubEventSourceResourceProperties (必要)

IoTHubEventSourceCreationPropertiesOrIoTHubEventSourceResourceProperties

名字 描述 價值
consumerGroupName iot 中樞取用者群組的名稱,該群組會保存要從中讀取事件的數據分割。 字串 (必要)
eventSourceResourceId Azure Resource Manager 中事件來源的資源標識碼。 字串 (必要)
ingressStartAt 物件,其中包含擷取事件起點的詳細數據。 IngressStartAtProperties
iotHubName iot 中樞的名稱。 字串 (必要)
keyName 授與 iot 中樞之時間序列深入解析服務存取權的共用存取原則密鑰名稱。 此共用存取原則密鑰必須授與 iot 中樞的「服務連線」許可權。 字串 (必要)
localTimestamp 物件,表示本機時間戳屬性。 其中包含需要使用的本機時間戳格式,以及對應的時區位移資訊。 如果未為localTimestamp指定值,或為 null,則不會使用事件輸入本機時間戳。 LocalTimestamp
sharedAccessKey 授與時間序列深入解析服務對 iot 中樞讀取許可權的共用存取原則密鑰值。 這個屬性不會顯示在事件來源回應中。 字串 (必要)
timestampPropertyName 將做為事件來源時間戳的事件屬性。 如果未為 timestampPropertyName 指定值,或指定 null 或空字串,則會使用事件建立時間。 字串

LocalTimestamp

名字 描述 價值
格式 列舉,表示需要設定之本機時間戳屬性的格式。 'Embedded'
timeZoneOffset 物件,表示指定之本機時間戳格式的位移資訊。 不應該為 LocalTimestampFormat - Embedded 指定。 LocalTimestampTimeZoneOffset

LocalTimestampTimeZoneOffset

名字 描述 價值
propertyName 將包含要計算本機時間戳之位移資訊的事件屬性。 當 LocalTimestampFormat 是 Iana 時,屬性名稱會包含包含 IANA 時區名稱的數據行名稱(例如:Americas/Los Angeles)。 當 LocalTimestampFormat 是 Timespan 時,它包含屬性的名稱,其中包含代表位移的值(例如:P1D 或 1.00:00:00) 字串

Microsoft.TimeSeriesInsights/environments/eventSources

名字 描述 價值
針對 eventHubEventSourceCreateOrUpdateParametersOrEventHubEventSourceResource類型,設定為 'Microsoft.EventHub'。 針對類型 IoTHubEventSourceCreateOrUpdateParametersOrIoTHubEventSourceResource,設定為 'Microsoft.IoTHub'。 'Microsoft.EventHub'
'Microsoft.IoTHub' (必要)
localTimestamp 物件,表示本機時間戳屬性。 其中包含需要使用的本機時間戳格式,以及對應的時區位移資訊。 如果未為localTimestamp指定值,或為 null,則不會使用事件輸入本機時間戳。 LocalTimestamp
位置 資源的位置。 字串 (必要)
名字 資源名稱 字串

約束:
最小長度 = 1
最大長度 = 90
模式 = ^[-\w\._\(\)]+$ (必要)
父母 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源
類型的資源符號名稱:環境
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤

ARM 樣本資源定義

環境/eventSources 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.TimeSeriesInsights/environments/eventSources 資源,請將下列 JSON 新增至範本。

{
  "localTimestamp": {
    "format": "string",
    "timeZoneOffset": {
      "propertyName": "string"
    }
  },
  "location": "string",
  "name": "string",
  "tags": {
    "{customized property}": "string"
  },
  "kind": "string"
  // For remaining properties, see Microsoft.TimeSeriesInsights/environments/eventSources objects
}

Microsoft.TimeSeriesInsights/environments/eventSources 物件

設定 種類 屬性,以指定對象的類型。

針對 Microsoft.EventHub,請使用:

{
  "kind": "Microsoft.EventHub",
  "properties": {
    "consumerGroupName": "string",
    "eventHubName": "string",
    "eventSourceResourceId": "string",
    "ingressStartAt": {
      "time": "string",
      "type": "string"
    },
    "keyName": "string",
    "localTimestamp": {
      "format": "string",
      "timeZoneOffset": {
        "propertyName": "string"
      }
    },
    "serviceBusNamespace": "string",
    "sharedAccessKey": "string",
    "timestampPropertyName": "string"
  }
}

針對 Microsoft.IoTHub,請使用:

{
  "kind": "Microsoft.IoTHub",
  "properties": {
    "consumerGroupName": "string",
    "eventSourceResourceId": "string",
    "ingressStartAt": {
      "time": "string",
      "type": "string"
    },
    "iotHubName": "string",
    "keyName": "string",
    "localTimestamp": {
      "format": "string",
      "timeZoneOffset": {
        "propertyName": "string"
      }
    },
    "sharedAccessKey": "string",
    "timestampPropertyName": "string"
  }
}

屬性值

CreateOrUpdateTrackedResourcePropertiesTags

名字 描述 價值

EventHubEventSourceCreateOrUpdateParametersOrEventHubEventSourceResource

名字 描述 價值
事件來源的種類。 'Microsoft.EventHub' (必要)
性能 建立或更新要求所需的 EventHub 事件來源屬性。 EventHubEventSourceCreationPropertiesOrEventHubEventSourceResourceProperties (必要)

EventHubEventSourceCreationPropertiesOrEventHubEventSourceResourceProperties

名字 描述 價值
consumerGroupName 事件中樞取用者群組的名稱,此群組會保存要從中讀取事件的數據分割。 字串 (必要)
eventHubName 事件中樞的名稱。 字串 (必要)
eventSourceResourceId Azure Resource Manager 中事件來源的資源標識碼。 字串 (必要)
ingressStartAt 物件,其中包含擷取事件起點的詳細數據。 IngressStartAtProperties
keyName 授與事件中樞之時間序列深入解析服務存取權的SAS 金鑰名稱。 此金鑰的共用存取原則必須授與事件中樞的「接聽」許可權。 字串 (必要)
localTimestamp 物件,表示本機時間戳屬性。 其中包含需要使用的本機時間戳格式,以及對應的時區位移資訊。 如果未為localTimestamp指定值,或為 null,則不會使用事件輸入本機時間戳。 LocalTimestamp
serviceBusNamespace 包含事件中樞的服務總線名稱。 字串 (必要)
sharedAccessKey 授與時間序列深入解析服務讀取事件中樞之共用存取金鑰的值。 這個屬性不會顯示在事件來源回應中。 字串 (必要)
timestampPropertyName 將做為事件來源時間戳的事件屬性。 如果未為 timestampPropertyName 指定值,或指定 null 或空字串,則會使用事件建立時間。 字串

IngressStartAtProperties

名字 描述 價值
時間 ISO8601具有秒精確度的 UTC 日期時間(毫秒是選擇性的),指定要取用事件的日期和時間。 字串
類型 ingressStartAt 的類型,它可以是 “EarliestAvailable”、“EventSourceCreationTime”、“CustomEnqueuedTime”。 'CustomEnqueuedTime'
'EarliestAvailable'
'EventSourceCreationTime'

IoTHubEventSourceCreateOrUpdateParametersOrIoTHubEventSourceResource

名字 描述 價值
事件來源的種類。 'Microsoft.IoTHub' (必要)
性能 建立或更新要求所需的IoTHub事件來源屬性。 IoTHubEventSourceCreationPropertiesOrIoTHubEventSourceResourceProperties (必要)

IoTHubEventSourceCreationPropertiesOrIoTHubEventSourceResourceProperties

名字 描述 價值
consumerGroupName iot 中樞取用者群組的名稱,該群組會保存要從中讀取事件的數據分割。 字串 (必要)
eventSourceResourceId Azure Resource Manager 中事件來源的資源標識碼。 字串 (必要)
ingressStartAt 物件,其中包含擷取事件起點的詳細數據。 IngressStartAtProperties
iotHubName iot 中樞的名稱。 字串 (必要)
keyName 授與 iot 中樞之時間序列深入解析服務存取權的共用存取原則密鑰名稱。 此共用存取原則密鑰必須授與 iot 中樞的「服務連線」許可權。 字串 (必要)
localTimestamp 物件,表示本機時間戳屬性。 其中包含需要使用的本機時間戳格式,以及對應的時區位移資訊。 如果未為localTimestamp指定值,或為 null,則不會使用事件輸入本機時間戳。 LocalTimestamp
sharedAccessKey 授與時間序列深入解析服務對 iot 中樞讀取許可權的共用存取原則密鑰值。 這個屬性不會顯示在事件來源回應中。 字串 (必要)
timestampPropertyName 將做為事件來源時間戳的事件屬性。 如果未為 timestampPropertyName 指定值,或指定 null 或空字串,則會使用事件建立時間。 字串

LocalTimestamp

名字 描述 價值
格式 列舉,表示需要設定之本機時間戳屬性的格式。 'Embedded'
timeZoneOffset 物件,表示指定之本機時間戳格式的位移資訊。 不應該為 LocalTimestampFormat - Embedded 指定。 LocalTimestampTimeZoneOffset

LocalTimestampTimeZoneOffset

名字 描述 價值
propertyName 將包含要計算本機時間戳之位移資訊的事件屬性。 當 LocalTimestampFormat 是 Iana 時,屬性名稱會包含包含 IANA 時區名稱的數據行名稱(例如:Americas/Los Angeles)。 當 LocalTimestampFormat 是 Timespan 時,它包含屬性的名稱,其中包含代表位移的值(例如:P1D 或 1.00:00:00) 字串

Microsoft.TimeSeriesInsights/environments/eventSources

名字 描述 價值
apiVersion API 版本 '2020-05-15'
針對 eventHubEventSourceCreateOrUpdateParametersOrEventHubEventSourceResource類型,設定為 'Microsoft.EventHub'。 針對類型 IoTHubEventSourceCreateOrUpdateParametersOrIoTHubEventSourceResource,設定為 'Microsoft.IoTHub'。 'Microsoft.EventHub'
'Microsoft.IoTHub' (必要)
localTimestamp 物件,表示本機時間戳屬性。 其中包含需要使用的本機時間戳格式,以及對應的時區位移資訊。 如果未為localTimestamp指定值,或為 null,則不會使用事件輸入本機時間戳。 LocalTimestamp
位置 資源的位置。 字串 (必要)
名字 資源名稱 字串

約束:
最小長度 = 1
最大長度 = 90
模式 = ^[-\w\._\(\)]+$ (必要)
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
類型 資源類型 'Microsoft.TimeSeriesInsights/environments/eventSources'

Terraform (AzAPI 提供者) 資源定義

環境/eventSources 資源類型可以使用目標作業來部署:

  • 資源群組

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.TimeSeriesInsights/environments/eventSources 資源,請將下列 Terraform 新增至您的範本。

resource "azapi_resource" "symbolicname" {
  localTimestamp = {
    format = "string"
    timeZoneOffset = {
      propertyName = "string"
    }
  }
  location = "string"
  name = "string"
  tags = {
    {customized property} = "string"
  }
  kind = "string"
  // For remaining properties, see Microsoft.TimeSeriesInsights/environments/eventSources objects
}

Microsoft.TimeSeriesInsights/environments/eventSources 物件

設定 種類 屬性,以指定對象的類型。

針對 Microsoft.EventHub,請使用:

{
  kind = "Microsoft.EventHub"
  properties = {
    consumerGroupName = "string"
    eventHubName = "string"
    eventSourceResourceId = "string"
    ingressStartAt = {
      time = "string"
      type = "string"
    }
    keyName = "string"
    localTimestamp = {
      format = "string"
      timeZoneOffset = {
        propertyName = "string"
      }
    }
    serviceBusNamespace = "string"
    sharedAccessKey = "string"
    timestampPropertyName = "string"
  }
}

針對 Microsoft.IoTHub,請使用:

{
  kind = "Microsoft.IoTHub"
  properties = {
    consumerGroupName = "string"
    eventSourceResourceId = "string"
    ingressStartAt = {
      time = "string"
      type = "string"
    }
    iotHubName = "string"
    keyName = "string"
    localTimestamp = {
      format = "string"
      timeZoneOffset = {
        propertyName = "string"
      }
    }
    sharedAccessKey = "string"
    timestampPropertyName = "string"
  }
}

屬性值

CreateOrUpdateTrackedResourcePropertiesTags

名字 描述 價值

EventHubEventSourceCreateOrUpdateParametersOrEventHubEventSourceResource

名字 描述 價值
事件來源的種類。 'Microsoft.EventHub' (必要)
性能 建立或更新要求所需的 EventHub 事件來源屬性。 EventHubEventSourceCreationPropertiesOrEventHubEventSourceResourceProperties (必要)

EventHubEventSourceCreationPropertiesOrEventHubEventSourceResourceProperties

名字 描述 價值
consumerGroupName 事件中樞取用者群組的名稱,此群組會保存要從中讀取事件的數據分割。 字串 (必要)
eventHubName 事件中樞的名稱。 字串 (必要)
eventSourceResourceId Azure Resource Manager 中事件來源的資源標識碼。 字串 (必要)
ingressStartAt 物件,其中包含擷取事件起點的詳細數據。 IngressStartAtProperties
keyName 授與事件中樞之時間序列深入解析服務存取權的SAS 金鑰名稱。 此金鑰的共用存取原則必須授與事件中樞的「接聽」許可權。 字串 (必要)
localTimestamp 物件,表示本機時間戳屬性。 其中包含需要使用的本機時間戳格式,以及對應的時區位移資訊。 如果未為localTimestamp指定值,或為 null,則不會使用事件輸入本機時間戳。 LocalTimestamp
serviceBusNamespace 包含事件中樞的服務總線名稱。 字串 (必要)
sharedAccessKey 授與時間序列深入解析服務讀取事件中樞之共用存取金鑰的值。 這個屬性不會顯示在事件來源回應中。 字串 (必要)
timestampPropertyName 將做為事件來源時間戳的事件屬性。 如果未為 timestampPropertyName 指定值,或指定 null 或空字串,則會使用事件建立時間。 字串

IngressStartAtProperties

名字 描述 價值
時間 ISO8601具有秒精確度的 UTC 日期時間(毫秒是選擇性的),指定要取用事件的日期和時間。 字串
類型 ingressStartAt 的類型,它可以是 “EarliestAvailable”、“EventSourceCreationTime”、“CustomEnqueuedTime”。 'CustomEnqueuedTime'
'EarliestAvailable'
'EventSourceCreationTime'

IoTHubEventSourceCreateOrUpdateParametersOrIoTHubEventSourceResource

名字 描述 價值
事件來源的種類。 'Microsoft.IoTHub' (必要)
性能 建立或更新要求所需的IoTHub事件來源屬性。 IoTHubEventSourceCreationPropertiesOrIoTHubEventSourceResourceProperties (必要)

IoTHubEventSourceCreationPropertiesOrIoTHubEventSourceResourceProperties

名字 描述 價值
consumerGroupName iot 中樞取用者群組的名稱,該群組會保存要從中讀取事件的數據分割。 字串 (必要)
eventSourceResourceId Azure Resource Manager 中事件來源的資源標識碼。 字串 (必要)
ingressStartAt 物件,其中包含擷取事件起點的詳細數據。 IngressStartAtProperties
iotHubName iot 中樞的名稱。 字串 (必要)
keyName 授與 iot 中樞之時間序列深入解析服務存取權的共用存取原則密鑰名稱。 此共用存取原則密鑰必須授與 iot 中樞的「服務連線」許可權。 字串 (必要)
localTimestamp 物件,表示本機時間戳屬性。 其中包含需要使用的本機時間戳格式,以及對應的時區位移資訊。 如果未為localTimestamp指定值,或為 null,則不會使用事件輸入本機時間戳。 LocalTimestamp
sharedAccessKey 授與時間序列深入解析服務對 iot 中樞讀取許可權的共用存取原則密鑰值。 這個屬性不會顯示在事件來源回應中。 字串 (必要)
timestampPropertyName 將做為事件來源時間戳的事件屬性。 如果未為 timestampPropertyName 指定值,或指定 null 或空字串,則會使用事件建立時間。 字串

LocalTimestamp

名字 描述 價值
格式 列舉,表示需要設定之本機時間戳屬性的格式。 'Embedded'
timeZoneOffset 物件,表示指定之本機時間戳格式的位移資訊。 不應該為 LocalTimestampFormat - Embedded 指定。 LocalTimestampTimeZoneOffset

LocalTimestampTimeZoneOffset

名字 描述 價值
propertyName 將包含要計算本機時間戳之位移資訊的事件屬性。 當 LocalTimestampFormat 是 Iana 時,屬性名稱會包含包含 IANA 時區名稱的數據行名稱(例如:Americas/Los Angeles)。 當 LocalTimestampFormat 是 Timespan 時,它包含屬性的名稱,其中包含代表位移的值(例如:P1D 或 1.00:00:00) 字串

Microsoft.TimeSeriesInsights/environments/eventSources

名字 描述 價值
針對 eventHubEventSourceCreateOrUpdateParametersOrEventHubEventSourceResource類型,設定為 'Microsoft.EventHub'。 針對類型 IoTHubEventSourceCreateOrUpdateParametersOrIoTHubEventSourceResource,設定為 'Microsoft.IoTHub'。 'Microsoft.EventHub'
'Microsoft.IoTHub' (必要)
localTimestamp 物件,表示本機時間戳屬性。 其中包含需要使用的本機時間戳格式,以及對應的時區位移資訊。 如果未為localTimestamp指定值,或為 null,則不會使用事件輸入本機時間戳。 LocalTimestamp
位置 資源的位置。 字串 (必要)
名字 資源名稱 字串

約束:
最小長度 = 1
最大長度 = 90
模式 = ^[-\w\._\(\)]+$ (必要)
parent_id 此資源為父系之資源的標識碼。 類型的資源標識碼:環境
標籤 資源標籤 標記名稱和值的字典。
類型 資源類型 “Microsoft.TimeSeriesInsights/environments/eventSources@2020-05-15”