你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Bicep 资源定义
可以使用面向以下操作部署 sqlAvailabilityGroups 资源类型:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.AzureArcData/sqlAvailabilityGroups 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.AzureArcData/sqlAvailabilityGroups@2023-03-15-preview' = {
name: 'string'
location: 'string'
tags: {
tagName1: 'tagValue1'
tagName2: 'tagValue2'
}
properties: {
availabilityGroupId: 'string'
availabilityGroupName: 'string'
basicFeatures: bool
clusterTypeDesc: 'string'
collectionTimestamp: 'string'
dbFailover: bool
dtcSupport: bool
instanceName: 'string'
isContained: bool
isDistributed: bool
requiredSynchronizedSecondariesCommit: int
version: int
}
}
属性值
sqlAvailabilityGroups
| 名称 | 说明 | 值 |
|---|---|---|
| name | 资源名称 | 字符串 (必需) |
| location | 资源所在的地理位置 | 字符串 (必需) |
| 标记 | 资源标记。 | 标记名称和值的字典。 请参阅 模板中的标记 |
| properties | Null | SqlAvailabilityGroupProperties |
SqlAvailabilityGroupProperties
| 名称 | 说明 | 值 |
|---|---|---|
| availabilityGroupId | 可用性组的 ID GUID。 | 字符串 (必需) |
| availabilityGroupName | 可用性组的名称。 | 字符串 (必需) |
| basicFeatures | SQL Server基本可用性组。 | bool |
| clusterTypeDesc | SQL Server可用性组群集类型说明 | string |
| collectionTimestamp | 从客户端计算机收集数据的时间戳。 | 字符串 |
| dbFailover | 针对数据库运行状况SQL Server可用性组故障转移。 | bool |
| dtcSupport | 已启用SQL Server可用性组 DTC 支持。 | bool |
| INSTANCENAME | 可用性组主副本所在的实例名称的名称。 | 字符串 |
| isContained | SQL Server可用性组包含的系统数据库。 | bool |
| isDistributed | SQL Server分布式可用性组。 | bool |
| requiredSynchronizedSecondariesCommit | 可用性组需要同步辅助数据库的数量才能提交。 | int |
| 版本 | SQL Server可用性组当前版本。 | int |
ARM 模板资源定义
可以使用面向以下操作部署 sqlAvailabilityGroups 资源类型:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.AzureArcData/sqlAvailabilityGroups 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.AzureArcData/sqlAvailabilityGroups",
"apiVersion": "2023-03-15-preview",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"properties": {
"availabilityGroupId": "string",
"availabilityGroupName": "string",
"basicFeatures": "bool",
"clusterTypeDesc": "string",
"collectionTimestamp": "string",
"dbFailover": "bool",
"dtcSupport": "bool",
"instanceName": "string",
"isContained": "bool",
"isDistributed": "bool",
"requiredSynchronizedSecondariesCommit": "int",
"version": "int"
}
}
属性值
sqlAvailabilityGroups
| 名称 | 说明 | Value |
|---|---|---|
| type | 资源类型 | 'Microsoft.AzureArcData/sqlAvailabilityGroups' |
| apiVersion | 资源 API 版本 | '2023-03-15-preview' |
| name | 资源名称 | 字符串 (必需) |
| location | 资源所在的地理位置 | 字符串 (必需) |
| 标记 | 资源标记。 | 标记名称和值的字典。 请参阅 模板中的标记 |
| properties | Null | SqlAvailabilityGroupProperties |
SqlAvailabilityGroupProperties
| 名称 | 说明 | 值 |
|---|---|---|
| availabilityGroupId | 可用性组的 ID GUID。 | 字符串 (必需) |
| availabilityGroupName | 可用性组的名称。 | 字符串 (必需) |
| basicFeatures | SQL Server基本可用性组。 | bool |
| clusterTypeDesc | SQL Server可用性组群集类型说明 | string |
| collectionTimestamp | 从客户端计算机收集数据的时间戳。 | 字符串 |
| dbFailover | 针对数据库运行状况SQL Server可用性组故障转移。 | bool |
| dtcSupport | SQL Server可用性组 DTC 支持已启用。 | bool |
| INSTANCENAME | 可用性组主副本所在的实例名称的名称。 | 字符串 |
| isContained | SQL Server可用性组包含系统数据库。 | bool |
| isDistributed | SQL Server分布式可用性组。 | bool |
| requiredSynchronizedSecondariesCommit | 可用性组需要同步的辅助数据库的数量才能提交。 | int |
| 版本 | SQL Server可用性组当前版本。 | int |
Terraform (AzAPI 提供程序) 资源定义
sqlAvailabilityGroups 资源类型可以通过针对以下操作进行部署:
- 资源组
有关每个 API 版本中更改的属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.AzureArcData/sqlAvailabilityGroups 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.AzureArcData/sqlAvailabilityGroups@2023-03-15-preview"
name = "string"
location = "string"
parent_id = "string"
tags = {
tagName1 = "tagValue1"
tagName2 = "tagValue2"
}
body = jsonencode({
properties = {
availabilityGroupId = "string"
availabilityGroupName = "string"
basicFeatures = bool
clusterTypeDesc = "string"
collectionTimestamp = "string"
dbFailover = bool
dtcSupport = bool
instanceName = "string"
isContained = bool
isDistributed = bool
requiredSynchronizedSecondariesCommit = int
version = int
}
})
}
属性值
sqlAvailabilityGroups
| 名称 | 说明 | Value |
|---|---|---|
| type | 资源类型 | “Microsoft.AzureArcData/sqlAvailabilityGroups@2023-03-15-preview” |
| name | 资源名称 | 字符串 (必需) |
| location | 资源所在的地理位置 | 字符串 (必需) |
| parent_id | 若要部署到资源组,请使用该资源组的 ID。 | 字符串 (必需) |
| 标记 | 资源标记。 | 标记名称和值的字典。 |
| properties | Null | SqlAvailabilityGroupProperties |
SqlAvailabilityGroupProperties
| 名称 | 说明 | 值 |
|---|---|---|
| availabilityGroupId | 可用性组的 ID GUID。 | 字符串 (必需) |
| availabilityGroupName | 可用性组的名称。 | 字符串 (必需) |
| basicFeatures | SQL Server基本可用性组。 | bool |
| clusterTypeDesc | SQL Server可用性组群集类型说明 | 字符串 |
| collectionTimestamp | 从客户端计算机收集数据的时间戳。 | 字符串 |
| dbFailover | 针对数据库运行状况SQL Server可用性组故障转移。 | bool |
| dtcSupport | SQL Server可用性组 DTC 支持已启用。 | bool |
| INSTANCENAME | 可用性组主副本所在的实例名称的名称。 | string |
| isContained | SQL Server可用性组包含系统数据库。 | bool |
| isDistributed | SQL Server分布式可用性组。 | bool |
| requiredSynchronizedSecondariesCommit | 可用性组需要同步辅助数据库的数量才能提交。 | int |
| 版本 | SQL Server可用性组当前版本。 | int |