你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Microsoft.DBForPostgreSql flexibleServers 2020-02-14-preview

Bicep 资源定义

flexibleServers 资源类型可以使用面向以下对象的操作进行部署:

有关每个 API 版本中更改的属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.DBForPostgreSql/flexibleServers 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.DBForPostgreSql/flexibleServers@2020-02-14-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'
    }
    displayName: 'string'
    haEnabled: 'string'
    logBackupStorageSku: 'string'
    maintenanceWindow: {
      customWindow: 'string'
      dayOfWeek: int
      startHour: int
      startMinute: int
    }
    pointInTimeUTC: 'string'
    privateDnsZoneArguments: {
      privateDnsZoneArmResourceId: 'string'
    }
    sourceResourceGroupName: 'string'
    sourceServerName: 'string'
    sourceSubscriptionId: 'string'
    standbyCount: int
    storageProfile: {
      backupRetentionDays: int
      geoRedundantBackup: 'string'
      storageMB: int
    }
    tags: {}
    version: 'string'
  }
}

属性值

flexibleServers

名称 说明
name 资源名称 字符串 (必需)
location 资源所在的地理位置 字符串 (必需)
标记 资源标记。 标记名称和值的字典。 请参阅 模板中的标记
sku SKU (服务器的定价层) 。 Sku
标识 服务器的 Azure Active Directory 标识。 标识
properties 服务器的属性。 ServerProperties

标识

名称 说明 Value
type 标识类型。 “SystemAssigned”

ServerProperties

名称 说明
administratorLogin 服务器的管理员登录名。 只能在 (创建服务器且需要创建) 时指定。 字符串
administratorLoginPassword (创建服务器) 所需的管理员登录密码。 字符串
availabilityZone 服务器的可用性区域信息。 字符串
createMode 创建新 PostgreSQL 服务器的模式。 'Default'
“PointInTimeRestore”
delegatedSubnetArguments ServerPropertiesDelegatedSubnetArguments
displayName 服务器的显示名称。 字符串
haEnabled 可以启用或禁用计数值 “Disabled”
“已启用”
logBackupStorageSku 服务器的日志备份存储 SKU。 字符串
maintenanceWindow 服务器的维护时段。 MaintenanceWindow
pointInTimeUTC 还原点创建时间 (ISO8601 格式) ,指定要从其还原的时间。 字符串
privateDnsZoneArguments ServerPropertiesPrivateDnsZoneArguments
sourceResourceGroupName 源的资源组名称提供要从中还原的 PostgreSQL 服务器名称。 字符串
sourceServerName 要从中还原的源 PostgreSQL 服务器名称。 字符串
sourceSubscriptionId 源的订阅 ID 提供要从其还原的 PostgreSQL 服务器名称。 字符串
standbyCount 备用数据库数。 int
storageProfile 服务器的存储配置文件。 StorageProfile
标记 键值对形式的应用程序特定元数据。 object
版本 PostgreSQL 服务器版本。 '11'
'12'

ServerPropertiesDelegatedSubnetArguments

名称 说明
subnetArmResourceId 委托的子网 arm 资源 ID。 字符串

MaintenanceWindow

名称 说明
customWindow 指示是启用或禁用自定义窗口 字符串
dayOfWeek 维护时段的星期数 int
startHour 维护时段的开始时间 int
startMinute 维护时段的开始分钟数 int

ServerPropertiesPrivateDnsZoneArguments

名称 说明
privateDnsZoneArmResourceId 专用 dns 区域 arm 资源 ID。 字符串

StorageProfile

名称 说明
backupRetentionDays 服务器的备份保留天数。 int
geoRedundantBackup 一个 值,该值指示服务器上是否启用了Geo-Redundant备份。 'Disabled'
'Enabled'
storageMB 服务器允许的最大存储。 int

SKU

名称 说明
name sku 的名称,通常为层 + 系列 + 核心,例如Standard_D4s_v3。 字符串 (必需)
特定 SKU 的层,例如可突发。 'Burstable'
“GeneralPurpose”
需要“MemoryOptimized” ()

快速入门模板

以下快速入门模板部署此资源类型。

模板 说明
具有 PostgreSQL 和 VNet 集成的 Web 应用上的 SonarQube

部署到 Azure
此模板提供通过 PostgreSQL 灵活服务器、VNet 集成和专用 DNS 轻松地将 SonarQube 部署到 Linux 上的 Web 应用。

