共用方式為


Microsoft.TimeSeriesInsights 環境

Bicep 資源定義

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

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

資源格式

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

resource symbolicname 'Microsoft.TimeSeriesInsights/environments@2021-06-30-preview' = {
  location: 'string'
  name: 'string'
  sku: {
    capacity: int
    name: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
  kind: 'string'
  // For remaining properties, see Microsoft.TimeSeriesInsights/environments objects
}

Microsoft.TimeSeriesInsights/environments 物件

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

針對 Gen1,請使用:

{
  kind: 'Gen1'
  properties: {
    dataRetentionTime: 'string'
    partitionKeyProperties: [
      {
        name: 'string'
        type: 'string'
      }
    ]
    storageLimitExceededBehavior: 'string'
  }
}

針對 Gen2,請使用:

{
  kind: 'Gen2'
  properties: {
    storageConfiguration: {
      accountName: 'string'
      managementKey: 'string'
    }
    timeSeriesIdProperties: [
      {
        name: 'string'
        type: 'string'
      }
    ]
    warmStoreConfiguration: {
      dataRetention: 'string'
    }
  }
}

屬性值

CreateOrUpdateTrackedResourcePropertiesTags

名字 描述 價值

Gen1EnvironmentCreateOrUpdateParametersOrGen1EnvironmentResource

名字 描述 價值
環境的種類。 'Gen1' (必要)
性能 用來建立 Gen1 環境的屬性。 Gen1EnvironmentCreationPropertiesOrGen1EnvironmentResourceProperties (必要)

Gen1EnvironmentCreationPropertiesOrGen1EnvironmentResourceProperties

名字 描述 價值
dataRetentionTime ISO8601時間範圍,指定環境事件可供查詢的最小天數。 字串 (必要)
partitionKeyProperties 將用來分割環境中數據的事件屬性清單。 目前僅支援單一分割區索引鍵屬性。 TimeSeriesIdProperty[]
storageLimitExceededBehavior 超過環境容量時,時間序列深入解析服務應採用的行為。 如果指定了 “PauseIngress”,則不會從事件來源讀取新的事件。 如果指定了 「PurgeOldData」,則會繼續讀取新的事件,並將從環境中刪除舊的事件。 默認行為為 PurgeOldData。 'PauseIngress'
'PurgeOldData'

Gen2EnvironmentCreateOrUpdateParametersOrGen2EnvironmentResource

名字 描述 價值
環境的種類。 'Gen2' (必要)
性能 用來建立 Gen2 環境的屬性。 Gen2EnvironmentCreationPropertiesOrGen2EnvironmentResourceProperties (必要)

Gen2EnvironmentCreationPropertiesOrGen2EnvironmentResourceProperties

名字 描述 價值
storageConfiguration 記憶體組態提供連線詳細數據,可讓時間序列深入解析服務連線到用來儲存環境數據的客戶記憶體帳戶。 Gen2StorageConfigurationInputOrGen2StorageConfigurationOutput (必要)
timeSeriesIdProperties 將用來定義環境時間序列識別碼的事件屬性清單。 TimeSeriesIdProperty[] (必要)
warmStoreConfiguration 暖存放區組態會提供詳細數據,以建立暖存放區快取,以保留可供更快速查詢的環境數據復本。 WarmStoreConfigurationProperties

Gen2StorageConfigurationInputOrGen2StorageConfigurationOutput

名字 描述 價值
accountName 將保存環境 Gen2 資料的記憶體帳戶名稱。 字串 (必要)
managementKey 授與時間序列深入解析服務寫入記憶體帳戶之管理金鑰的值。 這個屬性不會顯示在環境回應中。 字串 (必要)

Microsoft.TimeSeriesInsights/environments

名字 描述 價值
將 類型設定為 'Gen1' Gen1EnvironmentCreateOrUpdateParametersOrGen1EnvironmentResource。 針對類型設定為 『Gen2』 Gen2EnvironmentCreateOrUpdateParametersOrGen2EnvironmentResource 'Gen1'
'Gen2' (必要)
位置 資源的位置。 字串 (必要)
名字 資源名稱 字串

約束:
最小長度 = 1
最大長度 = 90
模式 = ^[-\w\._\(\)]+$ (必要)
sku SKU 會決定環境類型,即 Gen1 (S1 或 S2) 或 Gen2 (L1)。 針對 Gen1 環境,SKU 會決定環境的容量、輸入率和計費費率。 Sku (必要)
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤

Sku

名字 描述 價值
能力 SKU 的容量。 針對 Gen1 環境,此值可以變更為在建立環境之後支持相應放大的環境。 int

約束:
最小值 = 1
最大值 = 10 (必要)
名字 此 SKU 的名稱。 'L1'
'P1'
'S1'
'S2' (必要)

TimeSeriesIdProperty

名字 描述 價值
名字 屬性的名稱。 字串
類型 屬性的類型。 'String'

WarmStoreConfigurationProperties

名字 描述 價值
dataRetention ISO8601時間範圍,指定環境事件可從暖存放區查詢的天數。 字串 (必要)

ARM 樣本資源定義

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

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

資源格式

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

{
  "location": "string",
  "name": "string",
  "sku": {
    "capacity": "int",
    "name": "string"
  },
  "tags": {
    "{customized property}": "string"
  },
  "kind": "string"
  // For remaining properties, see Microsoft.TimeSeriesInsights/environments objects
}

Microsoft.TimeSeriesInsights/environments 物件

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

針對 Gen1,請使用:

{
  "kind": "Gen1",
  "properties": {
    "dataRetentionTime": "string",
    "partitionKeyProperties": [
      {
        "name": "string",
        "type": "string"
      }
    ],
    "storageLimitExceededBehavior": "string"
  }
}

針對 Gen2,請使用:

{
  "kind": "Gen2",
  "properties": {
    "storageConfiguration": {
      "accountName": "string",
      "managementKey": "string"
    },
    "timeSeriesIdProperties": [
      {
        "name": "string",
        "type": "string"
      }
    ],
    "warmStoreConfiguration": {
      "dataRetention": "string"
    }
  }
}

屬性值

CreateOrUpdateTrackedResourcePropertiesTags

名字 描述 價值

Gen1EnvironmentCreateOrUpdateParametersOrGen1EnvironmentResource

名字 描述 價值
環境的種類。 'Gen1' (必要)
性能 用來建立 Gen1 環境的屬性。 Gen1EnvironmentCreationPropertiesOrGen1EnvironmentResourceProperties (必要)

Gen1EnvironmentCreationPropertiesOrGen1EnvironmentResourceProperties

名字 描述 價值
dataRetentionTime ISO8601時間範圍,指定環境事件可供查詢的最小天數。 字串 (必要)
partitionKeyProperties 將用來分割環境中數據的事件屬性清單。 目前僅支援單一分割區索引鍵屬性。 TimeSeriesIdProperty[]
storageLimitExceededBehavior 超過環境容量時,時間序列深入解析服務應採用的行為。 如果指定了 “PauseIngress”,則不會從事件來源讀取新的事件。 如果指定了 「PurgeOldData」,則會繼續讀取新的事件,並將從環境中刪除舊的事件。 默認行為為 PurgeOldData。 'PauseIngress'
'PurgeOldData'

Gen2EnvironmentCreateOrUpdateParametersOrGen2EnvironmentResource

名字 描述 價值
環境的種類。 'Gen2' (必要)
性能 用來建立 Gen2 環境的屬性。 Gen2EnvironmentCreationPropertiesOrGen2EnvironmentResourceProperties (必要)

Gen2EnvironmentCreationPropertiesOrGen2EnvironmentResourceProperties

名字 描述 價值
storageConfiguration 記憶體組態提供連線詳細數據,可讓時間序列深入解析服務連線到用來儲存環境數據的客戶記憶體帳戶。 Gen2StorageConfigurationInputOrGen2StorageConfigurationOutput (必要)
timeSeriesIdProperties 將用來定義環境時間序列識別碼的事件屬性清單。 TimeSeriesIdProperty[] (必要)
warmStoreConfiguration 暖存放區組態會提供詳細數據,以建立暖存放區快取,以保留可供更快速查詢的環境數據復本。 WarmStoreConfigurationProperties

Gen2StorageConfigurationInputOrGen2StorageConfigurationOutput

名字 描述 價值
accountName 將保存環境 Gen2 資料的記憶體帳戶名稱。 字串 (必要)
managementKey 授與時間序列深入解析服務寫入記憶體帳戶之管理金鑰的值。 這個屬性不會顯示在環境回應中。 字串 (必要)

Microsoft.TimeSeriesInsights/environments

名字 描述 價值
apiVersion API 版本 '2021-06-30-preview'
將 類型設定為 'Gen1' Gen1EnvironmentCreateOrUpdateParametersOrGen1EnvironmentResource。 針對類型設定為 『Gen2』 Gen2EnvironmentCreateOrUpdateParametersOrGen2EnvironmentResource 'Gen1'
'Gen2' (必要)
位置 資源的位置。 字串 (必要)
名字 資源名稱 字串

約束:
最小長度 = 1
最大長度 = 90
模式 = ^[-\w\._\(\)]+$ (必要)
sku SKU 會決定環境類型,即 Gen1 (S1 或 S2) 或 Gen2 (L1)。 針對 Gen1 環境,SKU 會決定環境的容量、輸入率和計費費率。 Sku (必要)
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
類型 資源類型 'Microsoft.TimeSeriesInsights/environments'

Sku

名字 描述 價值
能力 SKU 的容量。 針對 Gen1 環境,此值可以變更為在建立環境之後支持相應放大的環境。 int

約束:
最小值 = 1
最大值 = 10 (必要)
名字 此 SKU 的名稱。 'L1'
'P1'
'S1'
'S2' (必要)

TimeSeriesIdProperty

名字 描述 價值
名字 屬性的名稱。 字串
類型 屬性的類型。 'String'

WarmStoreConfigurationProperties

名字 描述 價值
dataRetention ISO8601時間範圍,指定環境事件可從暖存放區查詢的天數。 字串 (必要)

快速入門範本

下列快速入門範本會部署此資源類型。

範本 描述
使用IoT中樞建立隨用隨付環境

部署至 Azure
此範本可讓您部署已設定為取用 IoT 中樞事件的隨用隨付時間序列深入解析環境。
使用事件中樞事件來源建立環境

部署至 Azure
此範本可讓您部署已設定為取用事件中樞事件的時間序列深入解析環境。

Terraform (AzAPI 提供者) 資源定義

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

  • 資源群組

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

資源格式

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

resource "azapi_resource" "symbolicname" {
  location = "string"
  name = "string"
  sku = {
    capacity = int
    name = "string"
  }
  tags = {
    {customized property} = "string"
  }
  kind = "string"
  // For remaining properties, see Microsoft.TimeSeriesInsights/environments objects
}

Microsoft.TimeSeriesInsights/environments 物件

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

針對 Gen1,請使用:

{
  kind = "Gen1"
  properties = {
    dataRetentionTime = "string"
    partitionKeyProperties = [
      {
        name = "string"
        type = "string"
      }
    ]
    storageLimitExceededBehavior = "string"
  }
}

針對 Gen2,請使用:

{
  kind = "Gen2"
  properties = {
    storageConfiguration = {
      accountName = "string"
      managementKey = "string"
    }
    timeSeriesIdProperties = [
      {
        name = "string"
        type = "string"
      }
    ]
    warmStoreConfiguration = {
      dataRetention = "string"
    }
  }
}

屬性值

CreateOrUpdateTrackedResourcePropertiesTags

名字 描述 價值

Gen1EnvironmentCreateOrUpdateParametersOrGen1EnvironmentResource

名字 描述 價值
環境的種類。 'Gen1' (必要)
性能 用來建立 Gen1 環境的屬性。 Gen1EnvironmentCreationPropertiesOrGen1EnvironmentResourceProperties (必要)

Gen1EnvironmentCreationPropertiesOrGen1EnvironmentResourceProperties

名字 描述 價值
dataRetentionTime ISO8601時間範圍,指定環境事件可供查詢的最小天數。 字串 (必要)
partitionKeyProperties 將用來分割環境中數據的事件屬性清單。 目前僅支援單一分割區索引鍵屬性。 TimeSeriesIdProperty[]
storageLimitExceededBehavior 超過環境容量時,時間序列深入解析服務應採用的行為。 如果指定了 “PauseIngress”,則不會從事件來源讀取新的事件。 如果指定了 「PurgeOldData」,則會繼續讀取新的事件,並將從環境中刪除舊的事件。 默認行為為 PurgeOldData。 'PauseIngress'
'PurgeOldData'

Gen2EnvironmentCreateOrUpdateParametersOrGen2EnvironmentResource

名字 描述 價值
環境的種類。 'Gen2' (必要)
性能 用來建立 Gen2 環境的屬性。 Gen2EnvironmentCreationPropertiesOrGen2EnvironmentResourceProperties (必要)

Gen2EnvironmentCreationPropertiesOrGen2EnvironmentResourceProperties

名字 描述 價值
storageConfiguration 記憶體組態提供連線詳細數據,可讓時間序列深入解析服務連線到用來儲存環境數據的客戶記憶體帳戶。 Gen2StorageConfigurationInputOrGen2StorageConfigurationOutput (必要)
timeSeriesIdProperties 將用來定義環境時間序列識別碼的事件屬性清單。 TimeSeriesIdProperty[] (必要)
warmStoreConfiguration 暖存放區組態會提供詳細數據,以建立暖存放區快取,以保留可供更快速查詢的環境數據復本。 WarmStoreConfigurationProperties

Gen2StorageConfigurationInputOrGen2StorageConfigurationOutput

名字 描述 價值
accountName 將保存環境 Gen2 資料的記憶體帳戶名稱。 字串 (必要)
managementKey 授與時間序列深入解析服務寫入記憶體帳戶之管理金鑰的值。 這個屬性不會顯示在環境回應中。 字串 (必要)

Microsoft.TimeSeriesInsights/environments

名字 描述 價值
將 類型設定為 'Gen1' Gen1EnvironmentCreateOrUpdateParametersOrGen1EnvironmentResource。 針對類型設定為 『Gen2』 Gen2EnvironmentCreateOrUpdateParametersOrGen2EnvironmentResource 'Gen1'
'Gen2' (必要)
位置 資源的位置。 字串 (必要)
名字 資源名稱 字串

約束:
最小長度 = 1
最大長度 = 90
模式 = ^[-\w\._\(\)]+$ (必要)
sku SKU 會決定環境類型,即 Gen1 (S1 或 S2) 或 Gen2 (L1)。 針對 Gen1 環境,SKU 會決定環境的容量、輸入率和計費費率。 Sku (必要)
標籤 資源標籤 標記名稱和值的字典。
類型 資源類型 “Microsoft.TimeSeriesInsights/environments@2021-06-30-preview”

Sku

名字 描述 價值
能力 SKU 的容量。 針對 Gen1 環境,此值可以變更為在建立環境之後支持相應放大的環境。 int

約束:
最小值 = 1
最大值 = 10 (必要)
名字 此 SKU 的名稱。 'L1'
'P1'
'S1'
'S2' (必要)

TimeSeriesIdProperty

名字 描述 價值
名字 屬性的名稱。 字串
類型 屬性的類型。 'String'

WarmStoreConfigurationProperties

名字 描述 價值
dataRetention ISO8601時間範圍,指定環境事件可從暖存放區查詢的天數。 字串 (必要)