Microsoft。SQL 伺服器/資料庫/同步群組 2026-08-01-preview

Bicep 資源定義

伺服器/資料庫/syncGroups 資源類型可以使用目標作業來部署:

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

資源格式

創造一個 Microsoft。Sql/servers/databases/syncGroups 資源,請在你的範本中加入以下 Bicep。

resource symbolicname 'Microsoft.Sql/servers/databases/syncGroups@2026-08-01-preview' = {
  parent: resourceSymbolicName
  identity: {
    tenantId: 'string'
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  name: 'string'
  properties: {
    conflictLoggingRetentionInDays: int
    conflictResolutionPolicy: 'string'
    enableConflictLogging: bool
    hubDatabasePassword: 'string'
    hubDatabaseUserName: 'string'
    interval: int
    schema: {
      masterSyncMemberName: 'string'
      tables: [
        {
          columns: [
            {
              dataSize: 'string'
              dataType: 'string'
              quotedName: 'string'
            }
          ]
          quotedName: 'string'
        }
      ]
    }
    syncDatabaseId: 'string'
    usePrivateLinkConnection: bool
  }
  sku: {
    capacity: int
    family: 'string'
    name: 'string'
    size: 'string'
    tier: 'string'
  }
}

屬性值

Microsoft。Sql/servers/databases/syncGroups

Name Description 價值觀
身分識別 同步群組認證資訊。 資料同步參與者身份
名字 資源名稱 字串 (必要)
父代 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源。
類型的資源符號名稱:伺服器/資料庫
properties 資源屬性。 SyncGroupProperties
sku SKU 的名稱和容量。 Sku

資料同步參與者身份

Name Description 價值觀
tenantId DataSync 參與者身份租戶 ID string

約束:
最小長度 = 36
最大長度 = 36
圖案 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
型別 Datasync 身份類型 “無”
“系統分配”
'SystemAssignedUserAssigned'
“UserAssigned”(必需)
userAssignedIdentities 要使用的使用者指派身分識別的資源標識碼 DataSyncParticipantIdentityUserAssignedIdentities

DataSyncParticipantIdentityUserAssignedIdentities

Name Description 價值觀

DataSyncParticipantUserAssignedIdentity

Name Description 價值觀

Sku

Name Description 價值觀
容量 特定 SKU 的容量。 整數 (int)
family 如果服務有不同世代的硬體,針對相同的 SKU,則可以在這裡擷取。 字串
名字 SKU 的名稱,通常是字母 + 數位碼,例如 P3。 字串 (必要)
size 特定 SKU 的大小 字串
分層 特定 SKU 的階層或版本,例如基本、進階。 字串

SyncGroupProperties

Name Description 價值觀
conflictLoggingRetentionInDays 衝突記錄保留期限。 整數 (int)
conflictResolutionPolicy 同步群組的衝突解決原則。 'HubWin'
'MemberWin'
enableConflictLogging 如果已啟用衝突記錄。 布爾 (bool)
hubDatabasePassword 同步群組中樞資料庫認證的密碼。 string

約束:
敏感性值。 以安全參數的形式傳入。
hubDatabaseUserName 同步群組中樞資料庫認證的用戶名稱。 字串
間隔 同步群組的同步間隔。 整數 (int)
結構描述 同步群組的同步架構。 SyncGroupSchema
syncDatabaseId 同步群組中同步資料庫的 ARM 資源識別碼。 字串
usePrivateLinkConnection 如果已啟用使用私人連結連線。 布爾 (bool)

SyncGroupSchema

Name Description 價值觀
masterSyncMemberName 架構的來源主要同步處理成員名稱。 字串
tables 同步群組架構中的數據表清單。 SyncGroupSchemaTable[]

SyncGroupSchemaTable

Name Description 價值觀
columns 同步群組架構中的數據行清單。 SyncGroupSchemaTableColumn[]
quotedName 同步群組架構數據表的引號名稱。 字串

SyncGroupSchemaTableColumn

Name Description 價值觀
dataSize 數據行的數據大小。 字串
dataType 數據行的數據類型。 字串
quotedName 同步群組數據表數據行的引號名稱。 字串

ARM 樣本資源定義

伺服器/資料庫/syncGroups 資源類型可以使用目標作業來部署:

使用範例

資源格式

創造一個 Microsoft。Sql/servers/databases/syncGroups 資源,請將以下 JSON 加入你的範本。

{
  "type": "Microsoft.Sql/servers/databases/syncGroups",
  "apiVersion": "2026-08-01-preview",
  "name": "string",
  "identity": {
    "tenantId": "string",
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
      }
    }
  },
  "properties": {
    "conflictLoggingRetentionInDays": "int",
    "conflictResolutionPolicy": "string",
    "enableConflictLogging": "bool",
    "hubDatabasePassword": "string",
    "hubDatabaseUserName": "string",
    "interval": "int",
    "schema": {
      "masterSyncMemberName": "string",
      "tables": [
        {
          "columns": [
            {
              "dataSize": "string",
              "dataType": "string",
              "quotedName": "string"
            }
          ],
          "quotedName": "string"
        }
      ]
    },
    "syncDatabaseId": "string",
    "usePrivateLinkConnection": "bool"
  },
  "sku": {
    "capacity": "int",
    "family": "string",
    "name": "string",
    "size": "string",
    "tier": "string"
  }
}

