Microsoft.DBforMariaDB サーバー 2018-06-01

Bicep リソース定義

サーバー リソースの種類は、次の場合にデプロイできます。

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.DBforMariaDB/servers リソースを作成するには、次の Bicep をテンプレートに追加します。

resource symbolicname 'Microsoft.DBforMariaDB/servers@2018-06-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  sku: {
    capacity: int
    family: 'string'
    name: 'string'
    size: 'string'
    tier: 'string'
  }
  properties: {
    minimalTlsVersion: 'string'
    publicNetworkAccess: 'string'
    sslEnforcement: 'string'
    storageProfile: {
      backupRetentionDays: int
      geoRedundantBackup: 'string'
      storageAutogrow: 'string'
      storageMB: int
    }
    version: 'string'
    createMode: 'string'
    // For remaining properties, see ServerPropertiesForCreateOrServerProperties objects
  }
}

ServerPropertiesForCreateOrServerProperties オブジェクト

createMode プロパティを設定して、オブジェクトの種類を指定します。

[既定値] では、次の値を使用します。

  createMode: 'Default'
  administratorLogin: 'string'
  administratorLoginPassword: 'string'

GeoRestore の場合は、次を使用します。

  createMode: 'GeoRestore'
  sourceServerId: 'string'

PointInTimeRestore の場合は、次の値を使用します。

  createMode: 'PointInTimeRestore'
  restorePointInTime: 'string'
  sourceServerId: 'string'

レプリカの場合は、次の値を使用します。

  createMode: 'Replica'
  sourceServerId: 'string'

プロパティの値

servers

名前 説明
name リソース名 string (必須)

文字制限: 3 から 63

有効な文字:
小文字、ハイフン、および数字。

先頭または末尾をハイフンにすることはできません。

リソース名は、Azure 全体で一意である必要があります。
location リソースが存在する場所。 string (必須)
tags キーと値のペアの形式による、アプリケーション固有のメタデータ。 タグの名前と値のディクショナリ。 「テンプレート内のタグ」を参照してください
sku サーバーの SKU (価格レベル)。 SKU
properties サーバーのプロパティ。 ServerPropertiesForCreateOrServerProperties (必須)

ServerPropertiesForCreateOrServerProperties

名前 説明
minimalTlsVersion サーバーに最小限の Tls バージョンを適用します。 'TLS1_0'
'TLS1_1'
'TLS1_2'
'TLSEnforcementDisabled'
publicNetworkAccess このサーバーに対してパブリック ネットワーク アクセスが許可されているかどうか。 値は省略可能ですが、渡された場合は 、'Enabled' または 'Disabled' である必要があります 'Disabled'
'Enabled'
sslEnforcement サーバーに接続するときに ssl 強制を有効にするか、有効にしないか。 'Disabled'
'Enabled'
storageProfile サーバーのストレージ プロファイル。 StorageProfile
version サーバーのバージョン。 '10.2'
'10.3'
createMode オブジェクトの種類を設定する [Default]
GeoRestore
PointInTimeRestore
レプリカ (必須)

StorageProfile

名前 説明
backupRetentionDays サーバーのバックアップ保有日数。 INT
geoRedundantBackup サーバーのバックアップに geo 冗長を有効にするか、有効にしないか。 'Disabled'
'Enabled'
storageAutogrow ストレージの自動拡張を有効にします。 'Disabled'
'Enabled'
storageMB サーバーに対して許可される最大ストレージ数。 INT

ServerPropertiesForDefaultCreate

名前 説明
createMode 新しいサーバーを作成するモード。 'Default' (必須)
administratorLogin サーバーの管理者のログイン名。 サーバーの作成時にのみ指定できます (作成には と が必要です)。 string (必須)
administratorLoginPassword 管理者ログインのパスワード。 string (必須)

ServerPropertiesForGeoRestore

名前 説明
createMode 新しいサーバーを作成するモード。 'GeoRestore' (必須)
sourceServerId 復元元のソース サーバー ID。 string (必須)

