Microsoft.DBforPostgreSQL サーバー 2017-12-01

Bicep リソース定義

サーバー リソースの種類は、次を対象とする操作でデプロイできます。

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

リソース形式

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

resource symbolicname 'Microsoft.DBforPostgreSQL/servers@2017-12-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  sku: {
    capacity: int
    family: 'string'
    name: 'string'
    size: 'string'
    tier: 'string'
  }
  identity: {
    type: 'SystemAssigned'
  }
  properties: {
    infrastructureEncryption: 'string'
    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
identity サーバーの Azure Active Directory ID。 ResourceIdentity
properties サーバーのプロパティ。 ServerPropertiesForCreateOrServerProperties (必須)

ResourceIdentity

名前 説明
type ID の種類。 リソースの Azure Active Directory プリンシパルを自動的に作成して割り当てるには、これを "SystemAssigned" に設定します。 'SystemAssigned'

ServerPropertiesForCreateOrServerProperties

名前 説明
infrastructureEncryption サーバーでインフラストラクチャ暗号化が有効になっているかどうかを示す状態。 'Disabled'
'Enabled'
minimalTlsVersion サーバーに最小限の Tls バージョンを適用します。 'TLS1_0'
'TLS1_1'
'TLS1_2'
'TLSEnforcementDisabled'
publicNetworkAccess このサーバーに対してパブリック ネットワーク アクセスが許可されているかどうか。 値は省略可能ですが、渡される場合は 、'Enabled' または 'Disabled' である必要があります 'Disabled'
'Enabled'
sslEnforcement サーバーに接続するときに ssl 強制を有効にするか、有効にしないか。 'Disabled'
'Enabled'
storageProfile サーバーのストレージ プロファイル。 StorageProfile
version サーバーのバージョン。 '10'
'10.0'
'10.2'
'11'
'9.5'
'9.6'
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'

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

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

テンプレート 説明
App Services 上の PostgreSQL データベースを使用した Airflow Web App

Azure へのデプロイ
App Services に PostgreSQL データベースを使用して Airflow Web App をデプロイするためのテンプレート
バッファロー Web アプリ

Azure へのデプロイ
Azure で Golang Buffalo アプリケーションを迅速かつ安価に実行し始めます。
VNet を使用してAzure Database for PostgreSQLをデプロイする

Azure へのデプロイ
このテンプレートは、VNet 統合を使用して Azure Database for PostgreSQL をデプロイする方法を提供します。
PostgreSQL を使用した Linux 上の Airflow Docker Web App

Azure へのデプロイ
このテンプレートは、Azure Database for PostgreSQL を使用して Linux Web アプリに puckel/docker-airflow イメージ (最新タグ) を簡単にデプロイする方法を提供します
PostgreSQL を使った Linux 上の Web アプリ

Azure へのデプロイ
このテンプレートは、Azure database for PostgreSQL(Preview) を使用して Linux 上に Web アプリを簡単にデプロイする方法を提供します。
PostgreSQL を使用した Linux 上の Sonarqube Docker Web アプリ

Azure へのデプロイ
このテンプレートは、Azure Database for PostgreSQL (プレビュー) を使用して Linux Web アプリに Sonarqube Docker イメージ (alpine タグ) を簡単にデプロイする方法を提供します
PostgreSQL を使った Linux 上の Web アプリ

Azure へのデプロイ
このテンプレートは、Azure Database for PostgreSQL を使用して Linux に Web アプリを簡単にデプロイする方法を提供します。

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

サーバー リソースの種類は、次を対象とする操作でデプロイできます。

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

リソース形式

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

{
  "type": "Microsoft.DBforPostgreSQL/servers",
  "apiVersion": "2017-12-01",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "sku": {
    "capacity": "int",
    "family": "string",
    "name": "string",
    "size": "string",
    "tier": "string"
  },
  "identity": {
    "type": "SystemAssigned"
  },
  "properties": {
    "infrastructureEncryption": "string",
    "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.DBforPostgreSQL/servers'
apiVersion リソース API のバージョン '2017-12-01'
name リソース名 string (必須)

文字数制限: 3 から 63

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

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

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

ResourceIdentity

名前 説明
type ID の種類。 リソースの Azure Active Directory プリンシパルを自動的に作成して割り当てるには、これを "SystemAssigned" に設定します。 'SystemAssigned'

ServerPropertiesForCreateOrServerProperties

名前 説明
infrastructureEncryption サーバーでインフラストラクチャ暗号化が有効になっているかどうかを示す状態。 'Disabled'
'Enabled'
minimalTlsVersion サーバーに最小限の Tls バージョンを適用します。 'TLS1_0'
'TLS1_1'
'TLS1_2'
'TLSEnforcementDisabled'
publicNetworkAccess このサーバーに対してパブリック ネットワーク アクセスが許可されているかどうか。 値は省略可能ですが、渡される場合は 、'Enabled' または 'Disabled' である必要があります 'Disabled'
'Enabled'
sslEnforcement サーバーに接続するときに ssl 強制を有効にするか、有効にしないか。 'Disabled'
'Enabled'
storageProfile サーバーのストレージ プロファイル。 StorageProfile
version サーバーのバージョン。 '10'
'10.0'
'10.2'
'11'
'9.5'
'9.6'
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'

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

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

テンプレート 説明
App Services 上の PostgreSQL データベースを使用した Airflow Web App

Azure へのデプロイ
App Services に PostgreSQL データベースを使用して Airflow Web App をデプロイするためのテンプレート
バッファロー Web アプリ

Azure へのデプロイ
Azure で Golang Buffalo アプリケーションを迅速かつ安価に実行し始めます。
VNet を使用してAzure Database for PostgreSQLをデプロイする

Azure へのデプロイ
このテンプレートは、VNet 統合を使用して Azure Database for PostgreSQL をデプロイする方法を提供します。
PostgreSQL を使用した Linux 上の Airflow Docker Web App

Azure へのデプロイ
このテンプレートは、Azure Database for PostgreSQL を使用して Linux Web アプリに puckel/docker-airflow イメージ (最新のタグ) を簡単にデプロイする方法を提供します
PostgreSQL を使った Linux 上の Web アプリ

Azure へのデプロイ
このテンプレートは、Azure database for PostgreSQL(Preview) を使用して Linux 上に Web アプリを簡単にデプロイする方法を提供します。
PostgreSQL を使用した Linux 上の Sonarqube Docker Web アプリ

Azure へのデプロイ
このテンプレートは、Azure Database for PostgreSQL (プレビュー) を使用して Linux Web アプリに Sonarqube Docker イメージ (alpine タグ) を簡単にデプロイする方法を提供します
PostgreSQL を使った Linux 上の Web アプリ

Azure へのデプロイ
このテンプレートは、Azure Database for PostgreSQL を使用して Linux に Web アプリを簡単にデプロイする方法を提供します。

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

サーバー リソースの種類は、次を対象とする操作でデプロイできます。

  • リソース グループ

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

リソース形式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.DBforPostgreSQL/servers@2017-12-01"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  identity {
    type = "SystemAssigned"
  }
  body = jsonencode({
    properties = {
      infrastructureEncryption = "string"
      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.DBforPostgreSQL/servers@2017-12-01"
name リソース名 string (必須)

文字数制限: 3 から 63

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

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

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

ResourceIdentity

名前 説明
type ID の種類。 リソースの Azure Active Directory プリンシパルを自動的に作成して割り当てるには、これを "SystemAssigned" に設定します。 "SystemAssigned"

ServerPropertiesForCreateOrServerProperties

名前 説明
infrastructureEncryption サーバーでインフラストラクチャ暗号化が有効になっているかどうかを示す状態。 "無効"
"有効"
minimalTlsVersion サーバーに最小限の Tls バージョンを適用します。 "TLS1_0"
"TLS1_1"
"TLS1_2"
"TLSEnforcementDisabled"
publicNetworkAccess このサーバーに対してパブリック ネットワーク アクセスが許可されているかどうか。 値は省略可能ですが、渡される場合は 、'Enabled' または 'Disabled' である必要があります "無効"
"有効"
sslEnforcement サーバーに接続するときに ssl 強制を有効にするか、有効にしないか。 "無効"
"有効"
storageProfile サーバーのストレージ プロファイル。 StorageProfile
version サーバーのバージョン。 "10"
"10.0"
"10.2"
"11"
"9.5"
"9.6"
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"