Microsoft.Insights dataCollectionRuleAssociations
Bicep 資源定義
dataCollectionRuleAssociations 資源類型是 延伸模組資源,這表示您可以將它套用至另一個資源。
scope
使用此資源上的 屬性來設定此資源的範圍。 請參閱 在 Bicep 中設定擴充功能資源的範圍。
dataCollectionRuleAssociations 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.Insights/dataCollectionRuleAssociations 資源,請將下列 Bicep 新增至您的範本。
resource symbolicname 'Microsoft.Insights/dataCollectionRuleAssociations@2022-06-01' = {
name: 'string'
scope: resourceSymbolicName
properties: {
dataCollectionEndpointId: 'string'
dataCollectionRuleId: 'string'
description: 'string'
}
}
屬性值
dataCollectionRuleAssociations
名稱 | 描述 | 值 |
---|---|---|
NAME | 資源名稱 | 字串 (必要) |
範圍 | 在與部署範圍不同的範圍建立擴充資源時,請使用 。 | 目標資源 針對 Bicep,請將此屬性設定為資源的符號名稱,以套用 延伸模組資源。 |
properties | 資源屬性。 | DataCollectionRuleAssociationProxyOnlyResourceProper... |
DataCollectionRuleAssociationProxyOnlyResourceProper...
名稱 | 描述 | 值 |
---|---|---|
dataCollectionEndpointId | 要相關聯的資料收集端點資源識別碼。 | 字串 |
dataCollectionRuleId | 要相關聯的資料收集規則資源識別碼。 | 字串 |
description | 關聯的描述。 | 字串 |
ARM 範本資源定義
dataCollectionRuleAssociations 資源類型是 延伸模組資源,這表示您可以將它套用至另一個資源。
scope
使用此資源上的 屬性來設定此資源的範圍。 請參閱 在 ARM 範本中設定擴充功能資源的範圍。
dataCollectionRuleAssociations 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.Insights/dataCollectionRuleAssociations 資源,請將下列 JSON 新增至您的範本。
{
"type": "Microsoft.Insights/dataCollectionRuleAssociations",
"apiVersion": "2022-06-01",
"name": "string",
"scope": "string",
"properties": {
"dataCollectionEndpointId": "string",
"dataCollectionRuleId": "string",
"description": "string"
}
}
屬性值
dataCollectionRuleAssociations
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | 'Microsoft.Insights/dataCollectionRuleAssociations' |
apiVersion | 資源 API 版本 | '2022-06-01' |
NAME | 資源名稱 | 字串 (必要) |
範圍 | 在與部署範圍不同的範圍建立擴充資源時,請使用 。 | 目標資源 針對 JSON,請將值設定為要套用 擴充資源 的資源完整名稱。 |
properties | 資源屬性。 | DataCollectionRuleAssociationProxyOnlyResourceProper... |
DataCollectionRuleAssociationProxyOnlyResourceProper...
名稱 | 描述 | 值 |
---|---|---|
dataCollectionEndpointId | 要相關聯的資料收集端點資源識別碼。 | 字串 |
dataCollectionRuleId | 要相關聯的資料收集規則資源識別碼。 | 字串 |
description | 關聯的描述。 | 字串 |
Terraform (AzAPI 提供者) 資源定義
dataCollectionRuleAssociations 資源類型是 延伸模組資源,這表示您可以將它套用至另一個資源。
parent_id
使用此資源上的 屬性來設定此資源的範圍。
dataCollectionRuleAssociations 資源類型可以使用目標作業來部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.Insights/dataCollectionRuleAssociations 資源,請將下列 Terraform 新增至您的範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Insights/dataCollectionRuleAssociations@2022-06-01"
name = "string"
parent_id = "string"
body = jsonencode({
properties = {
dataCollectionEndpointId = "string"
dataCollectionRuleId = "string"
description = "string"
}
})
}
屬性值
dataCollectionRuleAssociations
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | 「Microsoft.Insights/dataCollectionRuleAssociations@2022-06-01」 |
NAME | 資源名稱 | 需要字串 () |
parent_id | 要套用此擴充功能資源的資源識別碼。 | 需要字串 () |
properties | 資源屬性。 | DataCollectionRuleAssociationProxyOnlyResourceProper... |
DataCollectionRuleAssociationProxyOnlyResourceProper...
名稱 | 描述 | 值 |
---|---|---|
dataCollectionEndpointId | 要相關聯的資料收集端點資源識別碼。 | 字串 |
dataCollectionRuleId | 要關聯之資料收集規則的資源識別碼。 | 字串 |
description | 關聯的描述。 | 字串 |
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應