ServerPropertiesForRestore

名前 説明
createMode 新しいサーバーを作成するモード。 'PointInTimeRestore' (必須)
restorePointInTime 復元ポイントの作成時刻 (ISO8601 形式)、復元元の時刻を指定します。 string (必須)
sourceServerId 復元元のソース サーバー ID。 string (必須)

ServerPropertiesForReplica

名前 説明
createMode 新しいサーバーを作成するモード。 'Replica' (必須)
sourceServerId レプリカを作成するプライマリ サーバー ID。 string (必須)

Sku

名前 説明
capacity サーバーのコンピューティング ユニットを表すスケールアップ/スケールアウト容量。 INT
family ハードウェアのファミリ。 string
name sku の名前 (通常は階層 + ファミリ + コア) (B_Gen4_1、GP_Gen5_8など)。 string (必須)
size 必要に応じてリソースによって解釈されるサイズ コード。 string
レベル 特定の SKU のレベル (Basic など)。 'Basic'
'GeneralPurpose'
'MemoryOptimized'

クイック スタート テンプレート

次のクイックスタート テンプレートでは、このリソースの種類をデプロイします。

Template 説明
VNet を使用してAzure Database for MariaDBをデプロイする

Azure へのデプロイ
このテンプレートは、VNet 統合を使用して Azure Database for MariaDB をデプロイする方法を提供します。

ARM テンプレート リソース定義

サーバー リソースの種類は、次の場合にデプロイできます。

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.DBforMariaDB/servers リソースを作成するには、次の JSON をテンプレートに追加します。

{
  "type": "Microsoft.DBforMariaDB/servers",
  "apiVersion": "2018-06-01",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "sku": {
    "capacity": "int",
    "family": "string",
    "name": "string",
    "size": "string",
    "tier": "string"
  },
  "properties": {
    "minimalTlsVersion": "string",
    "publicNetworkAccess": "string",
    "sslEnforcement": "string",
    "storageProfile": {
      "backupRetentionDays": "int",
      "geoRedundantBackup": "string",
      "storageAutogrow": "string",
      "storageMB": "int"
    },
    "version": "string",
    "createMode": "string"
    // For remaining properties, see ServerPropertiesForCreateOrServerProperties objects
  }
}

ServerPropertiesForCreateOrServerProperties オブジェクト

createMode プロパティを設定して、オブジェクトの種類を指定します。

[既定値] には、次の値を使用します。

  "createMode": "Default",
  "administratorLogin": "string",
  "administratorLoginPassword": "string"

GeoRestore の場合は、次の値を使用します。

  "createMode": "GeoRestore",
  "sourceServerId": "string"

PointInTimeRestore の場合は、次の値を使用します。

  "createMode": "PointInTimeRestore",
  "restorePointInTime": "string",
  "sourceServerId": "string"

[レプリカ] には、次の値を使用します。

  "createMode": "Replica",
  "sourceServerId": "string"

プロパティの値

servers

名前 説明
type リソースの種類 'Microsoft.DBforMariaDB/servers'
apiVersion リソース API のバージョン '2018-06-01'
name リソース名 string (必須)

文字数制限: 3 から 63

有効な文字:
小文字、ハイフン、および数字。

先頭または末尾をハイフンにすることはできません。

リソース名は、Azure 全体で一意である必要があります。
location リソースが存在する場所。 string (必須)
tags キーと値のペアの形式による、アプリケーション固有のメタデータ。 タグの名前と値のディクショナリ。 「テンプレート内のタグ」を参照してください
sku サーバーの SKU (価格レベル)。 SKU
properties サーバーのプロパティ。 ServerPropertiesForCreateOrServerProperties (必須)

ServerPropertiesForCreateOrServerProperties

