Microsoft.OperationalInsights 叢集 2021-06-01

Bicep 資源定義

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

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

使用範例

Bicep 範例

部署 Log Analytics 叢集的基本範例。

param resourceName string = 'acctest0001'
param location string = 'westeurope'

resource cluster 'Microsoft.OperationalInsights/clusters@2020-08-01' = {
  name: resourceName
  location: location
  sku: {
    capacity: 1000
    name: 'CapacityReservation'
  }
}

Azure 已驗證的模組

下列 Azure 驗證模組 可用來部署此資源類型。

模組 說明
Log Analytics 專用叢集 AVM Log Analytics 專用叢集資源模組

資源格式

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

resource symbolicname 'Microsoft.OperationalInsights/clusters@2021-06-01' = {
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  location: 'string'
  name: 'string'
  properties: {
    associatedWorkspaces: [
      {}
    ]
    billingType: 'string'
    capacityReservationProperties: {}
    isAvailabilityZonesEnabled: bool
    isDoubleEncryptionEnabled: bool
    keyVaultProperties: {
      keyName: 'string'
      keyRsaSize: int
      keyVaultUri: 'string'
      keyVersion: 'string'
    }
  }
  sku: {
    capacity: int
    name: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

屬性值

Microsoft.OperationalInsights/clusters

名稱 說明 價值觀
身分識別 資源的身分識別。 身分識別
位置 資源所在的地理位置 字串 (必要)
名稱 資源名稱 字串

約束:
最小長度 = 4
最大長度 = 63
模式 = ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$ (必要)
屬性 Log Analytics 叢集屬性。 ClusterProperties
SKU SKU 屬性。 ClusterSku
標記 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤

AssociatedWorkspace (關聯工作區)

名稱 說明 價值觀

CapacityReservationProperties

名稱 說明 價值觀

ClusterProperties

名稱 說明 價值觀
associatedWorkspaces 與叢集相關聯的Log Analytics工作區清單 AssociatedWorkspace[]
計費類型 叢集的計費類型。 “集群”
“工作區”
capacityReservationProperties 容量保留的其他屬性 CapacityReservationProperties
isAvailabilityZonesEnabled 已啟用 設定叢集是否支援可用性區域。 這隻能在 Azure 資料總管支援可用性區域的區域中設定為 true。 建立叢集之後,就無法修改這個屬性。 如果區域支援可用性區域,預設值為 'true'。 布爾 (bool)
isDoubleEncryptionEnabled 已啟用 設定叢集是否會使用雙重加密。 建立叢集之後,就無法修改這個屬性。 默認值為 'true' 布爾 (bool)
keyVaultProperties 相關聯的索引鍵屬性。 KeyVaultProperties

ClusterSku

名稱 說明 價值觀
容量 容量值 整數 (int)
名稱 SKU 的名稱。 'CapacityReservation'

身份

名稱 說明 價值觀
型別 受控服務識別的類型。 “無”
“系統分配”
'UserAssigned' (必要)
使用者指派的身份 與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 IdentityUserAssignedIdentities

IdentityUserAssignedIdentities

名稱 說明 價值觀

KeyVaultProperties

名稱 說明 價值觀
鍵名稱 與 Log Analytics 叢集相關聯的金鑰名稱。 字串
keyRsaSize 選取的金鑰大小下限。 整數 (int)
keyVaultUri 保存與 Log Analytics 叢集相關聯的金鑰保存庫 URI。 字串
keyVersion 與 Log Analytics 叢集相關聯的金鑰版本。 字串

TrackedResourceTags

名稱 說明 價值觀

UserIdentityProperties

名稱 說明 價值觀

ARM 樣本資源定義

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

使用範例

資源格式

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

{
  "type": "Microsoft.OperationalInsights/clusters",
  "apiVersion": "2021-06-01",
  "name": "string",
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
      }
    }
  },
  "location": "string",
  "properties": {
    "associatedWorkspaces": [
      {
      }
    ],
    "billingType": "string",
    "capacityReservationProperties": {
    },
    "isAvailabilityZonesEnabled": "bool",
    "isDoubleEncryptionEnabled": "bool",
    "keyVaultProperties": {
      "keyName": "string",
      "keyRsaSize": "int",
      "keyVaultUri": "string",
      "keyVersion": "string"
    }
  },
  "sku": {
    "capacity": "int",
    "name": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

屬性值

Microsoft.OperationalInsights/clusters

名稱 說明 價值觀
apiVersion API 版本 '2021-06-01'
身分識別 資源的身分識別。 身分識別
位置 資源所在的地理位置 字串 (必要)
名稱 資源名稱 字串

約束:
最小長度 = 4
最大長度 = 63
模式 = ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$ (必要)
屬性 Log Analytics 叢集屬性。 ClusterProperties
SKU SKU 屬性。 ClusterSku
標記 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
型別 資源類型 “Microsoft.OperationalInsights/clusters”

AssociatedWorkspace (關聯工作區)

名稱 說明 價值觀

CapacityReservationProperties

名稱 說明 價值觀

ClusterProperties

名稱 說明 價值觀
associatedWorkspaces 與叢集相關聯的Log Analytics工作區清單 AssociatedWorkspace[]
計費類型 叢集的計費類型。 “集群”
“工作區”
capacityReservationProperties 容量保留的其他屬性 CapacityReservationProperties
isAvailabilityZonesEnabled 已啟用 設定叢集是否支援可用性區域。 這隻能在 Azure 資料總管支援可用性區域的區域中設定為 true。 建立叢集之後,就無法修改這個屬性。 如果區域支援可用性區域,預設值為 'true'。 布爾 (bool)
isDoubleEncryptionEnabled 已啟用 設定叢集是否會使用雙重加密。 建立叢集之後,就無法修改這個屬性。 默認值為 'true' 布爾 (bool)
keyVaultProperties 相關聯的索引鍵屬性。 KeyVaultProperties

ClusterSku

名稱 說明 價值觀
容量 容量值 整數 (int)
名稱 SKU 的名稱。 'CapacityReservation'

身份

名稱 說明 價值觀
型別 受控服務識別的類型。 “無”
“系統分配”
'UserAssigned' (必要)
使用者指派的身份 與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 IdentityUserAssignedIdentities

IdentityUserAssignedIdentities

名稱 說明 價值觀

KeyVaultProperties

名稱 說明 價值觀
鍵名稱 與 Log Analytics 叢集相關聯的金鑰名稱。 字串
keyRsaSize 選取的金鑰大小下限。 整數 (int)
keyVaultUri 保存與 Log Analytics 叢集相關聯的金鑰保存庫 URI。 字串
keyVersion 與 Log Analytics 叢集相關聯的金鑰版本。 字串

TrackedResourceTags

名稱 說明 價值觀

UserIdentityProperties

名稱 說明 價值觀

Terraform (AzAPI 提供者) 資源定義

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

  • 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。

使用範例

Terraform 範例

部署 Log Analytics 叢集的基本範例。

terraform {
  required_providers {
    azapi = {
      source = "Azure/azapi"
    }
  }
}

provider "azapi" {
  skip_provider_registration = false
}

variable "resource_name" {
  type    = string
  default = "acctest0001"
}

variable "location" {
  type    = string
  default = "westeurope"
}

resource "azapi_resource" "resourceGroup" {
  type     = "Microsoft.Resources/resourceGroups@2020-06-01"
  name     = var.resource_name
  location = var.location
}

resource "azapi_resource" "cluster" {
  type      = "Microsoft.OperationalInsights/clusters@2020-08-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  identity {
    type         = "SystemAssigned"
    identity_ids = []
  }
  body = {
    sku = {
      capacity = 1000
      name     = "CapacityReservation"
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

資源格式

若要建立 Microsoft.OperationalInsights/clusters 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.OperationalInsights/clusters@2021-06-01"
  name = "string"
  parent_id = "string"
  identity {
    type = "string"
    identity_ids = [
      "string"
    ]
  }
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      associatedWorkspaces = [
        {
        }
      ]
      billingType = "string"
      capacityReservationProperties = {
      }
      isAvailabilityZonesEnabled = bool
      isDoubleEncryptionEnabled = bool
      keyVaultProperties = {
        keyName = "string"
        keyRsaSize = int
        keyVaultUri = "string"
        keyVersion = "string"
      }
    }
    sku = {
      capacity = int
      name = "string"
    }
  }
}

