Microsoft.DBForMySql 彈性Servers 2020-07-01-preview
Bicep 資源定義
彈性伺服器資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.DBForMySql/flexibleServers 資源,請將下列 Bicep 新增至您的範本。
resource symbolicname 'Microsoft.DBForMySql/flexibleServers@2020-07-01-preview' = {
name: 'string'
location: 'string'
tags: {
tagName1: 'tagValue1'
tagName2: 'tagValue2'
}
sku: {
name: 'string'
tier: 'string'
}
identity: {
type: 'SystemAssigned'
}
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: '5.7'
}
}
屬性值
flexibleServers
名稱 | 描述 | 值 |
---|---|---|
NAME | 資源名稱 | 字串 (必要) |
location | 資源所在的地理位置 | 字串 (必要) |
tags | 資源標籤。 | 標記名稱和值的字典。 請參閱 範本中的標記 |
sku | 伺服器的 SKU (定價層) 。 | Sku |
身分識別 | 伺服器的 Azure Active Directory 身分識別。 | 身分識別 |
properties | 伺服器的屬性。 | ServerProperties |
Identity
名称 | 描述 | 值 |
---|---|---|
類型 | 識別類型。 | 'SystemAssigned' |
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 伺服器識別碼。 | 字串 |
sslEnforcement | 在連線到伺服器時啟用 SSL 強制。 | 'Disabled' 'Enabled' |
storageProfile | 伺服器的記憶體配置檔。 | StorageProfile |
tags | 索引鍵/值組形式的應用程式特有中繼資料。 | 物件 (object) |
version | 伺服器版本。 | '5.7' |
DelegatedSubnetArguments
名稱 | 描述 | 值 |
---|---|---|
subnetArmResourceId | 委派的子網 arm 資源標識符。 | 字串 |
MaintenanceWindow
名稱 | 描述 | 值 |
---|---|---|
customWindow | 指出是否啟用或停用自定義視窗 | 字串 |
dayOfWeek | 維護時段的星期數 | int |
startHour | 維護時段的開始時間 | int |
startMinute | 維護時段的開始分鐘 | int |
PrivateDnsZoneArguments
名稱 | 描述 | 值 |
---|---|---|
privateDnsZoneArmResourceId | 私人 dns 區域 arm 資源識別碼。 | 字串 |
StorageProfile
名稱 | 描述 | 值 |
---|---|---|
backupRetentionDays | 伺服器的備份保留天數。 | int |
storageAutogrow | 啟用記憶體自動成長。 | 'Disabled' 'Enabled' |
storageIops | 伺服器的記憶體 IOPS。 | int |
storageMB | 伺服器允許的最大記憶體。 | int |
SKU
名稱 | 描述 | 值 |
---|---|---|
NAME | sku 的名稱,例如Standard_D32s_v3。 | 字串 (必要) |
tier | 特定 SKU 的層,例如 GeneralPurpose。 | 「高載」 'GeneralPurpose' 需要 'MemoryOptimized' () |
快速入門範本
下列快速入門範本會部署此資源類型。
範本 | 描述 |
---|---|
使用 VNet 部署 適用於 MySQL 的 Azure 資料庫 (彈性) |
此範本提供使用 VNet 整合部署適用於 MySQL 的彈性伺服器 Azure 資料庫的方法。 |
ARM 範本資源定義
彈性伺服器資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.DBForMySql/flexibleServers 資源,請將下列 JSON 新增至您的範本。
{
"type": "Microsoft.DBForMySql/flexibleServers",
"apiVersion": "2020-07-01-preview",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"sku": {
"name": "string",
"tier": "string"
},
"identity": {
"type": "SystemAssigned"
},
"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": "5.7"
}
}
屬性值
flexibleServers
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | 'Microsoft.DBForMySql/flexibleServers' |
apiVersion | 資源 API 版本 | '2020-07-01-preview' |
NAME | 資源名稱 | 字串 (必要) |
location | 資源所在的地理位置 | 字串 (必要) |
tags | 資源標籤。 | 標記名稱和值的字典。 請參閱 範本中的標記 |
sku | 伺服器的 SKU (定價層) 。 | Sku |
身分識別 | 伺服器的 Azure Active Directory 身分識別。 | 身分識別 |
properties | 伺服器的屬性。 | ServerProperties |
Identity
名称 | 描述 | 值 |
---|---|---|
類型 | 識別類型。 | 'SystemAssigned' |
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 伺服器識別碼。 | 字串 |
sslEnforcement | 在連線到伺服器時啟用 SSL 強制。 | 'Disabled' 'Enabled' |
storageProfile | 伺服器的記憶體配置檔。 | StorageProfile |
tags | 索引鍵/值組形式的應用程式特有中繼資料。 | 物件 (object) |
version | 伺服器版本。 | '5.7' |
DelegatedSubnetArguments
名稱 | 描述 | 值 |
---|---|---|
subnetArmResourceId | 委派的子網 arm 資源標識符。 | 字串 |
MaintenanceWindow
名稱 | 描述 | 值 |
---|---|---|
customWindow | 指出是否啟用或停用自定義視窗 | 字串 |
dayOfWeek | 維護時段的星期數 | int |
startHour | 維護時段的開始時間 | int |
startMinute | 維護時段的開始分鐘 | int |
PrivateDnsZoneArguments
名稱 | 描述 | 值 |
---|---|---|
privateDnsZoneArmResourceId | 私人 dns 區域 arm 資源識別碼。 | 字串 |
StorageProfile
名稱 | 描述 | 值 |
---|---|---|
backupRetentionDays | 伺服器的備份保留天數。 | int |
storageAutogrow | 啟用記憶體自動成長。 | 'Disabled' 'Enabled' |
storageIops | 伺服器的記憶體 IOPS。 | int |
storageMB | 伺服器允許的最大記憶體。 | int |
SKU
名稱 | 描述 | 值 |
---|---|---|
NAME | sku 的名稱,例如Standard_D32s_v3。 | 字串 (必要) |
tier | 特定 SKU 的層,例如 GeneralPurpose。 | 「高載」 'GeneralPurpose' 需要 'MemoryOptimized' () |
快速入門範本
下列快速入門範本會部署此資源類型。
範本 | 描述 |
---|---|
使用 VNet 部署 適用於 MySQL 的 Azure 資料庫 (彈性) |
此範本提供使用 VNet 整合部署適用於 MySQL 的彈性伺服器 Azure 資料庫的方法。 |
Terraform (AzAPI 提供者) 資源定義
彈性伺服器資源類型可以使用目標作業來部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.DBForMySql/flexibleServers 資源,請將下列 Terraform 新增至您的範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.DBForMySql/flexibleServers@2020-07-01-preview"
name = "string"
location = "string"
parent_id = "string"
tags = {
tagName1 = "tagValue1"
tagName2 = "tagValue2"
}
identity {
type = "SystemAssigned"
}
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 = "5.7"
}
sku = {
name = "string"
tier = "string"
}
})
}
屬性值
flexibleServers
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | “Microsoft.DBForMySql/flexibleServers@2020-07-01-preview” |
NAME | 資源名稱 | 字串 (必要) |
location | 資源所在的地理位置 | 字串 (必要) |
parent_id | 若要部署至資源群組,請使用該資源群組的標識碼。 | 字串 (必要) |
tags | 資源標籤。 | 標記名稱和值的字典。 |
sku | 伺服器的 SKU (定價層) 。 | Sku |
身分識別 | 伺服器的 Azure Active Directory 身分識別。 | 身分識別 |
properties | 伺服器的屬性。 | ServerProperties |
Identity
名称 | 描述 | 值 |
---|---|---|
類型 | 識別類型。 | “SystemAssigned” |
ServerProperties
名稱 | 描述 | 值 |
---|---|---|
administratorLogin | 伺服器的系統管理員登入名稱。 只有在建立伺服器 (且建立) 時才能指定。 | 字串 |
administratorLoginPassword | 伺服器建立) 所需的系統管理員登入密碼 (。 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
availabilityZone | 伺服器的可用性區域資訊。 | 字串 |
createMode | 建立新 MySQL 伺服器的模式。 | “預設值” “PointInTimeRestore” “複本” |
delegatedSubnetArguments | 委派的子網自變數。 | DelegatedSubnetArguments |
haEnabled | 為伺服器啟用HA或未啟用。 | “Disabled” “Enabled” |
infrastructureEncryption | 顯示伺服器是否啟用基礎結構加密的狀態。 | “Disabled” “Enabled” |
maintenanceWindow | 伺服器的維護期間。 | MaintenanceWindow |
privateDnsZoneArguments | 私人 dns 區域自變數。 | PrivateDnsZoneArguments |
replicationRole | 複寫角色。 | 字串 |
restorePointInTime | 還原點建立時間 (ISO8601 格式) ,指定要還原的時間。 | 字串 |
sourceServerId | 來源 MySQL 伺服器識別碼。 | 字串 |
sslEnforcement | 在連線到伺服器時啟用 SSL 強制執行。 | “Disabled” “Enabled” |
storageProfile | 伺服器的記憶體配置檔。 | StorageProfile |
tags | 索引鍵/值組形式的應用程式特有中繼資料。 | 物件 (object) |
version | 伺服器版本。 | "5.7" |
DelegatedSubnetArguments
名稱 | 描述 | 值 |
---|---|---|
subnetArmResourceId | 委派的子網 arm 資源標識符。 | 字串 |
MaintenanceWindow
名稱 | 描述 | 值 |
---|---|---|
customWindow | 指出是否啟用或停用自定義視窗 | 字串 |
dayOfWeek | 維護時段的星期數 | int |
startHour | 維護時段的開始時間 | int |
startMinute | 維護時段的開始分鐘數 | int |
PrivateDnsZoneArguments
名稱 | 描述 | 值 |
---|---|---|
privateDnsZoneArmResourceId | 私人 dns 區域 arm 資源識別碼。 | 字串 |
StorageProfile
名稱 | 描述 | 值 |
---|---|---|
backupRetentionDays | 伺服器的備份保留天數。 | int |
storageAutogrow | 啟用記憶體自動成長。 | “Disabled” “Enabled” |
storageIops | 伺服器的記憶體 IOPS。 | int |
storageMB | 伺服器允許的最大記憶體。 | int |
SKU
名稱 | 描述 | 值 |
---|---|---|
NAME | sku 的名稱,例如Standard_D32s_v3。 | 需要字串 () |
tier | 特定 SKU 的層級,例如 GeneralPurpose。 | “高載” “GeneralPurpose” “MemoryOptimized” (必要) |
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應