Microsoft。SQL 伺服器/資料庫/同步群組

Bicep 資源定義

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

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

資源格式

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

resource symbolicname 'Microsoft.Sql/servers/databases/syncGroups@2025-02-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 Value
身分識別 同步群組認證資訊。 資料同步參與者身份
name 資源名稱 字串 (必要)
父代 在 Bicep 中,你可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。

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

資料同步參與者身份

Name Description Value
tenantId DataSync 參與者身份租戶 ID string

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

DataSyncParticipantIdentityUserAssignedIdentities

Name Description Value

DataSyncParticipantUserAssignedIdentity

Name Description Value

Sku

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

SyncGroupProperties

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

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

SyncGroupSchema

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

SyncGroupSchemaTable

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

SyncGroupSchemaTableColumn

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

ARM 樣本資源定義

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

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

資源格式

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

{
  "type": "Microsoft.Sql/servers/databases/syncGroups",
  "apiVersion": "2025-02-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 Value
apiVersion API 版本 “2025-02-01-預覽”
身分識別 同步群組認證資訊。 資料同步參與者身份
name 資源名稱 字串 (必要)
properties 資源屬性。 SyncGroupProperties
sku SKU 的名稱和容量。 Sku
型別 資源類型 「Microsoft。Sql/servers/databases/syncGroups'

資料同步參與者身份

Name Description Value
tenantId DataSync 參與者身份租戶 ID string

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

DataSyncParticipantIdentityUserAssignedIdentities

Name Description Value

DataSyncParticipantUserAssignedIdentity

Name Description Value

Sku

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

SyncGroupProperties

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

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

SyncGroupSchema

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

SyncGroupSchemaTable

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

SyncGroupSchemaTableColumn

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

使用範例

Terraform (AzAPI 提供者) 資源定義

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

  • 資源群組

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

資源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Sql/servers/databases/syncGroups@2025-02-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 Value
身分識別 同步群組認證資訊。 資料同步參與者身份
name 資源名稱 字串 (必要)
parent_id 此資源為父系之資源的標識碼。 類型資源的標識碼:伺服器/資料庫
properties 資源屬性。 SyncGroupProperties
sku SKU 的名稱和容量。 Sku
型別 資源類型 「Microsoft。Sql/servers/databases/syncGroups@2025-02-01-preview”

資料同步參與者身份

Name Description Value
tenantId DataSync 參與者身份租戶 ID string

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

DataSyncParticipantIdentityUserAssignedIdentities

Name Description Value

DataSyncParticipantUserAssignedIdentity

Name Description Value

Sku

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

SyncGroupProperties

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

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

SyncGroupSchema

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

SyncGroupSchemaTable

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

SyncGroupSchemaTableColumn

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