屬性值

Microsoft.OperationalInsights/clusters

名稱 說明 價值觀
身分識別 資源的身分識別。 身分識別
位置 資源所在的地理位置 字串 (必要)
名稱 資源名稱 字串

約束:
最小長度 = 4
最大長度 = 63
模式 = ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$ (必要)
屬性 Log Analytics 叢集屬性。 ClusterProperties
SKU SKU 屬性。 ClusterSku
標記 資源標籤 標記名稱和值的字典。
型別 資源類型 “Microsoft.OperationalInsights/clusters@2021-06-01”

AssociatedWorkspace (關聯工作區)

名稱 說明 價值觀

CapacityReservationProperties

名稱 說明 價值觀

ClusterProperties

名稱 說明 價值觀
associatedWorkspaces 與叢集相關聯的Log Analytics工作區清單 AssociatedWorkspace[]
計費類型 叢集的計費類型。 “集群”
“工作區”
capacityReservationProperties 容量保留的其他屬性 CapacityReservationProperties
isAvailabilityZonesEnabled 已啟用 設定叢集是否支援可用性區域。 這隻能在 Azure 資料總管支援可用性區域的區域中設定為 true。 建立叢集之後,就無法修改這個屬性。 如果區域支援可用性區域,預設值為 'true'。 布爾 (bool)
isDoubleEncryptionEnabled 已啟用 設定叢集是否會使用雙重加密。 建立叢集之後,就無法修改這個屬性。 默認值為 'true' 布爾 (bool)
keyVaultProperties 相關聯的索引鍵屬性。 KeyVaultProperties

ClusterSku

名稱 說明 價值觀
容量 容量值 整數 (int)
名稱 SKU 的名稱。 'CapacityReservation'

身份

名稱 說明 價值觀
型別 受控服務識別的類型。 “無”
“系統分配”
'UserAssigned' (必要)
使用者指派的身份 與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 IdentityUserAssignedIdentities

IdentityUserAssignedIdentities

名稱 說明 價值觀

KeyVaultProperties

名稱 說明 價值觀
鍵名稱 與 Log Analytics 叢集相關聯的金鑰名稱。 字串
keyRsaSize 選取的金鑰大小下限。 整數 (int)
keyVaultUri 保存與 Log Analytics 叢集相關聯的金鑰保存庫 URI。 字串
keyVersion 與 Log Analytics 叢集相關聯的金鑰版本。 字串

TrackedResourceTags

名稱 說明 價值觀

UserIdentityProperties

名稱 說明 價值觀