名前 説明
minimalTlsVersion サーバーに最小限の Tls バージョンを適用します。 'TLS1_0'
'TLS1_1'
'TLS1_2'
'TLSEnforcementDisabled'
publicNetworkAccess このサーバーに対してパブリック ネットワーク アクセスが許可されているかどうか。 値は省略可能ですが、渡された場合は 、'Enabled' または 'Disabled' である必要があります 'Disabled'
'Enabled'
sslEnforcement サーバーに接続するときに ssl 強制を有効にするか、有効にしないか。 'Disabled'
'Enabled'
storageProfile サーバーのストレージ プロファイル。 StorageProfile
version サーバーのバージョン。 '10.2'
'10.3'
createMode オブジェクトの種類を設定する [Default]
GeoRestore
PointInTimeRestore
レプリカ (必須)

StorageProfile

名前 説明
backupRetentionDays サーバーのバックアップ保有日数。 INT
geoRedundantBackup サーバーのバックアップに geo 冗長を有効にするか、有効にしないか。 'Disabled'
'Enabled'
storageAutogrow ストレージの自動拡張を有効にします。 'Disabled'
'Enabled'
storageMB サーバーに対して許可される最大ストレージ数。 INT

ServerPropertiesForDefaultCreate

名前 説明
createMode 新しいサーバーを作成するモード。 'Default' (必須)
administratorLogin サーバーの管理者のログイン名。 サーバーが作成されている場合にのみ指定できます (作成に必要です)。 string (必須)
administratorLoginPassword 管理者ログインのパスワード。 string (必須)

ServerPropertiesForGeoRestore

名前 説明
createMode 新しいサーバーを作成するモード。 'GeoRestore' (必須)
sourceServerId 復元元のソース サーバー ID。 string (必須)

ServerPropertiesForRestore

名前 説明
createMode 新しいサーバーを作成するモード。 'PointInTimeRestore' (必須)
restorePointInTime 復元ポイントの作成時刻 (ISO8601 形式)、復元元の時刻を指定します。 string (必須)
sourceServerId 復元元のソース サーバー ID。 string (必須)

ServerPropertiesForReplica

名前 説明
createMode 新しいサーバーを作成するモード。 'Replica' (必須)
sourceServerId レプリカを作成するプライマリ サーバー ID。 string (必須)

Sku

名前 説明
capacity サーバーのコンピューティング ユニットを表すスケールアップ/スケールアウト容量。 INT
family ハードウェアのファミリ。 string
name sku の名前 。通常は、階層 + ファミリ + コア (B_Gen4_1、GP_Gen5_8など)。 string (必須)
size 必要に応じてリソースによって解釈されるサイズ コード。 string
レベル 特定の SKU のレベル (Basic など)。 'Basic'
'GeneralPurpose'
'MemoryOptimized'

クイック スタート テンプレート

次のクイックスタート テンプレートでは、このリソースの種類をデプロイします。

Template 説明
VNet を使用してAzure Database for MariaDBをデプロイする

Azure へのデプロイ
このテンプレートは、VNet 統合を使用して MariaDB 用 Azure データベースをデプロイする方法を提供します。

Terraform (AzAPI プロバイダー) リソース定義

サーバー リソースの種類は、次の場合にデプロイできます。

  • リソース グループ

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.DBforMariaDB/servers リソースを作成するには、次の Terraform をテンプレートに追加します。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.DBforMariaDB/servers@2018-06-01"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      minimalTlsVersion = "string"
      publicNetworkAccess = "string"
      sslEnforcement = "string"
      storageProfile = {
        backupRetentionDays = int
        geoRedundantBackup = "string"
        storageAutogrow = "string"
        storageMB = int
      }
      version = "string"
      createMode = "string"
      // For remaining properties, see ServerPropertiesForCreateOrServerProperties objects
    }
    sku = {
      capacity = int
      family = "string"
      name = "string"
      size = "string"
      tier = "string"
    }
  })
}

ServerPropertiesForCreateOrServerProperties オブジェクト

createMode プロパティを設定して、オブジェクトの種類を指定します。

[既定値] では、次の値を使用します。

  createMode = "Default"
  administratorLogin = "string"
  administratorLoginPassword = "string"

