Create an Azure HorizonDB cluster

Azure HorizonDB is a cloud-native, fully managed, AI-ready database service built on PostgreSQL. It combines a disaggregated compute and storage architecture with a database-as-a-log design to deliver predictable performance, enterprise-grade security, high availability, and seamless scalability for mission-critical workloads.

This quickstart shows you how to create an Azure HorizonDB cluster by using the Azure portal or Azure Resource Manager templates (ARM templates).

Prerequisites

Before you begin, make sure you have:

  • An Azure subscription. If you don't have one, create a free Azure account.
  • Appropriate permissions to create resources in your subscription.

Understand what you're creating

An Azure HorizonDB cluster includes:

  • A configured set of compute resources and storage resources.
  • Deployment within an Azure resource group.
  • A postgres database created by default.
  • An azure_maintenance database for managed service processes.
  • An azure_sys database for query store and autonomous tuning features.

Note

Don't include any personal, sensitive, or confidential information in resource names (for example, table name, database name) and resource tags. Data you enter in these fields isn't considered customer data.

Cluster creation steps at a glance

To create a cluster, use the Azure portal or the REST API (2026-10-01-preview). Both methods use the same settings. The portal collects all of them in one wizard and then creates every resource for you in the correct order, including the read-write pool, named defaultpool, and any private endpoint. By using the REST API, you create each resource yourself, one request at a time, as described in REST API request order.

Decide these settings first. You can't change the PostgreSQL version, geo-redundant backup, or data encryption type after you create the cluster. You can use either geo-redundant backup or a customer-managed key, but not both, so choose the one that your workload needs.

Before you create a production cluster, prepare the resources for the features that you plan to use:

Create a cluster using the Azure portal

Follow these steps to create an Azure HorizonDB cluster by using the Azure portal. The wizard guides you through essential configuration options for compute, storage, and authentication.

  1. Sign in to the Azure portal.
  2. Select Create a resource in the upper-left corner.
  3. Under Categories, select Databases.
  4. Find and select Azure HorizonDB.
  5. Select Create.

Configure basic settings

Project details

Setting Suggested value Notes
Subscription Your subscription Choose where to bill the resource
Resource group {resourceGroup} Create new or select existing

Screenshot of Project details in the Azure portal with fictitious subscription and resource group values.

Cluster details

Setting Suggested value Description
Cluster name horizondb-production Must be unique within the same Azure subscription and resource group.
Region Region closest to you Consider compliance, data residency, pricing, and proximity to users.
PostgreSQL version Latest available V17 and V18(Preview) are currently supported.
Workload type Dev/Test or Production Consider what type of workload you have.

Screenshot of Cluster details in the Azure portal showing cluster, workload, and compute pool settings.

Compute pool details

Select Configure to customize:

Pool
Setting Suggested value Description
Nodes 2 nodes (1 read/write, 1 read) Number of nodes in the pool.
High availability
Setting Suggested value Description
High availability Zone redundant Protect your cluster against availability zone failures within a region.
Node compute
Setting Suggested value Description
Processor Intel Type of processors (Intel or AMD) for writer and reader nodes.
Generation HorizonDB Generation 1 Intel Edsv6 or AMD Eadsv6.
vCores 2 Number of vCores provisioned for writer and reader nodes (memory is automatically allocated as 8GB/vCore).

Select Save to confirm or Cancel to discard changes.

High availability

If you select Disabled for high availability, the cluster uses one writer node.

If you select Zone redundant, the service distributes the nodes of your cluster across multiple availability zones. If required cross-zone capacity is unavailable, the operation fails.

If you select Any zone, you get flexible compute node placement. The nodes might be in a single zone, but cross-zone placement isn't guaranteed.

Screenshot of high availability settings for an Azure HorizonDB cluster in the Azure portal.

Backups

Azure HorizonDB automatically takes backups that you can use to restore your cluster to a point in time.

Setting Suggested value Description
Backup retention period 7 days How long HorizonDB retains your backups.

If you select Geo-redundancy, HorizonDB retains a backup in a paired region so your cluster can recover from a regional outage.

Screenshot of backup retention and geo-redundancy settings for an Azure HorizonDB cluster in the Azure portal.

Authentication