ARM 模板资源定义

可以使用面向以下操作部署 flexibleServers 资源类型:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.DBForPostgreSql/flexibleServers 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.DBForPostgreSql/flexibleServers",
  "apiVersion": "2020-02-14-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"
    },
    "displayName": "string",
    "haEnabled": "string",
    "logBackupStorageSku": "string",
    "maintenanceWindow": {
      "customWindow": "string",
      "dayOfWeek": "int",
      "startHour": "int",
      "startMinute": "int"
    },
    "pointInTimeUTC": "string",
    "privateDnsZoneArguments": {
      "privateDnsZoneArmResourceId": "string"
    },
    "sourceResourceGroupName": "string",
    "sourceServerName": "string",
    "sourceSubscriptionId": "string",
    "standbyCount": "int",
    "storageProfile": {
      "backupRetentionDays": "int",
      "geoRedundantBackup": "string",
      "storageMB": "int"
    },
    "tags": {},
    "version": "string"
  }
}

属性值

flexibleServers

名称 说明 Value
type 资源类型 'Microsoft.DBForPostgreSql/flexibleServers'
apiVersion 资源 API 版本 “2020-02-14-preview”
name 资源名称 字符串 (必需)
location 资源所在的地理位置 字符串 (必需)
标记 资源标记。 标记名称和值的字典。 请参阅 模板中的标记
sku SKU (服务器的定价层) 。 Sku
标识 服务器的 Azure Active Directory 标识。 标识
properties 服务器的属性。 ServerProperties

标识

名称 说明 Value
type 标识类型。 “SystemAssigned”

ServerProperties

名称 说明
administratorLogin 服务器的管理员登录名。 只能在 (创建服务器且需要创建) 时指定。 字符串
administratorLoginPassword (创建服务器) 所需的管理员登录密码。 字符串
availabilityZone 服务器的可用性区域信息。 字符串
createMode 创建新 PostgreSQL 服务器的模式。 'Default'
“PointInTimeRestore”
delegatedSubnetArguments ServerPropertiesDelegatedSubnetArguments
displayName 服务器的显示名称。 字符串
haEnabled 可以启用或禁用计数值 “Disabled”
“已启用”
logBackupStorageSku 服务器的日志备份存储 SKU。 string
maintenanceWindow 服务器的维护时段。 MaintenanceWindow
pointInTimeUTC 还原点创建时间 (ISO8601 格式) ,指定要从其还原的时间。 字符串
privateDnsZoneArguments ServerPropertiesPrivateDnsZoneArguments
sourceResourceGroupName 源的资源组名称提供要从中还原的 PostgreSQL 服务器名称。 字符串
sourceServerName 要从中还原的源 PostgreSQL 服务器名称。 字符串
sourceSubscriptionId 源的订阅 ID 提供要从其还原的 PostgreSQL 服务器名称。 字符串
standbyCount 备用数据库数。 int
storageProfile 服务器的存储配置文件。 StorageProfile
标记 键值对形式的应用程序特定元数据。 对象
版本 PostgreSQL 服务器版本。 '11'
'12'

ServerPropertiesDelegatedSubnetArguments

名称 说明
subnetArmResourceId 委托的子网 arm 资源 ID。 字符串

MaintenanceWindow

名称 说明
customWindow 指示是启用或禁用自定义窗口 字符串
dayOfWeek 维护时段的星期数 int
startHour 维护时段的开始时间 int
startMinute 维护时段的开始分钟数 int

ServerPropertiesPrivateDnsZoneArguments

名称 说明
privateDnsZoneArmResourceId 专用 dns 区域 arm 资源 ID。 字符串

StorageProfile

名称 说明
backupRetentionDays 服务器的备份保留天数。 int
geoRedundantBackup 一个 值,该值指示服务器上是否启用了Geo-Redundant备份。 'Disabled'
'Enabled'
storageMB 服务器允许的最大存储。 int

SKU

名称 说明
name sku 的名称,通常为层 + 系列 + 核心,例如Standard_D4s_v3。 字符串 (必需)
特定 SKU 的层,例如可突发。 'Burstable'
“GeneralPurpose”
需要“MemoryOptimized” ()

快速入门模板

以下快速入门模板部署此资源类型。

模板 说明
具有 PostgreSQL 和 VNet 集成的 Web 应用上的 SonarQube