GeoRestore の場合は、次を使用します。

  createMode = "GeoRestore"
  sourceServerId = "string"

PointInTimeRestore の場合は、次の値を使用します。

  createMode = "PointInTimeRestore"
  restorePointInTime = "string"
  sourceServerId = "string"

レプリカの場合は、次の値を使用します。

  createMode = "Replica"
  sourceServerId = "string"

プロパティの値

servers

名前 説明
type リソースの種類 "Microsoft.DBforMariaDB/servers@2018-06-01"
name リソース名 string (必須)

文字制限: 3 から 63

有効な文字:
小文字、ハイフン、および数字。

先頭または末尾をハイフンにすることはできません。

リソース名は、Azure 全体で一意である必要があります。
location リソースが存在する場所。 string (必須)
parent_id リソース グループにデプロイするには、そのリソース グループの ID を使用します。 string (必須)
tags キーと値のペアの形式による、アプリケーション固有のメタデータ。 タグの名前と値のディクショナリ。
sku サーバーの SKU (価格レベル)。 SKU
properties サーバーのプロパティ。 ServerPropertiesForCreateOrServerProperties (必須)

ServerPropertiesForCreateOrServerProperties

名前 説明
minimalTlsVersion サーバーに最小限の Tls バージョンを適用します。 "TLS1_0"
"TLS1_1"
"TLS1_2"
"TLSEnforcementDisabled"
publicNetworkAccess このサーバーに対してパブリック ネットワーク アクセスが許可されているかどうか。 値は省略可能ですが、渡された場合は 、'Enabled' または 'Disabled' である必要があります "無効"
"有効"
sslEnforcement サーバーに接続するときに ssl 強制を有効にするか、有効にしないか。 "無効"
"有効"
storageProfile サーバーのストレージ プロファイル。 StorageProfile
version サーバーのバージョン。 "10.2"
"10.3"
createMode オブジェクトの種類を設定する [Default]
GeoRestore
PointInTimeRestore
レプリカ (必須)

StorageProfile

名前 説明
backupRetentionDays サーバーのバックアップ保有日数。 INT
geoRedundantBackup サーバーのバックアップに geo 冗長を有効にするか、有効にしないか。 "無効"
"有効"
storageAutogrow ストレージの自動拡張を有効にします。 "無効"
"有効"
storageMB サーバーに対して許可される最大ストレージ数。 INT

ServerPropertiesForDefaultCreate

名前 説明
createMode 新しいサーバーを作成するモード。 "Default" (必須)
administratorLogin サーバーの管理者のログイン名。 サーバーが作成されている場合にのみ指定できます (作成に必要です)。 string (必須)
administratorLoginPassword 管理者ログインのパスワード。 string (必須)

ServerPropertiesForGeoRestore

名前 説明
createMode 新しいサーバーを作成するモード。 "GeoRestore" (必須)
sourceServerId 復元元のソース サーバー ID。 string (必須)

ServerPropertiesForRestore

名前 説明
createMode 新しいサーバーを作成するモード。 "PointInTimeRestore" (必須)
restorePointInTime 復元ポイントの作成時刻 (ISO8601 形式)、復元元の時刻を指定します。 string (必須)
sourceServerId 復元元のソース サーバー ID。 string (必須)

ServerPropertiesForReplica

名前 説明
createMode 新しいサーバーを作成するモード。 "Replica" (必須)
sourceServerId レプリカを作成するプライマリ サーバー ID。 string (必須)

Sku

名前 説明
capacity サーバーのコンピューティング ユニットを表すスケールアップ/スケールアウト容量。 INT
family ハードウェアのファミリ。 string
name sku の名前 。通常は、階層 + ファミリ + コア (B_Gen4_1、GP_Gen5_8など)。 string (必須)
size 必要に応じてリソースによって解釈されるサイズ コード。 string
レベル 特定の SKU のレベル (Basic など)。 "Basic"
"GeneralPurpose"
"MemoryOptimized"