Setting Description Recommended
Authentication method How users authenticate - PostgreSQL authentication only (for quickstart)
- Microsoft Entra authentication (for production)
- Both (for flexibility)
Admin username adminuser - Must be 1-63 characters
- Only numbers and letters
- Can't start with pg_
- Can't be system reserved names
Password Complex password 8-128 characters with uppercase, lowercase, numbers, and special characters

AI capabilities

If you select Enable AI features, HorizonDB automatically activates Model Management, pgvector, and pg_diskann to add built-in AI capabilities to your cluster.

Configure networking

Choose your connectivity method:

Network connectivity

Connect through a public endpoint by using firewall rules.

Connectivity method:

Setting Description
Public access Only the IP addresses you configure in the Firewall rules section can access this cluster. By default, no public IP addresses are allowed.

Firewall rules:

Setting Description
Allow Azure services Permit connections from all Azure services
Add current client IP Add your IP address to the allow list

Private endpoint:

Connect through a private endpoint within a virtual network.

Configure security

Setting Can change later Options
Data encryption key ❌ No Service-managed or Customer-managed

Add resource tags (optional)

Organize resources with name-value pairs:

Name Value Purpose
Environment Development Identify environment type
CostCenter IT-Dept Track costs by department
Owner admin@contoso.com Identify responsible party

Review and create

  1. Select Review + create.
  2. Review all configurations.
  3. Select Create to deploy.

Deployment typically takes 5-10 minutes. When complete, select Go to resource to access your cluster.

Create a cluster using an ARM template

ARM template overview

Azure Resource Manager templates (ARM templates) let you define infrastructure as code. Use templates for repeatable deployments.

Minimal ARM template

This example uses the 2026-10-01-preview REST API specification to create a PostgreSQL 17 cluster, a compute pool, password authentication, and a firewall rule for one client IPv4 address. The pool name is the cluster name with a -pool suffix.

Note

This minimal configuration uses one AMD Generation 1 node with 2 vCores and high availability disabled. Choose a region that supports this compute configuration or change to Intel as the compute processor type.

Save this file as horizondb-template.json:

{
    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "clusterName": {
            "type": "string",
            "defaultValue": "horizondb-quickstart",
            "minLength": 1,
            "maxLength": 58,
            "metadata": {
                "description": "Lowercase cluster name. Use letters, digits, and hyphens, and start and end with a letter or digit. The pool name adds the -pool suffix."
            }
        },
        "location": {
            "type": "string",
            "defaultValue": "[resourceGroup().location]",
            "metadata": {
                "description": "Azure region that supports HorizonDB and the compute configuration in this template."
            }
        },
        "administratorLogin": {
            "type": "string",
            "defaultValue": "adminuser",
            "minLength": 1,
            "maxLength": 63
        },
        "administratorLoginPassword": {
            "type": "securestring",
            "minLength": 8,
            "maxLength": 128
        },
        "clientIpAddress": {
            "type": "string",
            "minLength": 7,
            "maxLength": 15,
            "metadata": {
                "description": "Public IPv4 address of the client that will connect to the cluster."
            }
        }
    },
    "variables": {
        "poolName": "[concat(parameters('clusterName'), '-pool')]"
    },
    "resources": [
        {
            "type": "Microsoft.HorizonDb/clusters",
            "apiVersion": "2026-10-01-preview",
            "name": "[parameters('clusterName')]",
            "location": "[parameters('location')]",
            "properties": {
                "postgreSqlVersion": "17",
                "network": {
                    "publicAccess": "Enabled"
                },
                "backup": {
                    "geoRedundancy": "Disabled"
                }
            }
        },
        {
            "type": "Microsoft.HorizonDb/clusters/pools",
            "apiVersion": "2026-10-01-preview",
            "name": "[concat(parameters('clusterName'), '/', variables('poolName'))]",
            "dependsOn": [
                "[resourceId('Microsoft.HorizonDb/clusters', parameters('clusterName'))]"
            ],
            "properties": {
                "computeModel": {
                    "type": "Provisioned",
                    "computeProcessor": "AMD",
                    "computeGeneration": 1,
                    "vCores": 2
                },
                "nodeCount": 1,
                "highAvailability": {
                    "mode": "Disabled"
                }
            }
        },
        {
            "type": "Microsoft.HorizonDb/clusters/authentications",
            "apiVersion": "2026-10-01-preview",
            "name": "[concat(parameters('clusterName'), '/passwordMethod')]",
            "dependsOn": [
                "[resourceId('Microsoft.HorizonDb/clusters/pools', parameters('clusterName'), variables('poolName'))]"
            ],
            "properties": {
                "state": "Enabled",
                "administratorLogin": "[parameters('administratorLogin')]",
                "administratorLoginPassword": "[parameters('administratorLoginPassword')]"
            }
        },
        {
            "type": "Microsoft.HorizonDb/clusters/pools/firewallRules",
            "apiVersion": "2026-10-01-preview",
            "name": "[concat(parameters('clusterName'), '/', variables('poolName'), '/client-ip')]",
            "dependsOn": [
                "[resourceId('Microsoft.HorizonDb/clusters/pools', parameters('clusterName'), variables('poolName'))]",
                "[resourceId('Microsoft.HorizonDb/clusters/authentications', parameters('clusterName'), 'passwordMethod')]"
            ],
            "properties": {
                "startIpAddress": "[parameters('clientIpAddress')]",
                "endIpAddress": "[parameters('clientIpAddress')]"
            }
        }
    ]
}