部署到 Azure
此模板提供通过 PostgreSQL 灵活服务器、VNet 集成和专用 DNS 轻松地将 SonarQube 部署到 Linux 上的 Web 应用。

Terraform (AzAPI 提供程序) 资源定义

可以使用面向以下操作部署 flexibleServers 资源类型:

  • 资源组

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.DBForPostgreSql/flexibleServers 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.DBForPostgreSql/flexibleServers@2020-02-14-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"
      }
      displayName = "string"
      haEnabled = "string"
      logBackupStorageSku = "string"
      maintenanceWindow = {
        customWindow = "string"
        dayOfWeek = int
        startHour = int
        startMinute = int
      }
      pointInTimeUTC = "string"
      privateDnsZoneArguments = {
        privateDnsZoneArmResourceId = "string"
      }
      sourceResourceGroupName = "string"
      sourceServerName = "string"
      sourceSubscriptionId = "string"
      standbyCount = int
      storageProfile = {
        backupRetentionDays = int
        geoRedundantBackup = "string"
        storageMB = int
      }
      tags = {}
      version = "string"
    }
    sku = {
      name = "string"
      tier = "string"
    }
  })
}

属性值

flexibleServers

名称 说明 Value
type 资源类型 “Microsoft.DBForPostgreSql/flexibleServers@2020-02-14-preview”
name 资源名称 字符串 (必需)
location 资源所在的地理位置 字符串 (必需)
parent_id 若要部署到资源组,请使用该资源组的 ID。 字符串 (必需)
标记 资源标记。 标记名称和值的字典。
sku 服务器的 SKU (定价层) 。 Sku
标识 服务器的 Azure Active Directory 标识。 标识
properties 服务器的属性。 ServerProperties

标识

名称 说明 Value
type 标识类型。 “SystemAssigned”

ServerProperties

名称 说明
administratorLogin 服务器的管理员登录名。 只能在 (创建服务器时指定,并且需要创建) 。 string
administratorLoginPassword 创建服务器) (管理员登录密码。 string
availabilityZone 服务器的可用性区域信息。 字符串
createMode 用于创建新的 PostgreSQL 服务器的模式。 “Default”
“PointInTimeRestore”
delegatedSubnetArguments ServerPropertiesDelegatedSubnetArguments
displayName 服务器的显示名称。 字符串
haEnabled 可以启用或禁用计数值 “Disabled”
“已启用”
logBackupStorageSku 服务器的日志备份存储 SKU。 字符串
maintenanceWindow 服务器的维护时段。 MaintenanceWindow
pointInTimeUTC 还原点创建时间 (ISO8601 格式) ,指定要从其还原的时间。 字符串
privateDnsZoneArguments ServerPropertiesPrivateDnsZoneArguments
sourceResourceGroupName 源的资源组名称提供要从中还原的 PostgreSQL 服务器名称。 字符串
sourceServerName 要从中还原的源 PostgreSQL 服务器名称。 string
sourceSubscriptionId 源的订阅 ID 提供要从其还原的 PostgreSQL 服务器名称。 字符串
standbyCount 备用数据库数。 int
storageProfile 服务器的存储配置文件。 StorageProfile
标记 键值对形式的应用程序特定元数据。 对象
版本 PostgreSQL 服务器版本。 "11"
"12"

ServerPropertiesDelegatedSubnetArguments

名称 说明
subnetArmResourceId 委托的子网 arm 资源 ID。 字符串

MaintenanceWindow

名称 说明
customWindow 指示是启用或禁用自定义窗口 字符串
dayOfWeek 维护时段的星期数 int
startHour 维护时段的开始时间 int
startMinute 维护时段的开始分钟数 int

ServerPropertiesPrivateDnsZoneArguments

名称 说明
privateDnsZoneArmResourceId 专用 dns 区域 arm 资源 ID。 字符串

StorageProfile

名称 说明
backupRetentionDays 服务器的备份保留天数。 int
geoRedundantBackup 指示是否在服务器上启用Geo-Redundant备份的值。 “Disabled”
“已启用”
storageMB 服务器允许的最大存储。 int

SKU

名称 说明
name SKU 的名称,通常为层 + 系列 + 核心,例如Standard_D4s_v3。 字符串 (必需)
特定 SKU 的层,例如可突发的。 “突发”
“GeneralPurpose”
需要“MemoryOptimized” ()