屬性值

Microsoft。Sql/servers/databases/syncGroups

Name Description 價值觀
apiVersion API 版本 『2026-08-01-預覽』
身分識別 同步群組認證資訊。 資料同步參與者身份
名字 資源名稱 字串 (必要)
properties 資源屬性。 SyncGroupProperties
sku SKU 的名稱和容量。 Sku
型別 資源類型 「Microsoft。Sql/servers/databases/syncGroups'

資料同步參與者身份

Name Description 價值觀
tenantId DataSync 參與者身份租戶 ID string

約束:
最小長度 = 36
最大長度 = 36
圖案 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
型別 Datasync 身份類型 “無”
“系統分配”
'SystemAssignedUserAssigned'
“UserAssigned”(必需)
userAssignedIdentities 要使用的使用者指派身分識別的資源標識碼 DataSyncParticipantIdentityUserAssignedIdentities

DataSyncParticipantIdentityUserAssignedIdentities

Name Description 價值觀

DataSyncParticipantUserAssignedIdentity

Name Description 價值觀

Sku

Name Description 價值觀
容量 特定 SKU 的容量。 整數 (int)
family 如果服務有不同世代的硬體,針對相同的 SKU,則可以在這裡擷取。 字串
名字 SKU 的名稱,通常是字母 + 數位碼,例如 P3。 字串 (必要)
size 特定 SKU 的大小 字串
分層 特定 SKU 的階層或版本,例如基本、進階。 字串

SyncGroupProperties

Name Description 價值觀
conflictLoggingRetentionInDays 衝突記錄保留期限。 整數 (int)
conflictResolutionPolicy 同步群組的衝突解決原則。 'HubWin'
'MemberWin'
enableConflictLogging 如果已啟用衝突記錄。 布爾 (bool)
hubDatabasePassword 同步群組中樞資料庫認證的密碼。 string

約束:
敏感性值。 以安全參數的形式傳入。
hubDatabaseUserName 同步群組中樞資料庫認證的用戶名稱。 字串
間隔 同步群組的同步間隔。 整數 (int)
結構描述 同步群組的同步架構。 SyncGroupSchema
syncDatabaseId 同步群組中同步資料庫的 ARM 資源識別碼。 字串
usePrivateLinkConnection 如果已啟用使用私人連結連線。 布爾 (bool)

SyncGroupSchema

Name Description 價值觀
masterSyncMemberName 架構的來源主要同步處理成員名稱。 字串
tables 同步群組架構中的數據表清單。 SyncGroupSchemaTable[]

SyncGroupSchemaTable

Name Description 價值觀
columns 同步群組架構中的數據行清單。 SyncGroupSchemaTableColumn[]
quotedName 同步群組架構數據表的引號名稱。 字串

SyncGroupSchemaTableColumn

Name Description 價值觀
dataSize 數據行的數據大小。 字串
dataType 數據行的數據類型。 字串
quotedName 同步群組數據表數據行的引號名稱。 字串