Deploy the ARM template

  1. Sign in to the Azure portal.
  2. Search for Template deployment and select Create.
  3. Select Build your own template in editor.
  4. Paste or upload the ARM template JSON, then select Save.
  5. Select your subscription and resource group. Enter the cluster name, a supported location, the administrator sign-in name, and the administrator password. For clientIpAddress, enter the public IPv4 address of the computer that connects to the cluster.
  6. Review the parameters and submit the deployment.

Get connection information

After creating your cluster, retrieve connection details:

Use Azure portal

  1. Go to your cluster in the Azure portal.
  2. Open the Overview page.
  3. Copy these values:
    • Cluster name (Read-Write endpoint): {cluster}.rw.{randomId}.australiaeast.horizondb.azure.com
    • Administrator login: {administratorLogin}

Connect by using psql

Install psql

If you don't have PostgreSQL client tools, download PostgreSQL for your platform.

Connect to your cluster

psql "host={cluster}.rw.{randomId}.australiaeast.horizondb.azure.com port=5432 dbname=postgres user={administratorLogin} sslmode=require"

When prompted, enter the administrator password you set during cluster creation.

Connection string format

host={cluster}.rw.{randomId}.australiaeast.horizondb.azure.com port=5432 dbname={databaseName} user={administratorLogin} password={administratorLoginPassword} sslmode=require

Verify connection

After connecting, you see:

psql (16.12, server 17.9 (Azure HorizonDB (c8e7b717d05)(release)))
WARNING: psql major version 16, server major version 17.
         Some psql features might not work.
SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, compression: off)
Type "help" for help.

postgres=>

Create a database

CREATE DATABASE user_database;
\c user_database
\q

Troubleshoot connection issues

Firewall blocking connection

If you see:

