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

Bicep 資源定義

servers/databases/syncGroups/syncMembers 資源類型可以使用目標作業來部署:

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

資源格式

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

resource symbolicname 'Microsoft.Sql/servers/databases/syncGroups/syncMembers@2026-08-01-preview' = {
  parent: resourceSymbolicName
  identity: {
    tenantId: 'string'
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  name: 'string'
  properties: {
    databaseName: 'string'
    databaseType: 'string'
    password: 'string'
    serverName: 'string'
    sqlServerDatabaseId: 'string'
    syncAgentId: 'string'
    syncDirection: 'string'
    syncMemberAzureDatabaseResourceId: 'string'
    usePrivateLinkConnection: bool
    userName: 'string'
  }
}

屬性值

Microsoft。Sql/servers/databases/syncGroups/syncMembers

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

如需詳細資訊,請參閱 父資源外部的子資源。
類型資源的符號名稱:servers/databases/syncGroups
properties 資源屬性。 SyncMemberProperties

資料同步參與者身份

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

SyncMemberProperties

Name Description Value
databaseName 同步成員中成員資料庫的資料庫名稱。 字串
databaseType 同步成員的資料庫類型。 'AzureSqlDatabase'
'SqlServerDatabase'
密碼 同步成員中成員資料庫的密碼。 字串
serverName 同步成員中成員資料庫的伺服器名稱 字串
sqlServerDatabaseId 同步成員的 SQL Server 資料庫 ID。 string

Constraints:
最小長度 = 36
最大長度 = 36
圖案 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
syncAgentId 同步成員中同步代理程式的 ARM 資源識別碼。 字串
syncDirection 同步成員的同步方向。 'Bidirectional'
'OneWayHubToMember'
'OneWayMemberToHub'
syncMemberAzureDatabaseResourceId 同步成員邏輯資料庫的 ARM 資源 ID,用於 Azure 中的同步成員。 字串
usePrivateLinkConnection 是否要使用私人連結連線。 bool
userName 同步成員中成員資料庫的用戶名稱。 字串

ARM 樣本資源定義

servers/databases/syncGroups/syncMembers 資源類型可以使用目標作業來部署:

使用範例

資源格式

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

{
  "type": "Microsoft.Sql/servers/databases/syncGroups/syncMembers",
  "apiVersion": "2026-08-01-preview",
  "name": "string",
  "identity": {
    "tenantId": "string",
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
      }
    }
  },
  "properties": {
    "databaseName": "string",
    "databaseType": "string",
    "password": "string",
    "serverName": "string",
    "sqlServerDatabaseId": "string",
    "syncAgentId": "string",
    "syncDirection": "string",
    "syncMemberAzureDatabaseResourceId": "string",
    "usePrivateLinkConnection": "bool",
    "userName": "string"
  }
}

屬性值

Microsoft。Sql/servers/databases/syncGroups/syncMembers

Name Description Value
apiVersion API 版本 『2026-08-01-預覽』
身分識別 同步會員認證資訊。 資料同步參與者身份
name 資源名稱 字串 (必要)
properties 資源屬性。 SyncMemberProperties
型別 資源類型 「Microsoft。Sql/servers/databases/syncGroups/syncMembers'

資料同步參與者身份

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

SyncMemberProperties

Name Description Value
databaseName 同步成員中成員資料庫的資料庫名稱。 字串
databaseType 同步成員的資料庫類型。 'AzureSqlDatabase'
'SqlServerDatabase'
密碼 同步成員中成員資料庫的密碼。 字串
serverName 同步成員中成員資料庫的伺服器名稱 字串
sqlServerDatabaseId 同步成員的 SQL Server 資料庫 ID。 string

Constraints:
最小長度 = 36
最大長度 = 36
圖案 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
syncAgentId 同步成員中同步代理程式的 ARM 資源識別碼。 字串
syncDirection 同步成員的同步方向。 'Bidirectional'
'OneWayHubToMember'
'OneWayMemberToHub'
syncMemberAzureDatabaseResourceId 同步成員邏輯資料庫的 ARM 資源 ID,用於 Azure 中的同步成員。 字串
usePrivateLinkConnection 是否要使用私人連結連線。 bool
userName 同步成員中成員資料庫的用戶名稱。 字串

Terraform (AzAPI 提供者) 資源定義

servers/databases/syncGroups/syncMembers 資源類型可以使用目標作業來部署:

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

資源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Sql/servers/databases/syncGroups/syncMembers@2026-08-01-preview"
  name = "string"
  parent_id = "string"
  identity {
    type = "string"
    identity_ids = [
      "string"
    ]
  }
  body = {
    properties = {
      databaseName = "string"
      databaseType = "string"
      password = "string"
      serverName = "string"
      sqlServerDatabaseId = "string"
      syncAgentId = "string"
      syncDirection = "string"
      syncMemberAzureDatabaseResourceId = "string"
      usePrivateLinkConnection = bool
      userName = "string"
    }
  }
}

屬性值

Microsoft。Sql/servers/databases/syncGroups/syncMembers

Name Description Value
身分識別 同步會員認證資訊。 資料同步參與者身份
name 資源名稱 字串 (必要)
parent_id 此資源為父系之資源的標識碼。 類型資源的標識碼:servers/databases/syncGroups
properties 資源屬性。 SyncMemberProperties
型別 資源類型 「Microsoft。Sql/servers/databases/syncGroups/syncMembers@2026-08-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

SyncMemberProperties

Name Description Value
databaseName 同步成員中成員資料庫的資料庫名稱。 字串
databaseType 同步成員的資料庫類型。 'AzureSqlDatabase'
'SqlServerDatabase'
密碼 同步成員中成員資料庫的密碼。 字串
serverName 同步成員中成員資料庫的伺服器名稱 字串
sqlServerDatabaseId 同步成員的 SQL Server 資料庫 ID。 string

Constraints:
最小長度 = 36
最大長度 = 36
圖案 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
syncAgentId 同步成員中同步代理程式的 ARM 資源識別碼。 字串
syncDirection 同步成員的同步方向。 'Bidirectional'
'OneWayHubToMember'
'OneWayMemberToHub'
syncMemberAzureDatabaseResourceId 同步成員邏輯資料庫的 ARM 資源 ID,用於 Azure 中的同步成員。 字串
usePrivateLinkConnection 是否要使用私人連結連線。 bool
userName 同步成員中成員資料庫的用戶名稱。 字串