你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Microsoft.DBForMySql flexibleServers 2020-07-01-preview
言论
仅在更新现有灵活服务器时使用 maintenanceWindow
属性。 创建新的灵活服务器时,请不要为此属性指定值。
Bicep 资源定义
可以使用目标操作部署 flexibleServers 资源类型:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.DBForMySql/flexibleServers 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.DBForMySql/flexibleServers@2020-07-01-preview' = {
identity: {
type: 'SystemAssigned'
}
location: 'string'
name: 'string'
properties: {
administratorLogin: 'string'
administratorLoginPassword: 'string'
availabilityZone: 'string'
createMode: 'string'
delegatedSubnetArguments: {
subnetArmResourceId: 'string'
}
haEnabled: 'string'
infrastructureEncryption: 'string'
maintenanceWindow: {
customWindow: 'string'
dayOfWeek: int
startHour: int
startMinute: int
}
privateDnsZoneArguments: {
privateDnsZoneArmResourceId: 'string'
}
replicationRole: 'string'
restorePointInTime: 'string'
sourceServerId: 'string'
sslEnforcement: 'string'
storageProfile: {
backupRetentionDays: int
storageAutogrow: 'string'
storageIops: int
storageMB: int
}
tags: {
{customized property}: 'string'
}
version: 'string'
}
sku: {
name: 'string'
tier: 'string'
}
tags: {
{customized property}: 'string'
}
}
属性值
DelegatedSubnetArguments
名字 | 描述 | 价值 |
---|---|---|
subnetArmResourceId | 委托的子网 arm 资源 ID。 | 字符串 |
身份
名字 | 描述 | 价值 |
---|---|---|
类型 | 标识类型。 | “SystemAssigned” |
MaintenanceWindow
名字 | 描述 | 价值 |
---|---|---|
customWindow | 指示是启用还是禁用自定义窗口 | 字符串 |
dayOfWeek | 维护时段的星期几 | int |
startHour | 维护时段的开始时间 | int |
startMinute | 维护时段的开始时间 | int |
Microsoft.DBForMySql/flexibleServers
名字 | 描述 | 价值 |
---|---|---|
身份 | 服务器的 Azure Active Directory 标识。 | 标识 |
位置 | 资源所在的地理位置 | string (必需) |
名字 | 资源名称 | string (必需) |
性能 | 服务器的属性。 | ServerProperties |
sku | 服务器的 SKU(定价层)。 | Sku |
标签 | 资源标记 | 标记名称和值的字典。 请参阅模板 中的 |
PrivateDnsZoneArguments
名字 | 描述 | 价值 |
---|---|---|
privateDnsZoneArmResourceId | 专用 dns 区域 arm 资源 ID。 | 字符串 |
ServerProperties
名字 | 描述 | 价值 |
---|---|---|
administratorLogin | 管理员的服务器登录名。 只能在创建服务器时指定(并且是创建所必需的)。 | 字符串 |
administratorLoginPassword | 管理员登录名的密码(创建服务器时需要)。 | 字符串 约束: 敏感值。 以安全参数的形式传入。 |
availabilityZone | 服务器的可用性区域信息。 | 字符串 |
createMode | 创建新的 MySQL 服务器的模式。 | “Default” “PointInTimeRestore” “Replica” |
delegatedSubnetArguments | 委托的子网参数。 | DelegatedSubnetArguments |
haEnabled | 为服务器启用 HA 或否。 | “Disabled” “Enabled” |
infrastructureEncryption | 显示服务器是否启用基础结构加密的状态。 | “Disabled” “Enabled” |
maintenanceWindow | 服务器的维护时段。 | MaintenanceWindow |
privateDnsZoneArguments | 专用 dns 区域参数。 | PrivateDnsZoneArguments |
replicationRole | 复制角色。 | 字符串 |
restorePointInTime | 还原点创建时间(ISO8601格式),指定要从中还原的时间。 | 字符串 |
sourceServerId | 源 MySQL 服务器 ID。 | 字符串 |
sslEnforcement | 在连接到服务器时启用 ssl 强制。 | “Disabled” “Enabled” |
storageProfile | 服务器的存储配置文件。 | StorageProfile |
标签 | 键值对形式的特定于应用程序的元数据。 | ServerPropertiesTags |
版本 | 服务器版本。 | '5.7' |
ServerPropertiesTags
名字 | 描述 | 价值 |
---|
Sku
名字 | 描述 | 价值 |
---|---|---|
名字 | sku 的名称,例如Standard_D32s_v3。 | string (必需) |
层 | 特定 SKU 的层,例如 GeneralPurpose。 | “可突发” “GeneralPurpose” “MemoryOptimized”(必需) |
StorageProfile
名字 | 描述 | 价值 |
---|---|---|
backupRetentionDays | 服务器的备份保留日。 | int |
storageAutogrow | 启用存储自动增长。 | “Disabled” “Enabled” |
storageIops | 服务器的存储 IOPS。 | int |
storageMB | 服务器允许的最大存储。 | int |
TrackedResourceTags
名字 | 描述 | 价值 |
---|
快速入门示例
以下快速入门示例部署此资源类型。
Bicep 文件 | 描述 |
---|---|
创建 MySqlFlex 服务器 & 通过备份保管库 启用保护 | 创建 MySQL 灵活服务器的模板,并通过备份保管库启用保护 |
使用专用终结点部署 MySQL 灵活服务器 | 此模板提供了使用专用终结点部署 Azure Database for MySQL 灵活服务器的方法。 |
使用 Vnet 集成部署 MySQL 灵活服务器 | 此模板提供了使用 VNet 集成部署 Azure Database for MySQL 灵活服务器的方法。 |
ARM 模板资源定义
可以使用目标操作部署 flexibleServers 资源类型:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.DBForMySql/flexibleServers 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.DBForMySql/flexibleServers",
"apiVersion": "2020-07-01-preview",
"name": "string",
"identity": {
"type": "SystemAssigned"
},
"location": "string",
"properties": {
"administratorLogin": "string",
"administratorLoginPassword": "string",
"availabilityZone": "string",
"createMode": "string",
"delegatedSubnetArguments": {
"subnetArmResourceId": "string"
},
"haEnabled": "string",
"infrastructureEncryption": "string",
"maintenanceWindow": {
"customWindow": "string",
"dayOfWeek": "int",
"startHour": "int",
"startMinute": "int"
},
"privateDnsZoneArguments": {
"privateDnsZoneArmResourceId": "string"
},
"replicationRole": "string",
"restorePointInTime": "string",
"sourceServerId": "string",
"sslEnforcement": "string",
"storageProfile": {
"backupRetentionDays": "int",
"storageAutogrow": "string",
"storageIops": "int",
"storageMB": "int"
},
"tags": {
"{customized property}": "string"
},
"version": "string"
},
"sku": {
"name": "string",
"tier": "string"
},
"tags": {
"{customized property}": "string"
}
}
属性值
DelegatedSubnetArguments
名字 | 描述 | 价值 |
---|---|---|
subnetArmResourceId | 委托的子网 arm 资源 ID。 | 字符串 |
身份
名字 | 描述 | 价值 |
---|---|---|
类型 | 标识类型。 | “SystemAssigned” |
MaintenanceWindow
名字 | 描述 | 价值 |
---|---|---|
customWindow | 指示是启用还是禁用自定义窗口 | 字符串 |
dayOfWeek | 维护时段的星期几 | int |
startHour | 维护时段的开始时间 | int |
startMinute | 维护时段的开始时间 | int |
Microsoft.DBForMySql/flexibleServers
名字 | 描述 | 价值 |
---|---|---|
apiVersion | API 版本 | '2020-07-01-preview' |
身份 | 服务器的 Azure Active Directory 标识。 | 标识 |
位置 | 资源所在的地理位置 | string (必需) |
名字 | 资源名称 | string (必需) |
性能 | 服务器的属性。 | ServerProperties |
sku | 服务器的 SKU(定价层)。 | Sku |
标签 | 资源标记 | 标记名称和值的字典。 请参阅模板 中的 |
类型 | 资源类型 | “Microsoft.DBForMySql/flexibleServers” |
PrivateDnsZoneArguments
名字 | 描述 | 价值 |
---|---|---|
privateDnsZoneArmResourceId | 专用 dns 区域 arm 资源 ID。 | 字符串 |
ServerProperties
名字 | 描述 | 价值 |
---|---|---|
administratorLogin | 管理员的服务器登录名。 只能在创建服务器时指定(并且是创建所必需的)。 | 字符串 |
administratorLoginPassword | 管理员登录名的密码(创建服务器时需要)。 | 字符串 约束: 敏感值。 以安全参数的形式传入。 |
availabilityZone | 服务器的可用性区域信息。 | 字符串 |
createMode | 创建新的 MySQL 服务器的模式。 | “Default” “PointInTimeRestore” “Replica” |
delegatedSubnetArguments | 委托的子网参数。 | DelegatedSubnetArguments |
haEnabled | 为服务器启用 HA 或否。 | “Disabled” “Enabled” |
infrastructureEncryption | 显示服务器是否启用基础结构加密的状态。 | “Disabled” “Enabled” |
maintenanceWindow | 服务器的维护时段。 | MaintenanceWindow |
privateDnsZoneArguments | 专用 dns 区域参数。 | PrivateDnsZoneArguments |
replicationRole | 复制角色。 | 字符串 |
restorePointInTime | 还原点创建时间(ISO8601格式),指定要从中还原的时间。 | 字符串 |
sourceServerId | 源 MySQL 服务器 ID。 | 字符串 |
sslEnforcement | 在连接到服务器时启用 ssl 强制。 | “Disabled” “Enabled” |
storageProfile | 服务器的存储配置文件。 | StorageProfile |
标签 | 键值对形式的特定于应用程序的元数据。 | ServerPropertiesTags |
版本 | 服务器版本。 | '5.7' |
ServerPropertiesTags
名字 | 描述 | 价值 |
---|
Sku
名字 | 描述 | 价值 |
---|---|---|
名字 | sku 的名称,例如Standard_D32s_v3。 | string (必需) |
层 | 特定 SKU 的层,例如 GeneralPurpose。 | “可突发” “GeneralPurpose” “MemoryOptimized”(必需) |
StorageProfile
名字 | 描述 | 价值 |
---|---|---|
backupRetentionDays | 服务器的备份保留日。 | int |
storageAutogrow | 启用存储自动增长。 | “Disabled” “Enabled” |
storageIops | 服务器的存储 IOPS。 | int |
storageMB | 服务器允许的最大存储。 | int |
TrackedResourceTags
名字 | 描述 | 价值 |
---|
快速入门模板
以下快速入门模板部署此资源类型。
模板 | 描述 |
---|---|
创建 MySqlFlex 服务器 & 通过备份保管库 启用保护 |
创建 MySQL 灵活服务器的模板,并通过备份保管库启用保护 |
使用专用终结点部署 MySQL 灵活服务器 |
此模板提供了使用专用终结点部署 Azure Database for MySQL 灵活服务器的方法。 |
使用 Vnet 集成部署 MySQL 灵活服务器 |
此模板提供了使用 VNet 集成部署 Azure Database for MySQL 灵活服务器的方法。 |
Terraform (AzAPI 提供程序)资源定义
可以使用目标操作部署 flexibleServers 资源类型:
- 资源组
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.DBForMySql/flexibleServers 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.DBForMySql/flexibleServers@2020-07-01-preview"
name = "string"
identity = {
type = "SystemAssigned"
}
location = "string"
sku = {
name = "string"
tier = "string"
}
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
administratorLogin = "string"
administratorLoginPassword = "string"
availabilityZone = "string"
createMode = "string"
delegatedSubnetArguments = {
subnetArmResourceId = "string"
}
haEnabled = "string"
infrastructureEncryption = "string"
maintenanceWindow = {
customWindow = "string"
dayOfWeek = int
startHour = int
startMinute = int
}
privateDnsZoneArguments = {
privateDnsZoneArmResourceId = "string"
}
replicationRole = "string"
restorePointInTime = "string"
sourceServerId = "string"
sslEnforcement = "string"
storageProfile = {
backupRetentionDays = int
storageAutogrow = "string"
storageIops = int
storageMB = int
}
tags = {
{customized property} = "string"
}
version = "string"
}
})
}
属性值
DelegatedSubnetArguments
名字 | 描述 | 价值 |
---|---|---|
subnetArmResourceId | 委托的子网 arm 资源 ID。 | 字符串 |
身份
名字 | 描述 | 价值 |
---|---|---|
类型 | 标识类型。 | “SystemAssigned” |
MaintenanceWindow
名字 | 描述 | 价值 |
---|---|---|
customWindow | 指示是启用还是禁用自定义窗口 | 字符串 |
dayOfWeek | 维护时段的星期几 | int |
startHour | 维护时段的开始时间 | int |
startMinute | 维护时段的开始时间 | int |
Microsoft.DBForMySql/flexibleServers
名字 | 描述 | 价值 |
---|---|---|
身份 | 服务器的 Azure Active Directory 标识。 | 标识 |
位置 | 资源所在的地理位置 | string (必需) |
名字 | 资源名称 | string (必需) |
性能 | 服务器的属性。 | ServerProperties |
sku | 服务器的 SKU(定价层)。 | Sku |
标签 | 资源标记 | 标记名称和值的字典。 |
类型 | 资源类型 | “Microsoft.DBForMySql/flexibleServers@2020-07-01-preview” |
PrivateDnsZoneArguments
名字 | 描述 | 价值 |
---|---|---|
privateDnsZoneArmResourceId | 专用 dns 区域 arm 资源 ID。 | 字符串 |
ServerProperties
名字 | 描述 | 价值 |
---|---|---|
administratorLogin | 管理员的服务器登录名。 只能在创建服务器时指定(并且是创建所必需的)。 | 字符串 |
administratorLoginPassword | 管理员登录名的密码(创建服务器时需要)。 | 字符串 约束: 敏感值。 以安全参数的形式传入。 |
availabilityZone | 服务器的可用性区域信息。 | 字符串 |
createMode | 创建新的 MySQL 服务器的模式。 | “Default” “PointInTimeRestore” “Replica” |
delegatedSubnetArguments | 委托的子网参数。 | DelegatedSubnetArguments |
haEnabled | 为服务器启用 HA 或否。 | “Disabled” “Enabled” |
infrastructureEncryption | 显示服务器是否启用基础结构加密的状态。 | “Disabled” “Enabled” |
maintenanceWindow | 服务器的维护时段。 | MaintenanceWindow |
privateDnsZoneArguments | 专用 dns 区域参数。 | PrivateDnsZoneArguments |
replicationRole | 复制角色。 | 字符串 |
restorePointInTime | 还原点创建时间(ISO8601格式),指定要从中还原的时间。 | 字符串 |
sourceServerId | 源 MySQL 服务器 ID。 | 字符串 |
sslEnforcement | 在连接到服务器时启用 ssl 强制。 | “Disabled” “Enabled” |
storageProfile | 服务器的存储配置文件。 | StorageProfile |
标签 | 键值对形式的特定于应用程序的元数据。 | ServerPropertiesTags |
版本 | 服务器版本。 | '5.7' |
ServerPropertiesTags
名字 | 描述 | 价值 |
---|
Sku
名字 | 描述 | 价值 |
---|---|---|
名字 | sku 的名称,例如Standard_D32s_v3。 | string (必需) |
层 | 特定 SKU 的层,例如 GeneralPurpose。 | “可突发” “GeneralPurpose” “MemoryOptimized”(必需) |
StorageProfile
名字 | 描述 | 价值 |
---|---|---|
backupRetentionDays | 服务器的备份保留日。 | int |
storageAutogrow | 启用存储自动增长。 | “Disabled” “Enabled” |
storageIops | 服务器的存储 IOPS。 | int |
storageMB | 服务器允许的最大存储。 | int |
TrackedResourceTags
名字 | 描述 | 价值 |
---|