Microsoft.DBforPostgreSQL serverGroupsv2

Bicep resource definition

The serverGroupsv2 resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.DBforPostgreSQL/serverGroupsv2 resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.DBforPostgreSQL/serverGroupsv2@2022-11-08' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  properties: {
    administratorLoginPassword: 'string'
    citusVersion: 'string'
    coordinatorEnablePublicIpAccess: bool
    coordinatorServerEdition: 'string'
    coordinatorStorageQuotaInMb: int
    coordinatorVCores: int
    enableHa: bool
    enableShardsOnCoordinator: bool
    maintenanceWindow: {
      customWindow: 'string'
      dayOfWeek: int
      startHour: int
      startMinute: int
    }
    nodeCount: int
    nodeEnablePublicIpAccess: bool
    nodeServerEdition: 'string'
    nodeStorageQuotaInMb: int
    nodeVCores: int
    pointInTimeUTC: 'string'
    postgresqlVersion: 'string'
    preferredPrimaryZone: 'string'
    sourceLocation: 'string'
    sourceResourceId: 'string'
  }
}

Property values

serverGroupsv2

Name Description Value
name The resource name string (required)
location The geo-location where the resource lives string (required)
tags Resource tags. Dictionary of tag names and values. See Tags in templates
properties Properties of the cluster. ClusterProperties

ClusterProperties

Name Description Value
administratorLoginPassword The password of the administrator login. Required for creation. string
citusVersion The Citus extension version on all cluster servers. string
coordinatorEnablePublicIpAccess If public access is enabled on coordinator. bool
coordinatorServerEdition The edition of a coordinator server (default: GeneralPurpose). Required for creation. string
coordinatorStorageQuotaInMb The storage of a server in MB. Required for creation. See /azure/cosmos-db/postgresql/resources-compute for more information. int
coordinatorVCores The vCores count of a server (max: 96). Required for creation. See /azure/cosmos-db/postgresql/resources-compute for more information. int
enableHa If high availability (HA) is enabled or not for the cluster. bool
enableShardsOnCoordinator If shards on coordinator is enabled or not for the cluster. bool
maintenanceWindow Maintenance window of a cluster. MaintenanceWindow
nodeCount Worker node count of the cluster. When node count is 0, it represents a single node configuration with the ability to create distributed tables on that node. 2 or more worker nodes represent multi-node configuration. Node count value cannot be 1. Required for creation. int
nodeEnablePublicIpAccess If public access is enabled on worker nodes. bool
nodeServerEdition The edition of a node server (default: MemoryOptimized). string
nodeStorageQuotaInMb The storage in MB on each worker node. See /azure/cosmos-db/postgresql/resources-compute for more information. int
nodeVCores The compute in vCores on each worker node (max: 104). See /azure/cosmos-db/postgresql/resources-compute for more information. int
pointInTimeUTC Date and time in UTC (ISO8601 format) for cluster restore. string
postgresqlVersion The major PostgreSQL version on all cluster servers. string
preferredPrimaryZone Preferred primary availability zone (AZ) for all cluster servers. string
sourceLocation The Azure region of source cluster for read replica clusters. string
sourceResourceId The resource id of source cluster for read replica clusters. string

MaintenanceWindow

Name Description Value
customWindow Indicates whether custom maintenance window is enabled or not. string
dayOfWeek Preferred day of the week for maintenance window. int
startHour Start hour within preferred day of the week for maintenance window. int
startMinute Start minute within the start hour for maintenance window. int

ARM template resource definition

The serverGroupsv2 resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.DBforPostgreSQL/serverGroupsv2 resource, add the following JSON to your template.

{
  "type": "Microsoft.DBforPostgreSQL/serverGroupsv2",
  "apiVersion": "2022-11-08",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "properties": {
    "administratorLoginPassword": "string",
    "citusVersion": "string",
    "coordinatorEnablePublicIpAccess": "bool",
    "coordinatorServerEdition": "string",
    "coordinatorStorageQuotaInMb": "int",
    "coordinatorVCores": "int",
    "enableHa": "bool",
    "enableShardsOnCoordinator": "bool",
    "maintenanceWindow": {
      "customWindow": "string",
      "dayOfWeek": "int",
      "startHour": "int",
      "startMinute": "int"
    },
    "nodeCount": "int",
    "nodeEnablePublicIpAccess": "bool",
    "nodeServerEdition": "string",
    "nodeStorageQuotaInMb": "int",
    "nodeVCores": "int",
    "pointInTimeUTC": "string",
    "postgresqlVersion": "string",
    "preferredPrimaryZone": "string",
    "sourceLocation": "string",
    "sourceResourceId": "string"
  }
}

Property values

serverGroupsv2

Name Description Value
type The resource type 'Microsoft.DBforPostgreSQL/serverGroupsv2'
apiVersion The resource api version '2022-11-08'
name The resource name string (required)
location The geo-location where the resource lives string (required)
tags Resource tags. Dictionary of tag names and values. See Tags in templates
properties Properties of the cluster. ClusterProperties

ClusterProperties