connection to server at "{cluster}.rw.{randomId}.australiaeast.horizondb.azure.com" (###.###.###.###), port 5432 failed: Connection timed out

Solution: Make sure that there's a firewall rule whose range of start and end IP addresses includes the IP address that your computer uses to access the cluster.

SSL required but not configured

Ensure your connection string includes sslmode=require.

Clean up resources

When you finish the quickstart, delete the resources to avoid charges.

Delete the entire resource group

Go to Azure portal and search for your resource group. Delete the entire resource group.

Delete only the cluster

Go to Azure portal and search for your Azure HorizonDB. Delete the Azure HorizonDB.

Create a cluster with production settings

The following table lists each setting in the order that the portal shows it, with a production value and the matching REST API property.

Step Production setting Azure portal REST API
Project and cluster details Subscription, resource group, region, and a lowercase cluster name that uses letters, digits, and hyphens Project details and Cluster details Cluster request URL and location
PostgreSQL version 17. PostgreSQL 18 is in preview. PostgreSQL version Cluster: properties.postgreSqlVersion
Read-write pool A processor, generation, and vCore count that the region supports, with at least two nodes and Zone redundant high availability Compute pool details > Configure Pool: properties.computeModel (type: Provisioned, computeProcessor, computeGeneration, vCores), properties.nodeCount, and properties.highAvailability.mode: ZoneRedundant
Backup retention 35 days, the maximum. The default is 7 days. Longer retention increases backup storage cost. Backups > Backup retention period Cluster: properties.backup.retentionDays
Geo-redundant backup Enabled, unless you use a customer-managed key Backups > Geo-redundancy Cluster: properties.backup.geoRedundancy
Authentication method PostgreSQL + Microsoft Entra authentication Authentication authentications/passwordMethod and authentications/microsoftEntra, each with properties.state: Enabled
Administrator credentials An administrator username and a strong password Admin username and Password authentications/passwordMethod: properties.administratorLogin and properties.administratorLoginPassword
Microsoft Entra administrator A user, group, or service principal Microsoft Entra administrator microsoftEntraAdministrators/{objectId}: properties.principalName and properties.principalType
AI capabilities Enabled. In the portal, this setting also adds the vector and pg_diskann extensions to the allow list. AI capabilities > Enable AI features Cluster update: properties.aiModelManagement: Enabled
Public access Enabled only if clients outside your virtual networks connect, with a firewall rule for each client IP range Networking > Public access and Firewall rules Cluster: properties.network.publicAccess (default Disabled). Pool: firewallRules/{ruleName}
Private endpoint A private endpoint for the read-write endpoint Networking > Private endpoint Microsoft.Network/privateEndpoints with groupIds set to the cluster name
Data encryption Customer-managed key, unless you use geo-redundant backup Security > Data encryption key Cluster: identity and properties.dataEncryption (type: AzureKeyVault, a versionless primaryKeyUri, and primaryUserAssignedIdentityId)
Create Review all settings Review + create > Create Send the requests in REST API request order

REST API request order

Send the requests in this order, and append ?api-version=2026-10-01-preview to each Azure HorizonDB request URL. Each PUT and PATCH request is a long-running operation. Before you send the next request, poll the Azure-AsyncOperation or Location response header until the operation succeeds. For more information, see Track asynchronous Azure operations.

In these steps, {cluster} stands for https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}.

  1. Check regional capabilities. Send GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.HorizonDb/locations/{location}/capabilities to list the PostgreSQL versions, processors, generations, and vCore counts that the region supports.
  2. Create the cluster. Send PUT {cluster} with location, properties.postgreSqlVersion, properties.backup (geoRedundancy and retentionDays), and properties.network.publicAccess. For a customer-managed key, also include identity and properties.dataEncryption. The cluster has no compute until you create a pool.
  3. Create the read-write pool. Send PUT {cluster}/pools/{poolName} with computeModel, nodeCount, and highAvailability. The first pool becomes the read-write pool. Use a pool name that's different from the cluster name. This API version supports one pool per cluster.
  4. Enable password authentication. Send PUT {cluster}/authentications/passwordMethod with state set to Enabled, administratorLogin, and administratorLoginPassword. This request requires a pool.
  5. Enable Microsoft Entra authentication. Send PUT {cluster}/authentications/microsoftEntra with state set to Enabled.
  6. Add the Microsoft Entra administrator. Send PUT {cluster}/microsoftEntraAdministrators/{objectId} with principalName and principalType. This request requires a pool.
  7. Add firewall rules. If public access is enabled, send PUT {cluster}/pools/{poolName}/firewallRules/{ruleName} with startIpAddress and endIpAddress for each client IP range.
  8. Create the private endpoint. Create a Microsoft.Network/privateEndpoints resource with a private link service connection whose privateLinkServiceId is the cluster resource ID and whose groupIds contains the cluster name. Link a private DNS zone named privatelink.horizondb.azure.com to the virtual network. If the connection is Pending, approve it by sending PUT {cluster}/privateEndpointConnections/{connectionName} with privateLinkServiceConnectionState.status set to Approved. Approval requires a pool.
  9. Enable AI features. Send PATCH {cluster} with properties.aiModelManagement set to Enabled. In the portal, this setting also adds the vector and pg_diskann extensions to the allow list. If they aren't in the azure.extensions allow list after this request, allow them.
  10. Get the connection endpoints. Send GET {cluster}/endpoints to get the host names of the cluster's read-write endpoint and the pool's read-only endpoint. Then connect by using psql.