Microsoft。DocumentDB garnetClusters

Bicep 資源定義

garnetClusters 資源類型可以部署為目標的作業:

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

資源格式

若要建立 Microsoft.DocumentDB/garnetClusters 資源,請將下列 Bicep 新增至您的範本。

resource symbolicname 'Microsoft.DocumentDB/garnetClusters@2026-04-01-preview' = {
  identity: {
    type: 'string'
  }
  location: 'string'
  name: 'string'
  properties: {
    allocationState: 'string'
    authenticationMethod: 'string'
    availabilityZone: bool
    clusterType: 'string'
    extensions: [
      'string'
    ]
    nodeCount: int
    nodeSku: 'string'
    persistence: bool
    provisionError: {}
    replicationFactor: int
    shardCount: int
    subnetId: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

屬性值

Microsoft.DocumentDB/garnetClusters

名稱 Description 價值觀
身分識別 資源的身分識別。 ManagedCassandraManagedServiceIdentity
位置 資源所在的地理位置 字串(必填)
名稱 資源名稱 string

Constraints:
最小長度 = 1
最大長度 = 100
模式 = ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$ (必要)
properties 此資源的資源特定屬性。 GarnetClusterResourceProperties
tags 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤

錯誤詳細資訊

名稱 Description 價值觀

GarnetClusterResourceProperties

名稱 Description 價值觀
分配狀態 叢集和資料中心資源的配置狀態。 作用中表示已配置叢集的虛擬機器,解除配置表示已解除配置虛擬機器和資源。 'Active'
'Deallocated'
驗證方法 Garnet 叢集所使用的認證方法。 「Entra」
可用性區域 如果資料中心支援可用性區域,請將其套用至裝載 Garnet 叢集虛擬機器的虛擬機器擴展集。 布爾 (bool)
clusterType 叢集的類型。 如果設定為生產環境,則叢集上可能不允許某些作業。 'NonProduction'
“生產”
extensions 要新增或更新叢集上的擴充功能。 字串[]
nodeCount 節點計數 節點數目。 int
nodeSku 用於叢集的虛擬機器 SKU。 預設值為Standard_DS14_v2。 字串
persistence 標記以指示 Garnet 叢集是否啟用持久性。 布爾 (bool)
provisionError 與資源布建相關的錯誤。 錯誤詳情
replicationFactor 叢集維護的資料副本數量。 int
分片計數 叢集中的碎片數量。 int
subnetId 此叢集管理服務應連結其網路介面的子網資源標識符。 子網必須可路由傳送至將委派給數據中心的所有子網。 資源標識符的格式必須是 '/subscriptions/<訂用帳戶標識符>/resourceGroups/<資源群組>/providers/Microsoft.Network/virtualNetworks/<虛擬網络>/subnets/<子網>' 字串

ManagedCassandraManagedServiceIdentity

名稱 Description 價值觀
型別 資源的類型。 “無”
“系統分配”

Record

名稱 Description 價值觀

ARM 樣本資源定義

garnetClusters 資源類型可以部署為目標的作業:

使用範例

資源格式

若要建立 Microsoft.DocumentDB/garnetClusters 資源,請將下列 JSON 新增至您的範本。

{
  "type": "Microsoft.DocumentDB/garnetClusters",
  "apiVersion": "2026-04-01-preview",
  "name": "string",
  "identity": {
    "type": "string"
  },
  "location": "string",
  "properties": {
    "allocationState": "string",
    "authenticationMethod": "string",
    "availabilityZone": "bool",
    "clusterType": "string",
    "extensions": [ "string" ],
    "nodeCount": "int",
    "nodeSku": "string",
    "persistence": "bool",
    "provisionError": {
    },
    "replicationFactor": "int",
    "shardCount": "int",
    "subnetId": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

屬性值

Microsoft.DocumentDB/garnetClusters

名稱 Description 價值觀
apiVersion API 版本 『2026-04-01-預覽』
身分識別 資源的身分識別。 ManagedCassandraManagedServiceIdentity
位置 資源所在的地理位置 字串(必填)
名稱 資源名稱 string

Constraints:
最小長度 = 1
最大長度 = 100
模式 = ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$ (必要)
properties 此資源的資源特定屬性。 GarnetClusterResourceProperties
tags 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
型別 資源類型 'Microsoft.DocumentDB/garnetClusters'

錯誤詳細資訊

名稱 Description 價值觀

GarnetClusterResourceProperties

名稱 Description 價值觀
分配狀態 叢集和資料中心資源的配置狀態。 作用中表示已配置叢集的虛擬機器,解除配置表示已解除配置虛擬機器和資源。 'Active'
'Deallocated'
驗證方法 Garnet 叢集所使用的認證方法。 「Entra」
可用性區域 如果資料中心支援可用性區域,請將其套用至裝載 Garnet 叢集虛擬機器的虛擬機器擴展集。 布爾 (bool)
clusterType 叢集的類型。 如果設定為生產環境,則叢集上可能不允許某些作業。 'NonProduction'
“生產”
extensions 要新增或更新叢集上的擴充功能。 字串[]
nodeCount 節點計數 節點數目。 int
nodeSku 用於叢集的虛擬機器 SKU。 預設值為Standard_DS14_v2。 字串
persistence 標記以指示 Garnet 叢集是否啟用持久性。 布爾 (bool)
provisionError 與資源布建相關的錯誤。 錯誤詳情
replicationFactor 叢集維護的資料副本數量。 int
分片計數 叢集中的碎片數量。 int
subnetId 此叢集管理服務應連結其網路介面的子網資源標識符。 子網必須可路由傳送至將委派給數據中心的所有子網。 資源標識符的格式必須是 '/subscriptions/<訂用帳戶標識符>/resourceGroups/<資源群組>/providers/Microsoft.Network/virtualNetworks/<虛擬網络>/subnets/<子網>' 字串

ManagedCassandraManagedServiceIdentity

名稱 Description 價值觀
型別 資源的類型。 “無”
“系統分配”

Record

名稱 Description 價值觀

Terraform (AzAPI 提供者) 資源定義

garnetClusters 資源類型可以部署為目標的作業:

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

資源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.DocumentDB/garnetClusters@2026-04-01-preview"
  name = "string"
  parent_id = "string"
  identity {
    type = "string"
    identity_ids = [
      "string"
    ]
  }
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      allocationState = "string"
      authenticationMethod = "string"
      availabilityZone = bool
      clusterType = "string"
      extensions = [
        "string"
      ]
      nodeCount = int
      nodeSku = "string"
      persistence = bool
      provisionError = {
      }
      replicationFactor = int
      shardCount = int
      subnetId = "string"
    }
  }
}

屬性值

Microsoft.DocumentDB/garnetClusters

名稱 Description 價值觀
身分識別 資源的身分識別。 ManagedCassandraManagedServiceIdentity
位置 資源所在的地理位置 字串(必填)
名稱 資源名稱 string

Constraints:
最小長度 = 1
最大長度 = 100
模式 = ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$ (必要)
properties 此資源的資源特定屬性。 GarnetClusterResourceProperties
tags 資源標籤 標記名稱和值的字典。
型別 資源類型 「Microsoft。DocumentDB/garnetClusters@2026-04-01-preview”

錯誤詳細資訊

名稱 Description 價值觀

GarnetClusterResourceProperties

名稱 Description 價值觀
分配狀態 叢集和資料中心資源的配置狀態。 作用中表示已配置叢集的虛擬機器,解除配置表示已解除配置虛擬機器和資源。 'Active'
'Deallocated'
驗證方法 Garnet 叢集所使用的認證方法。 「Entra」
可用性區域 如果資料中心支援可用性區域,請將其套用至裝載 Garnet 叢集虛擬機器的虛擬機器擴展集。 布爾 (bool)
clusterType 叢集的類型。 如果設定為生產環境,則叢集上可能不允許某些作業。 'NonProduction'
“生產”
extensions 要新增或更新叢集上的擴充功能。 字串[]
nodeCount 節點計數 節點數目。 int
nodeSku 用於叢集的虛擬機器 SKU。 預設值為Standard_DS14_v2。 字串
persistence 標記以指示 Garnet 叢集是否啟用持久性。 布爾 (bool)
provisionError 與資源布建相關的錯誤。 錯誤詳情
replicationFactor 叢集維護的資料副本數量。 int
分片計數 叢集中的碎片數量。 int
subnetId 此叢集管理服務應連結其網路介面的子網資源標識符。 子網必須可路由傳送至將委派給數據中心的所有子網。 資源標識符的格式必須是 '/subscriptions/<訂用帳戶標識符>/resourceGroups/<資源群組>/providers/Microsoft.Network/virtualNetworks/<虛擬網络>/subnets/<子網>' 字串

ManagedCassandraManagedServiceIdentity

名稱 Description 價值觀
型別 資源的類型。 “無”
“系統分配”

Record

名稱 Description 價值觀