Name Description Value
administratorLoginPassword The password of the administrator login. Required for creation. string
citusVersion The Citus extension version on all cluster servers. string
coordinatorEnablePublicIpAccess If public access is enabled on coordinator. bool
coordinatorServerEdition The edition of a coordinator server (default: GeneralPurpose). Required for creation. string
coordinatorStorageQuotaInMb The storage of a server in MB. Required for creation. See /azure/cosmos-db/postgresql/resources-compute for more information. int
coordinatorVCores The vCores count of a server (max: 96). Required for creation. See /azure/cosmos-db/postgresql/resources-compute for more information. int
enableHa If high availability (HA) is enabled or not for the cluster. bool
enableShardsOnCoordinator If shards on coordinator is enabled or not for the cluster. bool
maintenanceWindow Maintenance window of a cluster. MaintenanceWindow
nodeCount Worker node count of the cluster. When node count is 0, it represents a single node configuration with the ability to create distributed tables on that node. 2 or more worker nodes represent multi-node configuration. Node count value cannot be 1. Required for creation. int
nodeEnablePublicIpAccess If public access is enabled on worker nodes. bool
nodeServerEdition The edition of a node server (default: MemoryOptimized). string
nodeStorageQuotaInMb The storage in MB on each worker node. See /azure/cosmos-db/postgresql/resources-compute for more information. int
nodeVCores The compute in vCores on each worker node (max: 104). See /azure/cosmos-db/postgresql/resources-compute for more information. int
pointInTimeUTC Date and time in UTC (ISO8601 format) for cluster restore. string
postgresqlVersion The major PostgreSQL version on all cluster servers. string
preferredPrimaryZone Preferred primary availability zone (AZ) for all cluster servers. string
sourceLocation The Azure region of source cluster for read replica clusters. string
sourceResourceId The resource id of source cluster for read replica clusters. string

MaintenanceWindow

Name Description Value
customWindow Indicates whether custom maintenance window is enabled or not. string
dayOfWeek Preferred day of the week for maintenance window. int
startHour Start hour within preferred day of the week for maintenance window. int
startMinute Start minute within the start hour for maintenance window. int

Terraform (AzAPI provider) resource definition

The serverGroupsv2 resource type can be deployed with operations that target:

  • Resource groups

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.DBforPostgreSQL/serverGroupsv2 resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.DBforPostgreSQL/serverGroupsv2@2022-11-08"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      administratorLoginPassword = "string"
      citusVersion = "string"
      coordinatorEnablePublicIpAccess = bool
      coordinatorServerEdition = "string"
      coordinatorStorageQuotaInMb = int
      coordinatorVCores = int
      enableHa = bool
      enableShardsOnCoordinator = bool
      maintenanceWindow = {
        customWindow = "string"
        dayOfWeek = int
        startHour = int
        startMinute = int
      }
      nodeCount = int
      nodeEnablePublicIpAccess = bool
      nodeServerEdition = "string"
      nodeStorageQuotaInMb = int
      nodeVCores = int
      pointInTimeUTC = "string"
      postgresqlVersion = "string"
      preferredPrimaryZone = "string"
      sourceLocation = "string"
      sourceResourceId = "string"
    }
  })
}

Property values

serverGroupsv2

Name Description Value
type The resource type "Microsoft.DBforPostgreSQL/serverGroupsv2@2022-11-08"
name The resource name string (required)
location The geo-location where the resource lives string (required)
parent_id To deploy to a resource group, use the ID of that resource group. string (required)
tags Resource tags. Dictionary of tag names and values.
properties Properties of the cluster. ClusterProperties

ClusterProperties

Name Description Value
administratorLoginPassword The password of the administrator login. Required for creation. string
citusVersion The Citus extension version on all cluster servers. string
coordinatorEnablePublicIpAccess If public access is enabled on coordinator. bool
coordinatorServerEdition The edition of a coordinator server (default: GeneralPurpose). Required for creation. string
coordinatorStorageQuotaInMb The storage of a server in MB. Required for creation. See /azure/cosmos-db/postgresql/resources-compute for more information. int
coordinatorVCores The vCores count of a server (max: 96). Required for creation. See /azure/cosmos-db/postgresql/resources-compute for more information. int
enableHa If high availability (HA) is enabled or not for the cluster. bool
enableShardsOnCoordinator If shards on coordinator is enabled or not for the cluster. bool
maintenanceWindow Maintenance window of a cluster. MaintenanceWindow
nodeCount Worker node count of the cluster. When node count is 0, it represents a single node configuration with the ability to create distributed tables on that node. 2 or more worker nodes represent multi-node configuration. Node count value cannot be 1. Required for creation. int
nodeEnablePublicIpAccess If public access is enabled on worker nodes. bool
nodeServerEdition The edition of a node server (default: MemoryOptimized). string
nodeStorageQuotaInMb The storage in MB on each worker node. See /azure/cosmos-db/postgresql/resources-compute for more information. int
nodeVCores The compute in vCores on each worker node (max: 104). See /azure/cosmos-db/postgresql/resources-compute for more information. int
pointInTimeUTC Date and time in UTC (ISO8601 format) for cluster restore. string
postgresqlVersion The major PostgreSQL version on all cluster servers. string
preferredPrimaryZone Preferred primary availability zone (AZ) for all cluster servers. string
sourceLocation The Azure region of source cluster for read replica clusters. string
sourceResourceId The resource id of source cluster for read replica clusters. string

MaintenanceWindow

Name Description Value
customWindow Indicates whether custom maintenance window is enabled or not. string
dayOfWeek Preferred day of the week for maintenance window. int
startHour Start hour within preferred day of the week for maintenance window. int
startMinute Start minute within the start hour for maintenance window. int