共用方式為


Microsoft.DBForMySql 彈性Servers 2020-07-01-preview

言論

只有在更新現有的彈性伺服器時,才使用 maintenanceWindow 屬性。 建立新的彈性伺服器時,請勿指定此屬性的值。

Bicep 資源定義

彈性伺服器資源類型可以使用目標作業來部署:

如需每個 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 資源標識符。 字串

身份

名字 描述 價值
類型 識別類型。 'SystemAssigned'

MaintenanceWindow

名字 描述 價值
customWindow 指出是否啟用或停用自定義視窗 字串
dayOfWeek 維護時段的星期數 int
startHour 維護時段的開始時間 int
startMinute 維護時段的開始分鐘 int

Microsoft.DBForMySql/flexibleServers

名字 描述 價值
身份 伺服器的 Azure Active Directory 身分識別。 身分識別
位置 資源所在的地理位置 字串 (必要)
名字 資源名稱 字串 (必要)
性能 伺服器的屬性。 ServerProperties
sku 伺服器的 SKU(定價層)。 Sku
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤

PrivateDnsZoneArguments

名字 描述 價值
privateDnsZoneArmResourceId 私人 dns 區域 arm 資源識別碼。 字串

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
標籤 以索引鍵/值組形式的應用程式特定元數據。 ServerPropertiesTags
版本 伺服器版本。 '5.7'

ServerPropertiesTags

名字 描述 價值

Sku

名字 描述 價值
名字 sku 的名稱,例如Standard_D32s_v3。 字串 (必要)
特定 SKU 的層級,例如 GeneralPurpose。 「高載」
'GeneralPurpose'
'MemoryOptimized' (必要)

StorageProfile

名字 描述 價值
backupRetentionDays 伺服器的備份保留天數。 int
storageAutogrow 啟用記憶體自動成長。 'Disabled'
'Enabled'
storageIops 伺服器的記憶體 IOPS。 int
storageMB 伺服器允許的最大記憶體。 int

TrackedResourceTags

名字 描述 價值

快速入門範例

下列快速入門範例會部署此資源類型。

Bicep 檔案 描述
建立 MySqlFlex 伺服器 & 透過Backup Vault 啟用保護 建立 MySQL 彈性伺服器的範本,並透過備份保存庫啟用保護
使用私人端點部署 MySQL 彈性伺服器 此範本提供使用私人端點部署適用於 MySQL 的 Azure 資料庫彈性伺服器的方式。
使用 Vnet 整合部署 MySQL 彈性伺服器 此範本提供部署適用於 MySQL 彈性伺服器的 Azure 資料庫與 VNet 整合的方式。

ARM 樣本資源定義

彈性伺服器資源類型可以使用目標作業來部署:

如需每個 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 資源標識符。 字串

身份

名字 描述 價值
類型 識別類型。 'SystemAssigned'

MaintenanceWindow

名字 描述 價值
customWindow 指出是否啟用或停用自定義視窗 字串
dayOfWeek 維護時段的星期數 int
startHour 維護時段的開始時間 int
startMinute 維護時段的開始分鐘 int

Microsoft.DBForMySql/flexibleServers

名字 描述 價值
apiVersion API 版本 '2020-07-01-preview'
身份 伺服器的 Azure Active Directory 身分識別。 身分識別
位置 資源所在的地理位置 字串 (必要)
名字 資源名稱 字串 (必要)
性能 伺服器的屬性。 ServerProperties
sku 伺服器的 SKU(定價層)。 Sku
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
類型 資源類型 'Microsoft.DBForMySql/flexibleServers'

PrivateDnsZoneArguments

名字 描述 價值
privateDnsZoneArmResourceId 私人 dns 區域 arm 資源識別碼。 字串

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
標籤 以索引鍵/值組形式的應用程式特定元數據。 ServerPropertiesTags
版本 伺服器版本。 '5.7'

ServerPropertiesTags

名字 描述 價值

Sku

名字 描述 價值
名字 sku 的名稱,例如Standard_D32s_v3。 字串 (必要)
特定 SKU 的層級,例如 GeneralPurpose。 「高載」
'GeneralPurpose'
'MemoryOptimized' (必要)

StorageProfile

名字 描述 價值
backupRetentionDays 伺服器的備份保留天數。 int
storageAutogrow 啟用記憶體自動成長。 'Disabled'
'Enabled'
storageIops 伺服器的記憶體 IOPS。 int
storageMB 伺服器允許的最大記憶體。 int

TrackedResourceTags

名字 描述 價值

快速入門範本

下列快速入門範本會部署此資源類型。

範本 描述
建立 MySqlFlex 伺服器 & 透過Backup Vault 啟用保護

部署至 Azure
建立 MySQL 彈性伺服器的範本,並透過備份保存庫啟用保護
使用私人端點部署 MySQL 彈性伺服器

部署至 Azure
此範本提供使用私人端點部署適用於 MySQL 的 Azure 資料庫彈性伺服器的方式。
使用 Vnet 整合部署 MySQL 彈性伺服器

部署至 Azure
此範本提供部署適用於 MySQL 彈性伺服器的 Azure 資料庫與 VNet 整合的方式。

Terraform (AzAPI 提供者) 資源定義

彈性伺服器資源類型可以使用目標作業來部署:

  • 資源群組

如需每個 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 資源標識符。 字串

身份

名字 描述 價值
類型 識別類型。 'SystemAssigned'

MaintenanceWindow

名字 描述 價值
customWindow 指出是否啟用或停用自定義視窗 字串
dayOfWeek 維護時段的星期數 int
startHour 維護時段的開始時間 int
startMinute 維護時段的開始分鐘 int

Microsoft.DBForMySql/flexibleServers

名字 描述 價值
身份 伺服器的 Azure Active Directory 身分識別。 身分識別
位置 資源所在的地理位置 字串 (必要)
名字 資源名稱 字串 (必要)
性能 伺服器的屬性。 ServerProperties
sku 伺服器的 SKU(定價層)。 Sku
標籤 資源標籤 標記名稱和值的字典。
類型 資源類型 “Microsoft.DBForMySql/flexibleServers@2020-07-01-preview”

PrivateDnsZoneArguments

名字 描述 價值
privateDnsZoneArmResourceId 私人 dns 區域 arm 資源識別碼。 字串

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
標籤 以索引鍵/值組形式的應用程式特定元數據。 ServerPropertiesTags
版本 伺服器版本。 '5.7'

ServerPropertiesTags

名字 描述 價值

Sku

名字 描述 價值
名字 sku 的名稱,例如Standard_D32s_v3。 字串 (必要)
特定 SKU 的層級,例如 GeneralPurpose。 「高載」
'GeneralPurpose'
'MemoryOptimized' (必要)

StorageProfile

名字 描述 價值
backupRetentionDays 伺服器的備份保留天數。 int
storageAutogrow 啟用記憶體自動成長。 'Disabled'
'Enabled'
storageIops 伺服器的記憶體 IOPS。 int
storageMB 伺服器允許的最大記憶體。 int

TrackedResourceTags

名字 描述 價值