Terraform (AzAPI 提供者) 資源定義

伺服器/資料庫/syncGroups 資源類型可以使用目標作業來部署:

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

資源格式

創造一個 Microsoft。Sql/servers/databases/syncGroups 資源,請將以下 Terraform 加入你的範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Sql/servers/databases/syncGroups@2026-08-01-preview"
  name = "string"
  parent_id = "string"
  identity {
    type = "string"
    identity_ids = [
      "string"
    ]
  }
  body = {
    properties = {
      conflictLoggingRetentionInDays = int
      conflictResolutionPolicy = "string"
      enableConflictLogging = bool
      hubDatabasePassword = "string"
      hubDatabaseUserName = "string"
      interval = int
      schema = {
        masterSyncMemberName = "string"
        tables = [
          {
            columns = [
              {
                dataSize = "string"
                dataType = "string"
                quotedName = "string"
              }
            ]
            quotedName = "string"
          }
        ]
      }
      syncDatabaseId = "string"
      usePrivateLinkConnection = bool
    }
    sku = {
      capacity = int
      family = "string"
      name = "string"
      size = "string"
      tier = "string"
    }
  }
}

屬性值

Microsoft。Sql/servers/databases/syncGroups

Name Description 價值觀
身分識別 同步群組認證資訊。 資料同步參與者身份
名字 資源名稱 字串 (必要)
parent_id 此資源為父系之資源的標識碼。 類型資源的標識碼:伺服器/資料庫
properties 資源屬性。 SyncGroupProperties
sku SKU 的名稱和容量。 Sku
型別 資源類型 「Microsoft。Sql/servers/databases/syncGroups@2026-08-01-preview」

資料同步參與者身份

Name Description 價值觀
tenantId DataSync 參與者身份租戶 ID string

約束:
最小長度 = 36
最大長度 = 36
圖案 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
型別 Datasync 身份類型 “無”
“系統分配”
'SystemAssignedUserAssigned'
“UserAssigned”(必需)
userAssignedIdentities 要使用的使用者指派身分識別的資源標識碼 DataSyncParticipantIdentityUserAssignedIdentities

DataSyncParticipantIdentityUserAssignedIdentities

Name Description 價值觀

DataSyncParticipantUserAssignedIdentity

Name Description 價值觀

Sku

Name Description 價值觀
容量 特定 SKU 的容量。 整數 (int)
family 如果服務有不同世代的硬體,針對相同的 SKU,則可以在這裡擷取。 字串
名字 SKU 的名稱,通常是字母 + 數位碼,例如 P3。 字串 (必要)
size 特定 SKU 的大小 字串
分層 特定 SKU 的階層或版本,例如基本、進階。 字串

SyncGroupProperties

Name Description 價值觀
conflictLoggingRetentionInDays 衝突記錄保留期限。 整數 (int)
conflictResolutionPolicy 同步群組的衝突解決原則。 'HubWin'
'MemberWin'
enableConflictLogging 如果已啟用衝突記錄。 布爾 (bool)
hubDatabasePassword 同步群組中樞資料庫認證的密碼。 string

約束:
敏感性值。 以安全參數的形式傳入。
hubDatabaseUserName 同步群組中樞資料庫認證的用戶名稱。 字串
間隔 同步群組的同步間隔。 整數 (int)
結構描述 同步群組的同步架構。 SyncGroupSchema
syncDatabaseId 同步群組中同步資料庫的 ARM 資源識別碼。 字串
usePrivateLinkConnection 如果已啟用使用私人連結連線。 布爾 (bool)

SyncGroupSchema

Name Description 價值觀
masterSyncMemberName 架構的來源主要同步處理成員名稱。 字串
tables 同步群組架構中的數據表清單。 SyncGroupSchemaTable[]

SyncGroupSchemaTable

Name Description 價值觀
columns 同步群組架構中的數據行清單。 SyncGroupSchemaTableColumn[]
quotedName 同步群組架構數據表的引號名稱。 字串

SyncGroupSchemaTableColumn

Name Description 價值觀
dataSize 數據行的數據大小。 字串
dataType 數據行的數據類型。 字串
quotedName 同步群組數據表數據行的引號名稱。 字串