published on Thursday, Aug 13, 2026 by Pulumi
published on Thursday, Aug 13, 2026 by Pulumi
Properties of a server.
Uses Azure REST API version 2025-08-01. In version 2.x of the Azure Native provider, it used API version 2022-12-01.
Other available API versions: 2022-12-01, 2023-03-01-preview, 2023-06-01-preview, 2023-12-01-preview, 2024-03-01-preview, 2024-08-01, 2024-11-01-preview, 2025-01-01-preview, 2025-06-01-preview, 2026-01-01-preview, 2026-04-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native dbforpostgresql [ApiVersion]. See the version guide for details.
Example Usage
Create a new elastic cluster.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var server = new AzureNative.DBforPostgreSQL.Server("server", new()
{
AdministratorLogin = "examplelogin",
AdministratorLoginPassword = "examplepassword",
Backup = new AzureNative.DBforPostgreSQL.Inputs.BackupArgs
{
BackupRetentionDays = 7,
GeoRedundantBackup = AzureNative.DBforPostgreSQL.GeographicallyRedundantBackup.Disabled,
},
Cluster = new AzureNative.DBforPostgreSQL.Inputs.ClusterArgs
{
ClusterSize = 2,
DefaultDatabaseName = "clusterdb",
},
CreateMode = AzureNative.DBforPostgreSQL.CreateMode.Create,
HighAvailability = new AzureNative.DBforPostgreSQL.Inputs.HighAvailabilityArgs
{
Mode = AzureNative.DBforPostgreSQL.PostgreSqlFlexibleServerHighAvailabilityMode.Disabled,
},
Location = "eastus",
Network = new AzureNative.DBforPostgreSQL.Inputs.NetworkArgs
{
PublicNetworkAccess = AzureNative.DBforPostgreSQL.ServerPublicNetworkAccessState.Disabled,
},
ResourceGroupName = "exampleresourcegroup",
ServerName = "exampleserver",
Sku = new AzureNative.DBforPostgreSQL.Inputs.SkuArgs
{
Name = "Standard_D4ds_v5",
Tier = AzureNative.DBforPostgreSQL.SkuTier.GeneralPurpose,
},
Storage = new AzureNative.DBforPostgreSQL.Inputs.StorageArgs
{
AutoGrow = AzureNative.DBforPostgreSQL.StorageAutoGrow.Disabled,
StorageSizeGB = 256,
Tier = AzureNative.DBforPostgreSQL.AzureManagedDiskPerformanceTier.P15,
},
Version = AzureNative.DBforPostgreSQL.PostgresMajorVersion.PostgresMajorVersion_17,
});
});
package main
import (
dbforpostgresql "github.com/pulumi/pulumi-azure-native-sdk/dbforpostgresql/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dbforpostgresql.NewServer(ctx, "server", &dbforpostgresql.ServerArgs{
AdministratorLogin: pulumi.String("examplelogin"),
AdministratorLoginPassword: pulumi.String("examplepassword"),
Backup: &dbforpostgresql.BackupTypeArgs{
BackupRetentionDays: pulumi.Int(7),
GeoRedundantBackup: pulumi.String(dbforpostgresql.GeographicallyRedundantBackupDisabled),
},
Cluster: &dbforpostgresql.ClusterArgs{
ClusterSize: pulumi.Int(2),
DefaultDatabaseName: pulumi.String("clusterdb"),
},
CreateMode: pulumi.String(dbforpostgresql.CreateModeCreate),
HighAvailability: &dbforpostgresql.HighAvailabilityArgs{
Mode: pulumi.String(dbforpostgresql.PostgreSqlFlexibleServerHighAvailabilityModeDisabled),
},
Location: pulumi.String("eastus"),
Network: &dbforpostgresql.NetworkArgs{
PublicNetworkAccess: pulumi.String(dbforpostgresql.ServerPublicNetworkAccessStateDisabled),
},
ResourceGroupName: pulumi.String("exampleresourcegroup"),
ServerName: pulumi.String("exampleserver"),
Sku: &dbforpostgresql.SkuArgs{
Name: pulumi.String("Standard_D4ds_v5"),
Tier: pulumi.String(dbforpostgresql.SkuTierGeneralPurpose),
},
Storage: &dbforpostgresql.StorageArgs{
AutoGrow: pulumi.String(dbforpostgresql.StorageAutoGrowDisabled),
StorageSizeGB: pulumi.Int(256),
Tier: pulumi.String(dbforpostgresql.AzureManagedDiskPerformanceTierP15),
},
Version: pulumi.String(dbforpostgresql.PostgresMajorVersion_17),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_dbforpostgresql_server" "server" {
administrator_login = "examplelogin"
administrator_login_password = "examplepassword"
backup = {
backup_retention_days = 7
geo_redundant_backup = "Disabled"
}
cluster = {
cluster_size = 2
default_database_name = "clusterdb"
}
create_mode = "Create"
high_availability = {
mode = "Disabled"
}
location = "eastus"
network = {
public_network_access = "Disabled"
}
resource_group_name = "exampleresourcegroup"
server_name = "exampleserver"
sku = {
name = "Standard_D4ds_v5"
tier = "GeneralPurpose"
}
storage = {
auto_grow = "Disabled"
storage_size_gb = 256
tier = "P15"
}
version = "17"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dbforpostgresql.Server;
import com.pulumi.azurenative.dbforpostgresql.ServerArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.BackupArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.ClusterArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.HighAvailabilityArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.NetworkArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.SkuArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.StorageArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var server = new Server("server", ServerArgs.builder()
.administratorLogin("examplelogin")
.administratorLoginPassword("examplepassword")
.backup(BackupArgs.builder()
.backupRetentionDays(7)
.geoRedundantBackup("Disabled")
.build())
.cluster(ClusterArgs.builder()
.clusterSize(2)
.defaultDatabaseName("clusterdb")
.build())
.createMode("Create")
.highAvailability(HighAvailabilityArgs.builder()
.mode("Disabled")
.build())
.location("eastus")
.network(NetworkArgs.builder()
.publicNetworkAccess("Disabled")
.build())
.resourceGroupName("exampleresourcegroup")
.serverName("exampleserver")
.sku(SkuArgs.builder()
.name("Standard_D4ds_v5")
.tier("GeneralPurpose")
.build())
.storage(StorageArgs.builder()
.autoGrow("Disabled")
.storageSizeGB(256)
.tier("P15")
.build())
.version("17")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const server = new azure_native.dbforpostgresql.Server("server", {
administratorLogin: "examplelogin",
administratorLoginPassword: "examplepassword",
backup: {
backupRetentionDays: 7,
geoRedundantBackup: azure_native.dbforpostgresql.GeographicallyRedundantBackup.Disabled,
},
cluster: {
clusterSize: 2,
defaultDatabaseName: "clusterdb",
},
createMode: azure_native.dbforpostgresql.CreateMode.Create,
highAvailability: {
mode: azure_native.dbforpostgresql.PostgreSqlFlexibleServerHighAvailabilityMode.Disabled,
},
location: "eastus",
network: {
publicNetworkAccess: azure_native.dbforpostgresql.ServerPublicNetworkAccessState.Disabled,
},
resourceGroupName: "exampleresourcegroup",
serverName: "exampleserver",
sku: {
name: "Standard_D4ds_v5",
tier: azure_native.dbforpostgresql.SkuTier.GeneralPurpose,
},
storage: {
autoGrow: azure_native.dbforpostgresql.StorageAutoGrow.Disabled,
storageSizeGB: 256,
tier: azure_native.dbforpostgresql.AzureManagedDiskPerformanceTier.P15,
},
version: azure_native.dbforpostgresql.PostgresMajorVersion.PostgresMajorVersion_17,
});
import pulumi
import pulumi_azure_native as azure_native
server = azure_native.dbforpostgresql.Server("server",
administrator_login="examplelogin",
administrator_login_password="examplepassword",
backup={
"backup_retention_days": 7,
"geo_redundant_backup": azure_native.dbforpostgresql.GeographicallyRedundantBackup.DISABLED,
},
cluster={
"cluster_size": 2,
"default_database_name": "clusterdb",
},
create_mode=azure_native.dbforpostgresql.CreateMode.CREATE,
high_availability={
"mode": azure_native.dbforpostgresql.PostgreSqlFlexibleServerHighAvailabilityMode.DISABLED,
},
location="eastus",
network={
"public_network_access": azure_native.dbforpostgresql.ServerPublicNetworkAccessState.DISABLED,
},
resource_group_name="exampleresourcegroup",
server_name="exampleserver",
sku={
"name": "Standard_D4ds_v5",
"tier": azure_native.dbforpostgresql.SkuTier.GENERAL_PURPOSE,
},
storage={
"auto_grow": azure_native.dbforpostgresql.StorageAutoGrow.DISABLED,
"storage_size_gb": 256,
"tier": azure_native.dbforpostgresql.AzureManagedDiskPerformanceTier.P15,
},
version=azure_native.dbforpostgresql.PostgresMajorVersion.POSTGRES_MAJOR_VERSION_17)
resources:
server:
type: azure-native:dbforpostgresql:Server
properties:
administratorLogin: examplelogin
administratorLoginPassword: examplepassword
backup:
backupRetentionDays: 7
geoRedundantBackup: Disabled
cluster:
clusterSize: 2
defaultDatabaseName: clusterdb
createMode: Create
highAvailability:
mode: Disabled
location: eastus
network:
publicNetworkAccess: Disabled
resourceGroupName: exampleresourcegroup
serverName: exampleserver
sku:
name: Standard_D4ds_v5
tier: GeneralPurpose
storage:
autoGrow: Disabled
storageSizeGB: 256
tier: P15
version: '17'
Create a new server in Microsoft owned virtual network with zone redundant high availability.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var server = new AzureNative.DBforPostgreSQL.Server("server", new()
{
AdministratorLogin = "exampleadministratorlogin",
AdministratorLoginPassword = "examplepassword",
AvailabilityZone = "1",
Backup = new AzureNative.DBforPostgreSQL.Inputs.BackupArgs
{
BackupRetentionDays = 7,
GeoRedundantBackup = AzureNative.DBforPostgreSQL.GeographicallyRedundantBackup.Enabled,
},
CreateMode = AzureNative.DBforPostgreSQL.CreateMode.Create,
HighAvailability = new AzureNative.DBforPostgreSQL.Inputs.HighAvailabilityArgs
{
Mode = AzureNative.DBforPostgreSQL.PostgreSqlFlexibleServerHighAvailabilityMode.ZoneRedundant,
},
Location = "eastus",
Network = new AzureNative.DBforPostgreSQL.Inputs.NetworkArgs
{
PublicNetworkAccess = AzureNative.DBforPostgreSQL.ServerPublicNetworkAccessState.Enabled,
},
ResourceGroupName = "exampleresourcegroup",
ServerName = "exampleserver",
Sku = new AzureNative.DBforPostgreSQL.Inputs.SkuArgs
{
Name = "Standard_D4ds_v5",
Tier = AzureNative.DBforPostgreSQL.SkuTier.GeneralPurpose,
},
Storage = new AzureNative.DBforPostgreSQL.Inputs.StorageArgs
{
AutoGrow = AzureNative.DBforPostgreSQL.StorageAutoGrow.Disabled,
StorageSizeGB = 512,
Tier = AzureNative.DBforPostgreSQL.AzureManagedDiskPerformanceTier.P20,
},
Tags =
{
{ "InCustomerVnet", "false" },
{ "InMicrosoftVnet", "true" },
},
Version = AzureNative.DBforPostgreSQL.PostgresMajorVersion.PostgresMajorVersion_18,
});
});
package main
import (
dbforpostgresql "github.com/pulumi/pulumi-azure-native-sdk/dbforpostgresql/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dbforpostgresql.NewServer(ctx, "server", &dbforpostgresql.ServerArgs{
AdministratorLogin: pulumi.String("exampleadministratorlogin"),
AdministratorLoginPassword: pulumi.String("examplepassword"),
AvailabilityZone: pulumi.String("1"),
Backup: &dbforpostgresql.BackupTypeArgs{
BackupRetentionDays: pulumi.Int(7),
GeoRedundantBackup: pulumi.String(dbforpostgresql.GeographicallyRedundantBackupEnabled),
},
CreateMode: pulumi.String(dbforpostgresql.CreateModeCreate),
HighAvailability: &dbforpostgresql.HighAvailabilityArgs{
Mode: pulumi.String(dbforpostgresql.PostgreSqlFlexibleServerHighAvailabilityModeZoneRedundant),
},
Location: pulumi.String("eastus"),
Network: &dbforpostgresql.NetworkArgs{
PublicNetworkAccess: pulumi.String(dbforpostgresql.ServerPublicNetworkAccessStateEnabled),
},
ResourceGroupName: pulumi.String("exampleresourcegroup"),
ServerName: pulumi.String("exampleserver"),
Sku: &dbforpostgresql.SkuArgs{
Name: pulumi.String("Standard_D4ds_v5"),
Tier: pulumi.String(dbforpostgresql.SkuTierGeneralPurpose),
},
Storage: &dbforpostgresql.StorageArgs{
AutoGrow: pulumi.String(dbforpostgresql.StorageAutoGrowDisabled),
StorageSizeGB: pulumi.Int(512),
Tier: pulumi.String(dbforpostgresql.AzureManagedDiskPerformanceTierP20),
},
Tags: pulumi.StringMap{
"InCustomerVnet": pulumi.String("false"),
"InMicrosoftVnet": pulumi.String("true"),
},
Version: pulumi.String(dbforpostgresql.PostgresMajorVersion_18),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_dbforpostgresql_server" "server" {
administrator_login = "exampleadministratorlogin"
administrator_login_password = "examplepassword"
availability_zone = "1"
backup = {
backup_retention_days = 7
geo_redundant_backup = "Enabled"
}
create_mode = "Create"
high_availability = {
mode = "ZoneRedundant"
}
location = "eastus"
network = {
public_network_access = "Enabled"
}
resource_group_name = "exampleresourcegroup"
server_name = "exampleserver"
sku = {
name = "Standard_D4ds_v5"
tier = "GeneralPurpose"
}
storage = {
auto_grow = "Disabled"
storage_size_gb = 512
tier = "P20"
}
tags = {
"InCustomerVnet" = "false"
"InMicrosoftVnet" = "true"
}
version = "18"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dbforpostgresql.Server;
import com.pulumi.azurenative.dbforpostgresql.ServerArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.BackupArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.HighAvailabilityArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.NetworkArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.SkuArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.StorageArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var server = new Server("server", ServerArgs.builder()
.administratorLogin("exampleadministratorlogin")
.administratorLoginPassword("examplepassword")
.availabilityZone("1")
.backup(BackupArgs.builder()
.backupRetentionDays(7)
.geoRedundantBackup("Enabled")
.build())
.createMode("Create")
.highAvailability(HighAvailabilityArgs.builder()
.mode("ZoneRedundant")
.build())
.location("eastus")
.network(NetworkArgs.builder()
.publicNetworkAccess("Enabled")
.build())
.resourceGroupName("exampleresourcegroup")
.serverName("exampleserver")
.sku(SkuArgs.builder()
.name("Standard_D4ds_v5")
.tier("GeneralPurpose")
.build())
.storage(StorageArgs.builder()
.autoGrow("Disabled")
.storageSizeGB(512)
.tier("P20")
.build())
.tags(Map.ofEntries(
Map.entry("InCustomerVnet", "false"),
Map.entry("InMicrosoftVnet", "true")
))
.version("18")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const server = new azure_native.dbforpostgresql.Server("server", {
administratorLogin: "exampleadministratorlogin",
administratorLoginPassword: "examplepassword",
availabilityZone: "1",
backup: {
backupRetentionDays: 7,
geoRedundantBackup: azure_native.dbforpostgresql.GeographicallyRedundantBackup.Enabled,
},
createMode: azure_native.dbforpostgresql.CreateMode.Create,
highAvailability: {
mode: azure_native.dbforpostgresql.PostgreSqlFlexibleServerHighAvailabilityMode.ZoneRedundant,
},
location: "eastus",
network: {
publicNetworkAccess: azure_native.dbforpostgresql.ServerPublicNetworkAccessState.Enabled,
},
resourceGroupName: "exampleresourcegroup",
serverName: "exampleserver",
sku: {
name: "Standard_D4ds_v5",
tier: azure_native.dbforpostgresql.SkuTier.GeneralPurpose,
},
storage: {
autoGrow: azure_native.dbforpostgresql.StorageAutoGrow.Disabled,
storageSizeGB: 512,
tier: azure_native.dbforpostgresql.AzureManagedDiskPerformanceTier.P20,
},
tags: {
InCustomerVnet: "false",
InMicrosoftVnet: "true",
},
version: azure_native.dbforpostgresql.PostgresMajorVersion.PostgresMajorVersion_18,
});
import pulumi
import pulumi_azure_native as azure_native
server = azure_native.dbforpostgresql.Server("server",
administrator_login="exampleadministratorlogin",
administrator_login_password="examplepassword",
availability_zone="1",
backup={
"backup_retention_days": 7,
"geo_redundant_backup": azure_native.dbforpostgresql.GeographicallyRedundantBackup.ENABLED,
},
create_mode=azure_native.dbforpostgresql.CreateMode.CREATE,
high_availability={
"mode": azure_native.dbforpostgresql.PostgreSqlFlexibleServerHighAvailabilityMode.ZONE_REDUNDANT,
},
location="eastus",
network={
"public_network_access": azure_native.dbforpostgresql.ServerPublicNetworkAccessState.ENABLED,
},
resource_group_name="exampleresourcegroup",
server_name="exampleserver",
sku={
"name": "Standard_D4ds_v5",
"tier": azure_native.dbforpostgresql.SkuTier.GENERAL_PURPOSE,
},
storage={
"auto_grow": azure_native.dbforpostgresql.StorageAutoGrow.DISABLED,
"storage_size_gb": 512,
"tier": azure_native.dbforpostgresql.AzureManagedDiskPerformanceTier.P20,
},
tags={
"InCustomerVnet": "false",
"InMicrosoftVnet": "true",
},
version=azure_native.dbforpostgresql.PostgresMajorVersion.POSTGRES_MAJOR_VERSION_18)
resources:
server:
type: azure-native:dbforpostgresql:Server
properties:
administratorLogin: exampleadministratorlogin
administratorLoginPassword: examplepassword
availabilityZone: '1'
backup:
backupRetentionDays: 7
geoRedundantBackup: Enabled
createMode: Create
highAvailability:
mode: ZoneRedundant
location: eastus
network:
publicNetworkAccess: Enabled
resourceGroupName: exampleresourcegroup
serverName: exampleserver
sku:
name: Standard_D4ds_v5
tier: GeneralPurpose
storage:
autoGrow: Disabled
storageSizeGB: 512
tier: P20
tags:
InCustomerVnet: 'false'
InMicrosoftVnet: 'true'
version: '18'
Create a new server in your own virtual network with same zone high availability.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var server = new AzureNative.DBforPostgreSQL.Server("server", new()
{
AdministratorLogin = "exampleadministratorlogin",
AdministratorLoginPassword = "examplepassword",
AvailabilityZone = "1",
Backup = new AzureNative.DBforPostgreSQL.Inputs.BackupArgs
{
BackupRetentionDays = 7,
GeoRedundantBackup = AzureNative.DBforPostgreSQL.GeographicallyRedundantBackup.Enabled,
},
CreateMode = AzureNative.DBforPostgreSQL.CreateMode.Create,
HighAvailability = new AzureNative.DBforPostgreSQL.Inputs.HighAvailabilityArgs
{
Mode = AzureNative.DBforPostgreSQL.PostgreSqlFlexibleServerHighAvailabilityMode.SameZone,
},
Location = "eastus",
Network = new AzureNative.DBforPostgreSQL.Inputs.NetworkArgs
{
DelegatedSubnetResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet",
PrivateDnsZoneArmResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.private.postgres.database",
},
ResourceGroupName = "exampleresourcegroup",
ServerName = "exampleserver",
Sku = new AzureNative.DBforPostgreSQL.Inputs.SkuArgs
{
Name = "Standard_D4ds_v5",
Tier = AzureNative.DBforPostgreSQL.SkuTier.GeneralPurpose,
},
Storage = new AzureNative.DBforPostgreSQL.Inputs.StorageArgs
{
AutoGrow = AzureNative.DBforPostgreSQL.StorageAutoGrow.Disabled,
StorageSizeGB = 512,
Tier = AzureNative.DBforPostgreSQL.AzureManagedDiskPerformanceTier.P20,
},
Tags =
{
{ "InCustomerVnet", "true" },
{ "InMicrosoftVnet", "false" },
},
Version = AzureNative.DBforPostgreSQL.PostgresMajorVersion.PostgresMajorVersion_18,
});
});
package main
import (
dbforpostgresql "github.com/pulumi/pulumi-azure-native-sdk/dbforpostgresql/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dbforpostgresql.NewServer(ctx, "server", &dbforpostgresql.ServerArgs{
AdministratorLogin: pulumi.String("exampleadministratorlogin"),
AdministratorLoginPassword: pulumi.String("examplepassword"),
AvailabilityZone: pulumi.String("1"),
Backup: &dbforpostgresql.BackupTypeArgs{
BackupRetentionDays: pulumi.Int(7),
GeoRedundantBackup: pulumi.String(dbforpostgresql.GeographicallyRedundantBackupEnabled),
},
CreateMode: pulumi.String(dbforpostgresql.CreateModeCreate),
HighAvailability: &dbforpostgresql.HighAvailabilityArgs{
Mode: pulumi.String(dbforpostgresql.PostgreSqlFlexibleServerHighAvailabilityModeSameZone),
},
Location: pulumi.String("eastus"),
Network: &dbforpostgresql.NetworkArgs{
DelegatedSubnetResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet"),
PrivateDnsZoneArmResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.private.postgres.database"),
},
ResourceGroupName: pulumi.String("exampleresourcegroup"),
ServerName: pulumi.String("exampleserver"),
Sku: &dbforpostgresql.SkuArgs{
Name: pulumi.String("Standard_D4ds_v5"),
Tier: pulumi.String(dbforpostgresql.SkuTierGeneralPurpose),
},
Storage: &dbforpostgresql.StorageArgs{
AutoGrow: pulumi.String(dbforpostgresql.StorageAutoGrowDisabled),
StorageSizeGB: pulumi.Int(512),
Tier: pulumi.String(dbforpostgresql.AzureManagedDiskPerformanceTierP20),
},
Tags: pulumi.StringMap{
"InCustomerVnet": pulumi.String("true"),
"InMicrosoftVnet": pulumi.String("false"),
},
Version: pulumi.String(dbforpostgresql.PostgresMajorVersion_18),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_dbforpostgresql_server" "server" {
administrator_login = "exampleadministratorlogin"
administrator_login_password = "examplepassword"
availability_zone = "1"
backup = {
backup_retention_days = 7
geo_redundant_backup = "Enabled"
}
create_mode = "Create"
high_availability = {
mode = "SameZone"
}
location = "eastus"
network = {
delegated_subnet_resource_id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet"
private_dns_zone_arm_resource_id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.private.postgres.database"
}
resource_group_name = "exampleresourcegroup"
server_name = "exampleserver"
sku = {
name = "Standard_D4ds_v5"
tier = "GeneralPurpose"
}
storage = {
auto_grow = "Disabled"
storage_size_gb = 512
tier = "P20"
}
tags = {
"InCustomerVnet" = "true"
"InMicrosoftVnet" = "false"
}
version = "18"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dbforpostgresql.Server;
import com.pulumi.azurenative.dbforpostgresql.ServerArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.BackupArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.HighAvailabilityArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.NetworkArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.SkuArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.StorageArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var server = new Server("server", ServerArgs.builder()
.administratorLogin("exampleadministratorlogin")
.administratorLoginPassword("examplepassword")
.availabilityZone("1")
.backup(BackupArgs.builder()
.backupRetentionDays(7)
.geoRedundantBackup("Enabled")
.build())
.createMode("Create")
.highAvailability(HighAvailabilityArgs.builder()
.mode("SameZone")
.build())
.location("eastus")
.network(NetworkArgs.builder()
.delegatedSubnetResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet")
.privateDnsZoneArmResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.private.postgres.database")
.build())
.resourceGroupName("exampleresourcegroup")
.serverName("exampleserver")
.sku(SkuArgs.builder()
.name("Standard_D4ds_v5")
.tier("GeneralPurpose")
.build())
.storage(StorageArgs.builder()
.autoGrow("Disabled")
.storageSizeGB(512)
.tier("P20")
.build())
.tags(Map.ofEntries(
Map.entry("InCustomerVnet", "true"),
Map.entry("InMicrosoftVnet", "false")
))
.version("18")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const server = new azure_native.dbforpostgresql.Server("server", {
administratorLogin: "exampleadministratorlogin",
administratorLoginPassword: "examplepassword",
availabilityZone: "1",
backup: {
backupRetentionDays: 7,
geoRedundantBackup: azure_native.dbforpostgresql.GeographicallyRedundantBackup.Enabled,
},
createMode: azure_native.dbforpostgresql.CreateMode.Create,
highAvailability: {
mode: azure_native.dbforpostgresql.PostgreSqlFlexibleServerHighAvailabilityMode.SameZone,
},
location: "eastus",
network: {
delegatedSubnetResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet",
privateDnsZoneArmResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.private.postgres.database",
},
resourceGroupName: "exampleresourcegroup",
serverName: "exampleserver",
sku: {
name: "Standard_D4ds_v5",
tier: azure_native.dbforpostgresql.SkuTier.GeneralPurpose,
},
storage: {
autoGrow: azure_native.dbforpostgresql.StorageAutoGrow.Disabled,
storageSizeGB: 512,
tier: azure_native.dbforpostgresql.AzureManagedDiskPerformanceTier.P20,
},
tags: {
InCustomerVnet: "true",
InMicrosoftVnet: "false",
},
version: azure_native.dbforpostgresql.PostgresMajorVersion.PostgresMajorVersion_18,
});
import pulumi
import pulumi_azure_native as azure_native
server = azure_native.dbforpostgresql.Server("server",
administrator_login="exampleadministratorlogin",
administrator_login_password="examplepassword",
availability_zone="1",
backup={
"backup_retention_days": 7,
"geo_redundant_backup": azure_native.dbforpostgresql.GeographicallyRedundantBackup.ENABLED,
},
create_mode=azure_native.dbforpostgresql.CreateMode.CREATE,
high_availability={
"mode": azure_native.dbforpostgresql.PostgreSqlFlexibleServerHighAvailabilityMode.SAME_ZONE,
},
location="eastus",
network={
"delegated_subnet_resource_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet",
"private_dns_zone_arm_resource_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.private.postgres.database",
},
resource_group_name="exampleresourcegroup",
server_name="exampleserver",
sku={
"name": "Standard_D4ds_v5",
"tier": azure_native.dbforpostgresql.SkuTier.GENERAL_PURPOSE,
},
storage={
"auto_grow": azure_native.dbforpostgresql.StorageAutoGrow.DISABLED,
"storage_size_gb": 512,
"tier": azure_native.dbforpostgresql.AzureManagedDiskPerformanceTier.P20,
},
tags={
"InCustomerVnet": "true",
"InMicrosoftVnet": "false",
},
version=azure_native.dbforpostgresql.PostgresMajorVersion.POSTGRES_MAJOR_VERSION_18)
resources:
server:
type: azure-native:dbforpostgresql:Server
properties:
administratorLogin: exampleadministratorlogin
administratorLoginPassword: examplepassword
availabilityZone: '1'
backup:
backupRetentionDays: 7
geoRedundantBackup: Enabled
createMode: Create
highAvailability:
mode: SameZone
location: eastus
network:
delegatedSubnetResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet
privateDnsZoneArmResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.private.postgres.database
resourceGroupName: exampleresourcegroup
serverName: exampleserver
sku:
name: Standard_D4ds_v5
tier: GeneralPurpose
storage:
autoGrow: Disabled
storageSizeGB: 512
tier: P20
tags:
InCustomerVnet: 'true'
InMicrosoftVnet: 'false'
version: '18'
Create a new server using a backup of a server that was deleted or dropped recently.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var server = new AzureNative.DBforPostgreSQL.Server("server", new()
{
CreateMode = AzureNative.DBforPostgreSQL.CreateMode.ReviveDropped,
Location = "eastus",
PointInTimeUTC = "2025-06-01T18:30:22.123456Z",
ResourceGroupName = "exampleresourcegroup",
ServerName = "exampleserver",
SourceServerResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampledeletedserver",
});
});
package main
import (
dbforpostgresql "github.com/pulumi/pulumi-azure-native-sdk/dbforpostgresql/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dbforpostgresql.NewServer(ctx, "server", &dbforpostgresql.ServerArgs{
CreateMode: pulumi.String(dbforpostgresql.CreateModeReviveDropped),
Location: pulumi.String("eastus"),
PointInTimeUTC: pulumi.String("2025-06-01T18:30:22.123456Z"),
ResourceGroupName: pulumi.String("exampleresourcegroup"),
ServerName: pulumi.String("exampleserver"),
SourceServerResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampledeletedserver"),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_dbforpostgresql_server" "server" {
create_mode = "ReviveDropped"
location = "eastus"
point_in_time_utc = "2025-06-01T18:30:22.123456Z"
resource_group_name = "exampleresourcegroup"
server_name = "exampleserver"
source_server_resource_id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampledeletedserver"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dbforpostgresql.Server;
import com.pulumi.azurenative.dbforpostgresql.ServerArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var server = new Server("server", ServerArgs.builder()
.createMode("ReviveDropped")
.location("eastus")
.pointInTimeUTC("2025-06-01T18:30:22.123456Z")
.resourceGroupName("exampleresourcegroup")
.serverName("exampleserver")
.sourceServerResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampledeletedserver")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const server = new azure_native.dbforpostgresql.Server("server", {
createMode: azure_native.dbforpostgresql.CreateMode.ReviveDropped,
location: "eastus",
pointInTimeUTC: "2025-06-01T18:30:22.123456Z",
resourceGroupName: "exampleresourcegroup",
serverName: "exampleserver",
sourceServerResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampledeletedserver",
});
import pulumi
import pulumi_azure_native as azure_native
server = azure_native.dbforpostgresql.Server("server",
create_mode=azure_native.dbforpostgresql.CreateMode.REVIVE_DROPPED,
location="eastus",
point_in_time_utc="2025-06-01T18:30:22.123456Z",
resource_group_name="exampleresourcegroup",
server_name="exampleserver",
source_server_resource_id="/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampledeletedserver")
resources:
server:
type: azure-native:dbforpostgresql:Server
properties:
createMode: ReviveDropped
location: eastus
pointInTimeUTC: 2025-06-01T18:30:22.123456Z
resourceGroupName: exampleresourcegroup
serverName: exampleserver
sourceServerResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampledeletedserver
Create a new server using a point in time restore of a backup of an existing server.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var server = new AzureNative.DBforPostgreSQL.Server("server", new()
{
CreateMode = AzureNative.DBforPostgreSQL.CreateMode.PointInTimeRestore,
Location = "eastus",
PointInTimeUTC = "2025-06-01T18:35:22.123456Z",
ResourceGroupName = "exampleresourcegroup",
ServerName = "exampleserver",
SourceServerResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver",
});
});
package main
import (
dbforpostgresql "github.com/pulumi/pulumi-azure-native-sdk/dbforpostgresql/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dbforpostgresql.NewServer(ctx, "server", &dbforpostgresql.ServerArgs{
CreateMode: pulumi.String(dbforpostgresql.CreateModePointInTimeRestore),
Location: pulumi.String("eastus"),
PointInTimeUTC: pulumi.String("2025-06-01T18:35:22.123456Z"),
ResourceGroupName: pulumi.String("exampleresourcegroup"),
ServerName: pulumi.String("exampleserver"),
SourceServerResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver"),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_dbforpostgresql_server" "server" {
create_mode = "PointInTimeRestore"
location = "eastus"
point_in_time_utc = "2025-06-01T18:35:22.123456Z"
resource_group_name = "exampleresourcegroup"
server_name = "exampleserver"
source_server_resource_id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dbforpostgresql.Server;
import com.pulumi.azurenative.dbforpostgresql.ServerArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var server = new Server("server", ServerArgs.builder()
.createMode("PointInTimeRestore")
.location("eastus")
.pointInTimeUTC("2025-06-01T18:35:22.123456Z")
.resourceGroupName("exampleresourcegroup")
.serverName("exampleserver")
.sourceServerResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const server = new azure_native.dbforpostgresql.Server("server", {
createMode: azure_native.dbforpostgresql.CreateMode.PointInTimeRestore,
location: "eastus",
pointInTimeUTC: "2025-06-01T18:35:22.123456Z",
resourceGroupName: "exampleresourcegroup",
serverName: "exampleserver",
sourceServerResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver",
});
import pulumi
import pulumi_azure_native as azure_native
server = azure_native.dbforpostgresql.Server("server",
create_mode=azure_native.dbforpostgresql.CreateMode.POINT_IN_TIME_RESTORE,
location="eastus",
point_in_time_utc="2025-06-01T18:35:22.123456Z",
resource_group_name="exampleresourcegroup",
server_name="exampleserver",
source_server_resource_id="/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver")
resources:
server:
type: azure-native:dbforpostgresql:Server
properties:
createMode: PointInTimeRestore
location: eastus
pointInTimeUTC: 2025-06-01T18:35:22.123456Z
resourceGroupName: exampleresourcegroup
serverName: exampleserver
sourceServerResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver
Create a new server using a restore of a geographically redundant backup of an existing server, with data encryption based on customer managed key with automatic key version update.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var server = new AzureNative.DBforPostgreSQL.Server("server", new()
{
CreateMode = AzureNative.DBforPostgreSQL.CreateMode.GeoRestore,
DataEncryption = new AzureNative.DBforPostgreSQL.Inputs.DataEncryptionArgs
{
GeoBackupKeyURI = "https://examplegeoredundantkeyvault.vault.azure.net/keys/examplekey",
GeoBackupUserAssignedIdentityId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity",
PrimaryKeyURI = "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey",
PrimaryUserAssignedIdentityId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
Type = AzureNative.DBforPostgreSQL.DataEncryptionType.AzureKeyVault,
},
Identity = new AzureNative.DBforPostgreSQL.Inputs.UserAssignedIdentityArgs
{
Type = AzureNative.DBforPostgreSQL.IdentityType.UserAssigned,
UserAssignedIdentities =
{
{ "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity", null },
{ "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity", null },
},
},
Location = "eastus",
PointInTimeUTC = "2025-06-01T18:35:22.123456Z",
ResourceGroupName = "exampleresourcegroup",
ServerName = "exampleserver",
SourceServerResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver",
});
});
package main
import (
dbforpostgresql "github.com/pulumi/pulumi-azure-native-sdk/dbforpostgresql/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dbforpostgresql.NewServer(ctx, "server", &dbforpostgresql.ServerArgs{
CreateMode: pulumi.String(dbforpostgresql.CreateModeGeoRestore),
DataEncryption: &dbforpostgresql.DataEncryptionArgs{
GeoBackupKeyURI: pulumi.String("https://examplegeoredundantkeyvault.vault.azure.net/keys/examplekey"),
GeoBackupUserAssignedIdentityId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity"),
PrimaryKeyURI: pulumi.String("https://exampleprimarykeyvault.vault.azure.net/keys/examplekey"),
PrimaryUserAssignedIdentityId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity"),
Type: pulumi.String(dbforpostgresql.DataEncryptionTypeAzureKeyVault),
},
Identity: &dbforpostgresql.UserAssignedIdentityArgs{
Type: pulumi.String(dbforpostgresql.IdentityTypeUserAssigned),
UserAssignedIdentities: dbforpostgresql.UserIdentityMap{
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity": &dbforpostgresql.UserIdentityArgs{},
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": &dbforpostgresql.UserIdentityArgs{},
},
},
Location: pulumi.String("eastus"),
PointInTimeUTC: pulumi.String("2025-06-01T18:35:22.123456Z"),
ResourceGroupName: pulumi.String("exampleresourcegroup"),
ServerName: pulumi.String("exampleserver"),
SourceServerResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver"),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_dbforpostgresql_server" "server" {
create_mode = "GeoRestore"
data_encryption = {
geo_backup_key_uri = "https://examplegeoredundantkeyvault.vault.azure.net/keys/examplekey"
geo_backup_user_assigned_identity_id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity"
primary_key_uri = "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey"
primary_user_assigned_identity_id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity"
type = "AzureKeyVault"
}
identity = {
type = "UserAssigned"
user_assigned_identities = {
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity" = {}
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity" = {}
}
}
location = "eastus"
point_in_time_utc = "2025-06-01T18:35:22.123456Z"
resource_group_name = "exampleresourcegroup"
server_name = "exampleserver"
source_server_resource_id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dbforpostgresql.Server;
import com.pulumi.azurenative.dbforpostgresql.ServerArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.DataEncryptionArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.UserAssignedIdentityArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var server = new Server("server", ServerArgs.builder()
.createMode("GeoRestore")
.dataEncryption(DataEncryptionArgs.builder()
.geoBackupKeyURI("https://examplegeoredundantkeyvault.vault.azure.net/keys/examplekey")
.geoBackupUserAssignedIdentityId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity")
.primaryKeyURI("https://exampleprimarykeyvault.vault.azure.net/keys/examplekey")
.primaryUserAssignedIdentityId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity")
.type("AzureKeyVault")
.build())
.identity(UserAssignedIdentityArgs.builder()
.type("UserAssigned")
.userAssignedIdentities(Map.ofEntries(
Map.entry("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity", UserIdentityArgs.builder()
.build()),
Map.entry("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity", UserIdentityArgs.builder()
.build())
))
.build())
.location("eastus")
.pointInTimeUTC("2025-06-01T18:35:22.123456Z")
.resourceGroupName("exampleresourcegroup")
.serverName("exampleserver")
.sourceServerResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const server = new azure_native.dbforpostgresql.Server("server", {
createMode: azure_native.dbforpostgresql.CreateMode.GeoRestore,
dataEncryption: {
geoBackupKeyURI: "https://examplegeoredundantkeyvault.vault.azure.net/keys/examplekey",
geoBackupUserAssignedIdentityId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity",
primaryKeyURI: "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey",
primaryUserAssignedIdentityId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
type: azure_native.dbforpostgresql.DataEncryptionType.AzureKeyVault,
},
identity: {
type: azure_native.dbforpostgresql.IdentityType.UserAssigned,
userAssignedIdentities: {
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity": {},
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": {},
},
},
location: "eastus",
pointInTimeUTC: "2025-06-01T18:35:22.123456Z",
resourceGroupName: "exampleresourcegroup",
serverName: "exampleserver",
sourceServerResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver",
});
import pulumi
import pulumi_azure_native as azure_native
server = azure_native.dbforpostgresql.Server("server",
create_mode=azure_native.dbforpostgresql.CreateMode.GEO_RESTORE,
data_encryption={
"geo_backup_key_uri": "https://examplegeoredundantkeyvault.vault.azure.net/keys/examplekey",
"geo_backup_user_assigned_identity_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity",
"primary_key_uri": "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey",
"primary_user_assigned_identity_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
"type": azure_native.dbforpostgresql.DataEncryptionType.AZURE_KEY_VAULT,
},
identity={
"type": azure_native.dbforpostgresql.IdentityType.USER_ASSIGNED,
"user_assigned_identities": {
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity": {},
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": {},
},
},
location="eastus",
point_in_time_utc="2025-06-01T18:35:22.123456Z",
resource_group_name="exampleresourcegroup",
server_name="exampleserver",
source_server_resource_id="/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver")
resources:
server:
type: azure-native:dbforpostgresql:Server
properties:
createMode: GeoRestore
dataEncryption:
geoBackupKeyURI: https://examplegeoredundantkeyvault.vault.azure.net/keys/examplekey
geoBackupUserAssignedIdentityId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity
primaryKeyURI: https://exampleprimarykeyvault.vault.azure.net/keys/examplekey
primaryUserAssignedIdentityId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity
type: AzureKeyVault
identity:
type: UserAssigned
userAssignedIdentities:
? /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity
: {}
? /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity
: {}
location: eastus
pointInTimeUTC: 2025-06-01T18:35:22.123456Z
resourceGroupName: exampleresourcegroup
serverName: exampleserver
sourceServerResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver
Create a new server using a restore of a geographically redundant backup of an existing server, with data encryption based on customer managed key.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var server = new AzureNative.DBforPostgreSQL.Server("server", new()
{
CreateMode = AzureNative.DBforPostgreSQL.CreateMode.GeoRestore,
DataEncryption = new AzureNative.DBforPostgreSQL.Inputs.DataEncryptionArgs
{
GeoBackupKeyURI = "https://examplegeoredundantkeyvault.vault.azure.net/keys/examplekey/yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy",
GeoBackupUserAssignedIdentityId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity",
PrimaryKeyURI = "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
PrimaryUserAssignedIdentityId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
Type = AzureNative.DBforPostgreSQL.DataEncryptionType.AzureKeyVault,
},
Identity = new AzureNative.DBforPostgreSQL.Inputs.UserAssignedIdentityArgs
{
Type = AzureNative.DBforPostgreSQL.IdentityType.UserAssigned,
UserAssignedIdentities =
{
{ "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity", null },
{ "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity", null },
},
},
Location = "eastus",
PointInTimeUTC = "2025-06-01T18:35:22.123456Z",
ResourceGroupName = "exampleresourcegroup",
ServerName = "exampleserver",
SourceServerResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver",
});
});
package main
import (
dbforpostgresql "github.com/pulumi/pulumi-azure-native-sdk/dbforpostgresql/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dbforpostgresql.NewServer(ctx, "server", &dbforpostgresql.ServerArgs{
CreateMode: pulumi.String(dbforpostgresql.CreateModeGeoRestore),
DataEncryption: &dbforpostgresql.DataEncryptionArgs{
GeoBackupKeyURI: pulumi.String("https://examplegeoredundantkeyvault.vault.azure.net/keys/examplekey/yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"),
GeoBackupUserAssignedIdentityId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity"),
PrimaryKeyURI: pulumi.String("https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
PrimaryUserAssignedIdentityId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity"),
Type: pulumi.String(dbforpostgresql.DataEncryptionTypeAzureKeyVault),
},
Identity: &dbforpostgresql.UserAssignedIdentityArgs{
Type: pulumi.String(dbforpostgresql.IdentityTypeUserAssigned),
UserAssignedIdentities: dbforpostgresql.UserIdentityMap{
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity": &dbforpostgresql.UserIdentityArgs{},
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": &dbforpostgresql.UserIdentityArgs{},
},
},
Location: pulumi.String("eastus"),
PointInTimeUTC: pulumi.String("2025-06-01T18:35:22.123456Z"),
ResourceGroupName: pulumi.String("exampleresourcegroup"),
ServerName: pulumi.String("exampleserver"),
SourceServerResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver"),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_dbforpostgresql_server" "server" {
create_mode = "GeoRestore"
data_encryption = {
geo_backup_key_uri = "https://examplegeoredundantkeyvault.vault.azure.net/keys/examplekey/yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
geo_backup_user_assigned_identity_id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity"
primary_key_uri = "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
primary_user_assigned_identity_id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity"
type = "AzureKeyVault"
}
identity = {
type = "UserAssigned"
user_assigned_identities = {
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity" = {}
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity" = {}
}
}
location = "eastus"
point_in_time_utc = "2025-06-01T18:35:22.123456Z"
resource_group_name = "exampleresourcegroup"
server_name = "exampleserver"
source_server_resource_id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dbforpostgresql.Server;
import com.pulumi.azurenative.dbforpostgresql.ServerArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.DataEncryptionArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.UserAssignedIdentityArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var server = new Server("server", ServerArgs.builder()
.createMode("GeoRestore")
.dataEncryption(DataEncryptionArgs.builder()
.geoBackupKeyURI("https://examplegeoredundantkeyvault.vault.azure.net/keys/examplekey/yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy")
.geoBackupUserAssignedIdentityId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity")
.primaryKeyURI("https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
.primaryUserAssignedIdentityId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity")
.type("AzureKeyVault")
.build())
.identity(UserAssignedIdentityArgs.builder()
.type("UserAssigned")
.userAssignedIdentities(Map.ofEntries(
Map.entry("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity", UserIdentityArgs.builder()
.build()),
Map.entry("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity", UserIdentityArgs.builder()
.build())
))
.build())
.location("eastus")
.pointInTimeUTC("2025-06-01T18:35:22.123456Z")
.resourceGroupName("exampleresourcegroup")
.serverName("exampleserver")
.sourceServerResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const server = new azure_native.dbforpostgresql.Server("server", {
createMode: azure_native.dbforpostgresql.CreateMode.GeoRestore,
dataEncryption: {
geoBackupKeyURI: "https://examplegeoredundantkeyvault.vault.azure.net/keys/examplekey/yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy",
geoBackupUserAssignedIdentityId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity",
primaryKeyURI: "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
primaryUserAssignedIdentityId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
type: azure_native.dbforpostgresql.DataEncryptionType.AzureKeyVault,
},
identity: {
type: azure_native.dbforpostgresql.IdentityType.UserAssigned,
userAssignedIdentities: {
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity": {},
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": {},
},
},
location: "eastus",
pointInTimeUTC: "2025-06-01T18:35:22.123456Z",
resourceGroupName: "exampleresourcegroup",
serverName: "exampleserver",
sourceServerResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver",
});
import pulumi
import pulumi_azure_native as azure_native
server = azure_native.dbforpostgresql.Server("server",
create_mode=azure_native.dbforpostgresql.CreateMode.GEO_RESTORE,
data_encryption={
"geo_backup_key_uri": "https://examplegeoredundantkeyvault.vault.azure.net/keys/examplekey/yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy",
"geo_backup_user_assigned_identity_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity",
"primary_key_uri": "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"primary_user_assigned_identity_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
"type": azure_native.dbforpostgresql.DataEncryptionType.AZURE_KEY_VAULT,
},
identity={
"type": azure_native.dbforpostgresql.IdentityType.USER_ASSIGNED,
"user_assigned_identities": {
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity": {},
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": {},
},
},
location="eastus",
point_in_time_utc="2025-06-01T18:35:22.123456Z",
resource_group_name="exampleresourcegroup",
server_name="exampleserver",
source_server_resource_id="/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver")
resources:
server:
type: azure-native:dbforpostgresql:Server
properties:
createMode: GeoRestore
dataEncryption:
geoBackupKeyURI: https://examplegeoredundantkeyvault.vault.azure.net/keys/examplekey/yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
geoBackupUserAssignedIdentityId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity
primaryKeyURI: https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
primaryUserAssignedIdentityId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity
type: AzureKeyVault
identity:
type: UserAssigned
userAssignedIdentities:
? /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplegeoredundantidentity
: {}
? /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity
: {}
location: eastus
pointInTimeUTC: 2025-06-01T18:35:22.123456Z
resourceGroupName: exampleresourcegroup
serverName: exampleserver
sourceServerResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver
Create a new server with Microsoft Entra authentication enabled in your own virtual network and without high availability.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var server = new AzureNative.DBforPostgreSQL.Server("server", new()
{
AdministratorLogin = "exampleadministratorlogin",
AdministratorLoginPassword = "examplepassword",
AuthConfig = new AzureNative.DBforPostgreSQL.Inputs.AuthConfigArgs
{
ActiveDirectoryAuth = AzureNative.DBforPostgreSQL.MicrosoftEntraAuth.Enabled,
PasswordAuth = AzureNative.DBforPostgreSQL.PasswordBasedAuth.Enabled,
TenantId = "tttttt-tttt-tttt-tttt-tttttttttttt",
},
AvailabilityZone = "1",
Backup = new AzureNative.DBforPostgreSQL.Inputs.BackupArgs
{
BackupRetentionDays = 7,
GeoRedundantBackup = AzureNative.DBforPostgreSQL.GeographicallyRedundantBackup.Disabled,
},
CreateMode = AzureNative.DBforPostgreSQL.CreateMode.Create,
DataEncryption = new AzureNative.DBforPostgreSQL.Inputs.DataEncryptionArgs
{
Type = "SystemManaged",
},
HighAvailability = new AzureNative.DBforPostgreSQL.Inputs.HighAvailabilityArgs
{
Mode = AzureNative.DBforPostgreSQL.PostgreSqlFlexibleServerHighAvailabilityMode.Disabled,
},
Location = "eastus",
Network = new AzureNative.DBforPostgreSQL.Inputs.NetworkArgs
{
DelegatedSubnetResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet",
PrivateDnsZoneArmResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com",
},
ResourceGroupName = "exampleresourcegroup",
ServerName = "exampleserver",
Sku = new AzureNative.DBforPostgreSQL.Inputs.SkuArgs
{
Name = "Standard_D4ds_v5",
Tier = AzureNative.DBforPostgreSQL.SkuTier.GeneralPurpose,
},
Storage = new AzureNative.DBforPostgreSQL.Inputs.StorageArgs
{
AutoGrow = AzureNative.DBforPostgreSQL.StorageAutoGrow.Disabled,
StorageSizeGB = 512,
Tier = AzureNative.DBforPostgreSQL.AzureManagedDiskPerformanceTier.P20,
},
Version = AzureNative.DBforPostgreSQL.PostgresMajorVersion.PostgresMajorVersion_18,
});
});
package main
import (
dbforpostgresql "github.com/pulumi/pulumi-azure-native-sdk/dbforpostgresql/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dbforpostgresql.NewServer(ctx, "server", &dbforpostgresql.ServerArgs{
AdministratorLogin: pulumi.String("exampleadministratorlogin"),
AdministratorLoginPassword: pulumi.String("examplepassword"),
AuthConfig: &dbforpostgresql.AuthConfigArgs{
ActiveDirectoryAuth: pulumi.String(dbforpostgresql.MicrosoftEntraAuthEnabled),
PasswordAuth: pulumi.String(dbforpostgresql.PasswordBasedAuthEnabled),
TenantId: pulumi.String("tttttt-tttt-tttt-tttt-tttttttttttt"),
},
AvailabilityZone: pulumi.String("1"),
Backup: &dbforpostgresql.BackupTypeArgs{
BackupRetentionDays: pulumi.Int(7),
GeoRedundantBackup: pulumi.String(dbforpostgresql.GeographicallyRedundantBackupDisabled),
},
CreateMode: pulumi.String(dbforpostgresql.CreateModeCreate),
DataEncryption: &dbforpostgresql.DataEncryptionArgs{
Type: pulumi.String("SystemManaged"),
},
HighAvailability: &dbforpostgresql.HighAvailabilityArgs{
Mode: pulumi.String(dbforpostgresql.PostgreSqlFlexibleServerHighAvailabilityModeDisabled),
},
Location: pulumi.String("eastus"),
Network: &dbforpostgresql.NetworkArgs{
DelegatedSubnetResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet"),
PrivateDnsZoneArmResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com"),
},
ResourceGroupName: pulumi.String("exampleresourcegroup"),
ServerName: pulumi.String("exampleserver"),
Sku: &dbforpostgresql.SkuArgs{
Name: pulumi.String("Standard_D4ds_v5"),
Tier: pulumi.String(dbforpostgresql.SkuTierGeneralPurpose),
},
Storage: &dbforpostgresql.StorageArgs{
AutoGrow: pulumi.String(dbforpostgresql.StorageAutoGrowDisabled),
StorageSizeGB: pulumi.Int(512),
Tier: pulumi.String(dbforpostgresql.AzureManagedDiskPerformanceTierP20),
},
Version: pulumi.String(dbforpostgresql.PostgresMajorVersion_18),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_dbforpostgresql_server" "server" {
administrator_login = "exampleadministratorlogin"
administrator_login_password = "examplepassword"
auth_config = {
active_directory_auth = "Enabled"
password_auth = "Enabled"
tenant_id = "tttttt-tttt-tttt-tttt-tttttttttttt"
}
availability_zone = "1"
backup = {
backup_retention_days = 7
geo_redundant_backup = "Disabled"
}
create_mode = "Create"
data_encryption = {
type = "SystemManaged"
}
high_availability = {
mode = "Disabled"
}
location = "eastus"
network = {
delegated_subnet_resource_id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet"
private_dns_zone_arm_resource_id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com"
}
resource_group_name = "exampleresourcegroup"
server_name = "exampleserver"
sku = {
name = "Standard_D4ds_v5"
tier = "GeneralPurpose"
}
storage = {
auto_grow = "Disabled"
storage_size_gb = 512
tier = "P20"
}
version = "18"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dbforpostgresql.Server;
import com.pulumi.azurenative.dbforpostgresql.ServerArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.AuthConfigArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.BackupArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.DataEncryptionArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.HighAvailabilityArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.NetworkArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.SkuArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.StorageArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var server = new Server("server", ServerArgs.builder()
.administratorLogin("exampleadministratorlogin")
.administratorLoginPassword("examplepassword")
.authConfig(AuthConfigArgs.builder()
.activeDirectoryAuth("Enabled")
.passwordAuth("Enabled")
.tenantId("tttttt-tttt-tttt-tttt-tttttttttttt")
.build())
.availabilityZone("1")
.backup(BackupArgs.builder()
.backupRetentionDays(7)
.geoRedundantBackup("Disabled")
.build())
.createMode("Create")
.dataEncryption(DataEncryptionArgs.builder()
.type("SystemManaged")
.build())
.highAvailability(HighAvailabilityArgs.builder()
.mode("Disabled")
.build())
.location("eastus")
.network(NetworkArgs.builder()
.delegatedSubnetResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet")
.privateDnsZoneArmResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com")
.build())
.resourceGroupName("exampleresourcegroup")
.serverName("exampleserver")
.sku(SkuArgs.builder()
.name("Standard_D4ds_v5")
.tier("GeneralPurpose")
.build())
.storage(StorageArgs.builder()
.autoGrow("Disabled")
.storageSizeGB(512)
.tier("P20")
.build())
.version("18")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const server = new azure_native.dbforpostgresql.Server("server", {
administratorLogin: "exampleadministratorlogin",
administratorLoginPassword: "examplepassword",
authConfig: {
activeDirectoryAuth: azure_native.dbforpostgresql.MicrosoftEntraAuth.Enabled,
passwordAuth: azure_native.dbforpostgresql.PasswordBasedAuth.Enabled,
tenantId: "tttttt-tttt-tttt-tttt-tttttttttttt",
},
availabilityZone: "1",
backup: {
backupRetentionDays: 7,
geoRedundantBackup: azure_native.dbforpostgresql.GeographicallyRedundantBackup.Disabled,
},
createMode: azure_native.dbforpostgresql.CreateMode.Create,
dataEncryption: {
type: "SystemManaged",
},
highAvailability: {
mode: azure_native.dbforpostgresql.PostgreSqlFlexibleServerHighAvailabilityMode.Disabled,
},
location: "eastus",
network: {
delegatedSubnetResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet",
privateDnsZoneArmResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com",
},
resourceGroupName: "exampleresourcegroup",
serverName: "exampleserver",
sku: {
name: "Standard_D4ds_v5",
tier: azure_native.dbforpostgresql.SkuTier.GeneralPurpose,
},
storage: {
autoGrow: azure_native.dbforpostgresql.StorageAutoGrow.Disabled,
storageSizeGB: 512,
tier: azure_native.dbforpostgresql.AzureManagedDiskPerformanceTier.P20,
},
version: azure_native.dbforpostgresql.PostgresMajorVersion.PostgresMajorVersion_18,
});
import pulumi
import pulumi_azure_native as azure_native
server = azure_native.dbforpostgresql.Server("server",
administrator_login="exampleadministratorlogin",
administrator_login_password="examplepassword",
auth_config={
"active_directory_auth": azure_native.dbforpostgresql.MicrosoftEntraAuth.ENABLED,
"password_auth": azure_native.dbforpostgresql.PasswordBasedAuth.ENABLED,
"tenant_id": "tttttt-tttt-tttt-tttt-tttttttttttt",
},
availability_zone="1",
backup={
"backup_retention_days": 7,
"geo_redundant_backup": azure_native.dbforpostgresql.GeographicallyRedundantBackup.DISABLED,
},
create_mode=azure_native.dbforpostgresql.CreateMode.CREATE,
data_encryption={
"type": "SystemManaged",
},
high_availability={
"mode": azure_native.dbforpostgresql.PostgreSqlFlexibleServerHighAvailabilityMode.DISABLED,
},
location="eastus",
network={
"delegated_subnet_resource_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet",
"private_dns_zone_arm_resource_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com",
},
resource_group_name="exampleresourcegroup",
server_name="exampleserver",
sku={
"name": "Standard_D4ds_v5",
"tier": azure_native.dbforpostgresql.SkuTier.GENERAL_PURPOSE,
},
storage={
"auto_grow": azure_native.dbforpostgresql.StorageAutoGrow.DISABLED,
"storage_size_gb": 512,
"tier": azure_native.dbforpostgresql.AzureManagedDiskPerformanceTier.P20,
},
version=azure_native.dbforpostgresql.PostgresMajorVersion.POSTGRES_MAJOR_VERSION_18)
resources:
server:
type: azure-native:dbforpostgresql:Server
properties:
administratorLogin: exampleadministratorlogin
administratorLoginPassword: examplepassword
authConfig:
activeDirectoryAuth: Enabled
passwordAuth: Enabled
tenantId: tttttt-tttt-tttt-tttt-tttttttttttt
availabilityZone: '1'
backup:
backupRetentionDays: 7
geoRedundantBackup: Disabled
createMode: Create
dataEncryption:
type: SystemManaged
highAvailability:
mode: Disabled
location: eastus
network:
delegatedSubnetResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet
privateDnsZoneArmResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com
resourceGroupName: exampleresourcegroup
serverName: exampleserver
sku:
name: Standard_D4ds_v5
tier: GeneralPurpose
storage:
autoGrow: Disabled
storageSizeGB: 512
tier: P20
version: '18'
Create a new server with data encryption based on customer managed key with automatic key version update.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var server = new AzureNative.DBforPostgreSQL.Server("server", new()
{
AdministratorLogin = "exampleadministratorlogin",
AdministratorLoginPassword = "examplepassword",
AvailabilityZone = "1",
Backup = new AzureNative.DBforPostgreSQL.Inputs.BackupArgs
{
BackupRetentionDays = 7,
GeoRedundantBackup = AzureNative.DBforPostgreSQL.GeographicallyRedundantBackup.Disabled,
},
CreateMode = AzureNative.DBforPostgreSQL.CreateMode.Create,
DataEncryption = new AzureNative.DBforPostgreSQL.Inputs.DataEncryptionArgs
{
GeoBackupKeyURI = "",
GeoBackupUserAssignedIdentityId = "",
PrimaryKeyURI = "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey",
PrimaryUserAssignedIdentityId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
Type = AzureNative.DBforPostgreSQL.DataEncryptionType.AzureKeyVault,
},
HighAvailability = new AzureNative.DBforPostgreSQL.Inputs.HighAvailabilityArgs
{
Mode = AzureNative.DBforPostgreSQL.PostgreSqlFlexibleServerHighAvailabilityMode.ZoneRedundant,
},
Identity = new AzureNative.DBforPostgreSQL.Inputs.UserAssignedIdentityArgs
{
Type = AzureNative.DBforPostgreSQL.IdentityType.UserAssigned,
UserAssignedIdentities =
{
{ "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity", null },
},
},
Location = "eastus",
Network = new AzureNative.DBforPostgreSQL.Inputs.NetworkArgs
{
DelegatedSubnetResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet",
PrivateDnsZoneArmResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com",
},
ResourceGroupName = "exampleresourcegroup",
ServerName = "exampleserver",
Sku = new AzureNative.DBforPostgreSQL.Inputs.SkuArgs
{
Name = "Standard_D4ds_v5",
Tier = AzureNative.DBforPostgreSQL.SkuTier.GeneralPurpose,
},
Storage = new AzureNative.DBforPostgreSQL.Inputs.StorageArgs
{
AutoGrow = AzureNative.DBforPostgreSQL.StorageAutoGrow.Disabled,
StorageSizeGB = 512,
Tier = AzureNative.DBforPostgreSQL.AzureManagedDiskPerformanceTier.P20,
},
Version = AzureNative.DBforPostgreSQL.PostgresMajorVersion.PostgresMajorVersion_18,
});
});
package main
import (
dbforpostgresql "github.com/pulumi/pulumi-azure-native-sdk/dbforpostgresql/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dbforpostgresql.NewServer(ctx, "server", &dbforpostgresql.ServerArgs{
AdministratorLogin: pulumi.String("exampleadministratorlogin"),
AdministratorLoginPassword: pulumi.String("examplepassword"),
AvailabilityZone: pulumi.String("1"),
Backup: &dbforpostgresql.BackupTypeArgs{
BackupRetentionDays: pulumi.Int(7),
GeoRedundantBackup: pulumi.String(dbforpostgresql.GeographicallyRedundantBackupDisabled),
},
CreateMode: pulumi.String(dbforpostgresql.CreateModeCreate),
DataEncryption: &dbforpostgresql.DataEncryptionArgs{
GeoBackupKeyURI: pulumi.String(""),
GeoBackupUserAssignedIdentityId: pulumi.String(""),
PrimaryKeyURI: pulumi.String("https://exampleprimarykeyvault.vault.azure.net/keys/examplekey"),
PrimaryUserAssignedIdentityId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity"),
Type: pulumi.String(dbforpostgresql.DataEncryptionTypeAzureKeyVault),
},
HighAvailability: &dbforpostgresql.HighAvailabilityArgs{
Mode: pulumi.String(dbforpostgresql.PostgreSqlFlexibleServerHighAvailabilityModeZoneRedundant),
},
Identity: &dbforpostgresql.UserAssignedIdentityArgs{
Type: pulumi.String(dbforpostgresql.IdentityTypeUserAssigned),
UserAssignedIdentities: dbforpostgresql.UserIdentityMap{
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": &dbforpostgresql.UserIdentityArgs{},
},
},
Location: pulumi.String("eastus"),
Network: &dbforpostgresql.NetworkArgs{
DelegatedSubnetResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet"),
PrivateDnsZoneArmResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com"),
},
ResourceGroupName: pulumi.String("exampleresourcegroup"),
ServerName: pulumi.String("exampleserver"),
Sku: &dbforpostgresql.SkuArgs{
Name: pulumi.String("Standard_D4ds_v5"),
Tier: pulumi.String(dbforpostgresql.SkuTierGeneralPurpose),
},
Storage: &dbforpostgresql.StorageArgs{
AutoGrow: pulumi.String(dbforpostgresql.StorageAutoGrowDisabled),
StorageSizeGB: pulumi.Int(512),
Tier: pulumi.String(dbforpostgresql.AzureManagedDiskPerformanceTierP20),
},
Version: pulumi.String(dbforpostgresql.PostgresMajorVersion_18),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_dbforpostgresql_server" "server" {
administrator_login = "exampleadministratorlogin"
administrator_login_password = "examplepassword"
availability_zone = "1"
backup = {
backup_retention_days = 7
geo_redundant_backup = "Disabled"
}
create_mode = "Create"
data_encryption = {
geo_backup_key_uri = ""
geo_backup_user_assigned_identity_id = ""
primary_key_uri = "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey"
primary_user_assigned_identity_id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity"
type = "AzureKeyVault"
}
high_availability = {
mode = "ZoneRedundant"
}
identity = {
type = "UserAssigned"
user_assigned_identities = {
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity" = {}
}
}
location = "eastus"
network = {
delegated_subnet_resource_id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet"
private_dns_zone_arm_resource_id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com"
}
resource_group_name = "exampleresourcegroup"
server_name = "exampleserver"
sku = {
name = "Standard_D4ds_v5"
tier = "GeneralPurpose"
}
storage = {
auto_grow = "Disabled"
storage_size_gb = 512
tier = "P20"
}
version = "18"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dbforpostgresql.Server;
import com.pulumi.azurenative.dbforpostgresql.ServerArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.BackupArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.DataEncryptionArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.HighAvailabilityArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.UserAssignedIdentityArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.NetworkArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.SkuArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.StorageArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var server = new Server("server", ServerArgs.builder()
.administratorLogin("exampleadministratorlogin")
.administratorLoginPassword("examplepassword")
.availabilityZone("1")
.backup(BackupArgs.builder()
.backupRetentionDays(7)
.geoRedundantBackup("Disabled")
.build())
.createMode("Create")
.dataEncryption(DataEncryptionArgs.builder()
.geoBackupKeyURI("")
.geoBackupUserAssignedIdentityId("")
.primaryKeyURI("https://exampleprimarykeyvault.vault.azure.net/keys/examplekey")
.primaryUserAssignedIdentityId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity")
.type("AzureKeyVault")
.build())
.highAvailability(HighAvailabilityArgs.builder()
.mode("ZoneRedundant")
.build())
.identity(UserAssignedIdentityArgs.builder()
.type("UserAssigned")
.userAssignedIdentities(Map.of("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity", UserIdentityArgs.builder()
.build()))
.build())
.location("eastus")
.network(NetworkArgs.builder()
.delegatedSubnetResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet")
.privateDnsZoneArmResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com")
.build())
.resourceGroupName("exampleresourcegroup")
.serverName("exampleserver")
.sku(SkuArgs.builder()
.name("Standard_D4ds_v5")
.tier("GeneralPurpose")
.build())
.storage(StorageArgs.builder()
.autoGrow("Disabled")
.storageSizeGB(512)
.tier("P20")
.build())
.version("18")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const server = new azure_native.dbforpostgresql.Server("server", {
administratorLogin: "exampleadministratorlogin",
administratorLoginPassword: "examplepassword",
availabilityZone: "1",
backup: {
backupRetentionDays: 7,
geoRedundantBackup: azure_native.dbforpostgresql.GeographicallyRedundantBackup.Disabled,
},
createMode: azure_native.dbforpostgresql.CreateMode.Create,
dataEncryption: {
geoBackupKeyURI: "",
geoBackupUserAssignedIdentityId: "",
primaryKeyURI: "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey",
primaryUserAssignedIdentityId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
type: azure_native.dbforpostgresql.DataEncryptionType.AzureKeyVault,
},
highAvailability: {
mode: azure_native.dbforpostgresql.PostgreSqlFlexibleServerHighAvailabilityMode.ZoneRedundant,
},
identity: {
type: azure_native.dbforpostgresql.IdentityType.UserAssigned,
userAssignedIdentities: {
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": {},
},
},
location: "eastus",
network: {
delegatedSubnetResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet",
privateDnsZoneArmResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com",
},
resourceGroupName: "exampleresourcegroup",
serverName: "exampleserver",
sku: {
name: "Standard_D4ds_v5",
tier: azure_native.dbforpostgresql.SkuTier.GeneralPurpose,
},
storage: {
autoGrow: azure_native.dbforpostgresql.StorageAutoGrow.Disabled,
storageSizeGB: 512,
tier: azure_native.dbforpostgresql.AzureManagedDiskPerformanceTier.P20,
},
version: azure_native.dbforpostgresql.PostgresMajorVersion.PostgresMajorVersion_18,
});
import pulumi
import pulumi_azure_native as azure_native
server = azure_native.dbforpostgresql.Server("server",
administrator_login="exampleadministratorlogin",
administrator_login_password="examplepassword",
availability_zone="1",
backup={
"backup_retention_days": 7,
"geo_redundant_backup": azure_native.dbforpostgresql.GeographicallyRedundantBackup.DISABLED,
},
create_mode=azure_native.dbforpostgresql.CreateMode.CREATE,
data_encryption={
"geo_backup_key_uri": "",
"geo_backup_user_assigned_identity_id": "",
"primary_key_uri": "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey",
"primary_user_assigned_identity_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
"type": azure_native.dbforpostgresql.DataEncryptionType.AZURE_KEY_VAULT,
},
high_availability={
"mode": azure_native.dbforpostgresql.PostgreSqlFlexibleServerHighAvailabilityMode.ZONE_REDUNDANT,
},
identity={
"type": azure_native.dbforpostgresql.IdentityType.USER_ASSIGNED,
"user_assigned_identities": {
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": {},
},
},
location="eastus",
network={
"delegated_subnet_resource_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet",
"private_dns_zone_arm_resource_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com",
},
resource_group_name="exampleresourcegroup",
server_name="exampleserver",
sku={
"name": "Standard_D4ds_v5",
"tier": azure_native.dbforpostgresql.SkuTier.GENERAL_PURPOSE,
},
storage={
"auto_grow": azure_native.dbforpostgresql.StorageAutoGrow.DISABLED,
"storage_size_gb": 512,
"tier": azure_native.dbforpostgresql.AzureManagedDiskPerformanceTier.P20,
},
version=azure_native.dbforpostgresql.PostgresMajorVersion.POSTGRES_MAJOR_VERSION_18)
resources:
server:
type: azure-native:dbforpostgresql:Server
properties:
administratorLogin: exampleadministratorlogin
administratorLoginPassword: examplepassword
availabilityZone: '1'
backup:
backupRetentionDays: 7
geoRedundantBackup: Disabled
createMode: Create
dataEncryption:
geoBackupKeyURI: ""
geoBackupUserAssignedIdentityId: ""
primaryKeyURI: https://exampleprimarykeyvault.vault.azure.net/keys/examplekey
primaryUserAssignedIdentityId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity
type: AzureKeyVault
highAvailability:
mode: ZoneRedundant
identity:
type: UserAssigned
userAssignedIdentities:
? /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity
: {}
location: eastus
network:
delegatedSubnetResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet
privateDnsZoneArmResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com
resourceGroupName: exampleresourcegroup
serverName: exampleserver
sku:
name: Standard_D4ds_v5
tier: GeneralPurpose
storage:
autoGrow: Disabled
storageSizeGB: 512
tier: P20
version: '18'
Create a new server with data encryption based on customer managed key.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var server = new AzureNative.DBforPostgreSQL.Server("server", new()
{
AdministratorLogin = "exampleadministratorlogin",
AdministratorLoginPassword = "examplepassword",
AvailabilityZone = "1",
Backup = new AzureNative.DBforPostgreSQL.Inputs.BackupArgs
{
BackupRetentionDays = 7,
GeoRedundantBackup = AzureNative.DBforPostgreSQL.GeographicallyRedundantBackup.Disabled,
},
CreateMode = AzureNative.DBforPostgreSQL.CreateMode.Create,
DataEncryption = new AzureNative.DBforPostgreSQL.Inputs.DataEncryptionArgs
{
GeoBackupKeyURI = "",
GeoBackupUserAssignedIdentityId = "",
PrimaryKeyURI = "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
PrimaryUserAssignedIdentityId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
Type = AzureNative.DBforPostgreSQL.DataEncryptionType.AzureKeyVault,
},
HighAvailability = new AzureNative.DBforPostgreSQL.Inputs.HighAvailabilityArgs
{
Mode = AzureNative.DBforPostgreSQL.PostgreSqlFlexibleServerHighAvailabilityMode.ZoneRedundant,
},
Identity = new AzureNative.DBforPostgreSQL.Inputs.UserAssignedIdentityArgs
{
Type = AzureNative.DBforPostgreSQL.IdentityType.UserAssigned,
UserAssignedIdentities =
{
{ "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity", null },
},
},
Location = "eastus",
Network = new AzureNative.DBforPostgreSQL.Inputs.NetworkArgs
{
DelegatedSubnetResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet",
PrivateDnsZoneArmResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com",
},
ResourceGroupName = "exampleresourcegroup",
ServerName = "exampleserver",
Sku = new AzureNative.DBforPostgreSQL.Inputs.SkuArgs
{
Name = "Standard_D4ds_v5",
Tier = AzureNative.DBforPostgreSQL.SkuTier.GeneralPurpose,
},
Storage = new AzureNative.DBforPostgreSQL.Inputs.StorageArgs
{
AutoGrow = AzureNative.DBforPostgreSQL.StorageAutoGrow.Disabled,
StorageSizeGB = 512,
Tier = AzureNative.DBforPostgreSQL.AzureManagedDiskPerformanceTier.P20,
},
Version = AzureNative.DBforPostgreSQL.PostgresMajorVersion.PostgresMajorVersion_18,
});
});
package main
import (
dbforpostgresql "github.com/pulumi/pulumi-azure-native-sdk/dbforpostgresql/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dbforpostgresql.NewServer(ctx, "server", &dbforpostgresql.ServerArgs{
AdministratorLogin: pulumi.String("exampleadministratorlogin"),
AdministratorLoginPassword: pulumi.String("examplepassword"),
AvailabilityZone: pulumi.String("1"),
Backup: &dbforpostgresql.BackupTypeArgs{
BackupRetentionDays: pulumi.Int(7),
GeoRedundantBackup: pulumi.String(dbforpostgresql.GeographicallyRedundantBackupDisabled),
},
CreateMode: pulumi.String(dbforpostgresql.CreateModeCreate),
DataEncryption: &dbforpostgresql.DataEncryptionArgs{
GeoBackupKeyURI: pulumi.String(""),
GeoBackupUserAssignedIdentityId: pulumi.String(""),
PrimaryKeyURI: pulumi.String("https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
PrimaryUserAssignedIdentityId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity"),
Type: pulumi.String(dbforpostgresql.DataEncryptionTypeAzureKeyVault),
},
HighAvailability: &dbforpostgresql.HighAvailabilityArgs{
Mode: pulumi.String(dbforpostgresql.PostgreSqlFlexibleServerHighAvailabilityModeZoneRedundant),
},
Identity: &dbforpostgresql.UserAssignedIdentityArgs{
Type: pulumi.String(dbforpostgresql.IdentityTypeUserAssigned),
UserAssignedIdentities: dbforpostgresql.UserIdentityMap{
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": &dbforpostgresql.UserIdentityArgs{},
},
},
Location: pulumi.String("eastus"),
Network: &dbforpostgresql.NetworkArgs{
DelegatedSubnetResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet"),
PrivateDnsZoneArmResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com"),
},
ResourceGroupName: pulumi.String("exampleresourcegroup"),
ServerName: pulumi.String("exampleserver"),
Sku: &dbforpostgresql.SkuArgs{
Name: pulumi.String("Standard_D4ds_v5"),
Tier: pulumi.String(dbforpostgresql.SkuTierGeneralPurpose),
},
Storage: &dbforpostgresql.StorageArgs{
AutoGrow: pulumi.String(dbforpostgresql.StorageAutoGrowDisabled),
StorageSizeGB: pulumi.Int(512),
Tier: pulumi.String(dbforpostgresql.AzureManagedDiskPerformanceTierP20),
},
Version: pulumi.String(dbforpostgresql.PostgresMajorVersion_18),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_dbforpostgresql_server" "server" {
administrator_login = "exampleadministratorlogin"
administrator_login_password = "examplepassword"
availability_zone = "1"
backup = {
backup_retention_days = 7
geo_redundant_backup = "Disabled"
}
create_mode = "Create"
data_encryption = {
geo_backup_key_uri = ""
geo_backup_user_assigned_identity_id = ""
primary_key_uri = "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
primary_user_assigned_identity_id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity"
type = "AzureKeyVault"
}
high_availability = {
mode = "ZoneRedundant"
}
identity = {
type = "UserAssigned"
user_assigned_identities = {
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity" = {}
}
}
location = "eastus"
network = {
delegated_subnet_resource_id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet"
private_dns_zone_arm_resource_id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com"
}
resource_group_name = "exampleresourcegroup"
server_name = "exampleserver"
sku = {
name = "Standard_D4ds_v5"
tier = "GeneralPurpose"
}
storage = {
auto_grow = "Disabled"
storage_size_gb = 512
tier = "P20"
}
version = "18"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dbforpostgresql.Server;
import com.pulumi.azurenative.dbforpostgresql.ServerArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.BackupArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.DataEncryptionArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.HighAvailabilityArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.UserAssignedIdentityArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.NetworkArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.SkuArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.StorageArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var server = new Server("server", ServerArgs.builder()
.administratorLogin("exampleadministratorlogin")
.administratorLoginPassword("examplepassword")
.availabilityZone("1")
.backup(BackupArgs.builder()
.backupRetentionDays(7)
.geoRedundantBackup("Disabled")
.build())
.createMode("Create")
.dataEncryption(DataEncryptionArgs.builder()
.geoBackupKeyURI("")
.geoBackupUserAssignedIdentityId("")
.primaryKeyURI("https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
.primaryUserAssignedIdentityId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity")
.type("AzureKeyVault")
.build())
.highAvailability(HighAvailabilityArgs.builder()
.mode("ZoneRedundant")
.build())
.identity(UserAssignedIdentityArgs.builder()
.type("UserAssigned")
.userAssignedIdentities(Map.of("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity", UserIdentityArgs.builder()
.build()))
.build())
.location("eastus")
.network(NetworkArgs.builder()
.delegatedSubnetResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet")
.privateDnsZoneArmResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com")
.build())
.resourceGroupName("exampleresourcegroup")
.serverName("exampleserver")
.sku(SkuArgs.builder()
.name("Standard_D4ds_v5")
.tier("GeneralPurpose")
.build())
.storage(StorageArgs.builder()
.autoGrow("Disabled")
.storageSizeGB(512)
.tier("P20")
.build())
.version("18")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const server = new azure_native.dbforpostgresql.Server("server", {
administratorLogin: "exampleadministratorlogin",
administratorLoginPassword: "examplepassword",
availabilityZone: "1",
backup: {
backupRetentionDays: 7,
geoRedundantBackup: azure_native.dbforpostgresql.GeographicallyRedundantBackup.Disabled,
},
createMode: azure_native.dbforpostgresql.CreateMode.Create,
dataEncryption: {
geoBackupKeyURI: "",
geoBackupUserAssignedIdentityId: "",
primaryKeyURI: "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
primaryUserAssignedIdentityId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
type: azure_native.dbforpostgresql.DataEncryptionType.AzureKeyVault,
},
highAvailability: {
mode: azure_native.dbforpostgresql.PostgreSqlFlexibleServerHighAvailabilityMode.ZoneRedundant,
},
identity: {
type: azure_native.dbforpostgresql.IdentityType.UserAssigned,
userAssignedIdentities: {
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": {},
},
},
location: "eastus",
network: {
delegatedSubnetResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet",
privateDnsZoneArmResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com",
},
resourceGroupName: "exampleresourcegroup",
serverName: "exampleserver",
sku: {
name: "Standard_D4ds_v5",
tier: azure_native.dbforpostgresql.SkuTier.GeneralPurpose,
},
storage: {
autoGrow: azure_native.dbforpostgresql.StorageAutoGrow.Disabled,
storageSizeGB: 512,
tier: azure_native.dbforpostgresql.AzureManagedDiskPerformanceTier.P20,
},
version: azure_native.dbforpostgresql.PostgresMajorVersion.PostgresMajorVersion_18,
});
import pulumi
import pulumi_azure_native as azure_native
server = azure_native.dbforpostgresql.Server("server",
administrator_login="exampleadministratorlogin",
administrator_login_password="examplepassword",
availability_zone="1",
backup={
"backup_retention_days": 7,
"geo_redundant_backup": azure_native.dbforpostgresql.GeographicallyRedundantBackup.DISABLED,
},
create_mode=azure_native.dbforpostgresql.CreateMode.CREATE,
data_encryption={
"geo_backup_key_uri": "",
"geo_backup_user_assigned_identity_id": "",
"primary_key_uri": "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"primary_user_assigned_identity_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
"type": azure_native.dbforpostgresql.DataEncryptionType.AZURE_KEY_VAULT,
},
high_availability={
"mode": azure_native.dbforpostgresql.PostgreSqlFlexibleServerHighAvailabilityMode.ZONE_REDUNDANT,
},
identity={
"type": azure_native.dbforpostgresql.IdentityType.USER_ASSIGNED,
"user_assigned_identities": {
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": {},
},
},
location="eastus",
network={
"delegated_subnet_resource_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet",
"private_dns_zone_arm_resource_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com",
},
resource_group_name="exampleresourcegroup",
server_name="exampleserver",
sku={
"name": "Standard_D4ds_v5",
"tier": azure_native.dbforpostgresql.SkuTier.GENERAL_PURPOSE,
},
storage={
"auto_grow": azure_native.dbforpostgresql.StorageAutoGrow.DISABLED,
"storage_size_gb": 512,
"tier": azure_native.dbforpostgresql.AzureManagedDiskPerformanceTier.P20,
},
version=azure_native.dbforpostgresql.PostgresMajorVersion.POSTGRES_MAJOR_VERSION_18)
resources:
server:
type: azure-native:dbforpostgresql:Server
properties:
administratorLogin: exampleadministratorlogin
administratorLoginPassword: examplepassword
availabilityZone: '1'
backup:
backupRetentionDays: 7
geoRedundantBackup: Disabled
createMode: Create
dataEncryption:
geoBackupKeyURI: ""
geoBackupUserAssignedIdentityId: ""
primaryKeyURI: https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
primaryUserAssignedIdentityId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity
type: AzureKeyVault
highAvailability:
mode: ZoneRedundant
identity:
type: UserAssigned
userAssignedIdentities:
? /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity
: {}
location: eastus
network:
delegatedSubnetResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.Network/virtualNetworks/examplevirtualnetwork/subnets/examplesubnet
privateDnsZoneArmResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/exampleresourcegroup/providers/Microsoft.Network/privateDnsZones/exampleprivatednszone.postgres.database.azure.com
resourceGroupName: exampleresourcegroup
serverName: exampleserver
sku:
name: Standard_D4ds_v5
tier: GeneralPurpose
storage:
autoGrow: Disabled
storageSizeGB: 512
tier: P20
version: '18'
Create a read replica of an existing server.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var server = new AzureNative.DBforPostgreSQL.Server("server", new()
{
CreateMode = AzureNative.DBforPostgreSQL.CreateMode.Replica,
DataEncryption = new AzureNative.DBforPostgreSQL.Inputs.DataEncryptionArgs
{
GeoBackupKeyURI = "",
GeoBackupUserAssignedIdentityId = "",
PrimaryKeyURI = "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
PrimaryUserAssignedIdentityId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
Type = AzureNative.DBforPostgreSQL.DataEncryptionType.AzureKeyVault,
},
Identity = new AzureNative.DBforPostgreSQL.Inputs.UserAssignedIdentityArgs
{
Type = AzureNative.DBforPostgreSQL.IdentityType.UserAssigned,
UserAssignedIdentities =
{
{ "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity", null },
},
},
Location = "eastus",
ResourceGroupName = "exampleresourcegroup",
ServerName = "exampleserver",
SourceServerResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver",
});
});
package main
import (
dbforpostgresql "github.com/pulumi/pulumi-azure-native-sdk/dbforpostgresql/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dbforpostgresql.NewServer(ctx, "server", &dbforpostgresql.ServerArgs{
CreateMode: pulumi.String(dbforpostgresql.CreateModeReplica),
DataEncryption: &dbforpostgresql.DataEncryptionArgs{
GeoBackupKeyURI: pulumi.String(""),
GeoBackupUserAssignedIdentityId: pulumi.String(""),
PrimaryKeyURI: pulumi.String("https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
PrimaryUserAssignedIdentityId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity"),
Type: pulumi.String(dbforpostgresql.DataEncryptionTypeAzureKeyVault),
},
Identity: &dbforpostgresql.UserAssignedIdentityArgs{
Type: pulumi.String(dbforpostgresql.IdentityTypeUserAssigned),
UserAssignedIdentities: dbforpostgresql.UserIdentityMap{
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": &dbforpostgresql.UserIdentityArgs{},
},
},
Location: pulumi.String("eastus"),
ResourceGroupName: pulumi.String("exampleresourcegroup"),
ServerName: pulumi.String("exampleserver"),
SourceServerResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver"),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_dbforpostgresql_server" "server" {
create_mode = "Replica"
data_encryption = {
geo_backup_key_uri = ""
geo_backup_user_assigned_identity_id = ""
primary_key_uri = "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
primary_user_assigned_identity_id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity"
type = "AzureKeyVault"
}
identity = {
type = "UserAssigned"
user_assigned_identities = {
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity" = {}
}
}
location = "eastus"
resource_group_name = "exampleresourcegroup"
server_name = "exampleserver"
source_server_resource_id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dbforpostgresql.Server;
import com.pulumi.azurenative.dbforpostgresql.ServerArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.DataEncryptionArgs;
import com.pulumi.azurenative.dbforpostgresql.inputs.UserAssignedIdentityArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var server = new Server("server", ServerArgs.builder()
.createMode("Replica")
.dataEncryption(DataEncryptionArgs.builder()
.geoBackupKeyURI("")
.geoBackupUserAssignedIdentityId("")
.primaryKeyURI("https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
.primaryUserAssignedIdentityId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity")
.type("AzureKeyVault")
.build())
.identity(UserAssignedIdentityArgs.builder()
.type("UserAssigned")
.userAssignedIdentities(Map.of("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity", UserIdentityArgs.builder()
.build()))
.build())
.location("eastus")
.resourceGroupName("exampleresourcegroup")
.serverName("exampleserver")
.sourceServerResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const server = new azure_native.dbforpostgresql.Server("server", {
createMode: azure_native.dbforpostgresql.CreateMode.Replica,
dataEncryption: {
geoBackupKeyURI: "",
geoBackupUserAssignedIdentityId: "",
primaryKeyURI: "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
primaryUserAssignedIdentityId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
type: azure_native.dbforpostgresql.DataEncryptionType.AzureKeyVault,
},
identity: {
type: azure_native.dbforpostgresql.IdentityType.UserAssigned,
userAssignedIdentities: {
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": {},
},
},
location: "eastus",
resourceGroupName: "exampleresourcegroup",
serverName: "exampleserver",
sourceServerResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver",
});
import pulumi
import pulumi_azure_native as azure_native
server = azure_native.dbforpostgresql.Server("server",
create_mode=azure_native.dbforpostgresql.CreateMode.REPLICA,
data_encryption={
"geo_backup_key_uri": "",
"geo_backup_user_assigned_identity_id": "",
"primary_key_uri": "https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"primary_user_assigned_identity_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity",
"type": azure_native.dbforpostgresql.DataEncryptionType.AZURE_KEY_VAULT,
},
identity={
"type": azure_native.dbforpostgresql.IdentityType.USER_ASSIGNED,
"user_assigned_identities": {
"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity": {},
},
},
location="eastus",
resource_group_name="exampleresourcegroup",
server_name="exampleserver",
source_server_resource_id="/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver")
resources:
server:
type: azure-native:dbforpostgresql:Server
properties:
createMode: Replica
dataEncryption:
geoBackupKeyURI: ""
geoBackupUserAssignedIdentityId: ""
primaryKeyURI: https://exampleprimarykeyvault.vault.azure.net/keys/examplekey/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
primaryUserAssignedIdentityId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity
type: AzureKeyVault
identity:
type: UserAssigned
userAssignedIdentities:
? /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleprimaryidentity
: {}
location: eastus
resourceGroupName: exampleresourcegroup
serverName: exampleserver
sourceServerResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/examplesourceserver
Create Server Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Server(name: string, args: ServerArgs, opts?: CustomResourceOptions);@overload
def Server(resource_name: str,
args: ServerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Server(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
location: Optional[str] = None,
network: Optional[NetworkArgs] = None,
availability_zone: Optional[str] = None,
backup: Optional[BackupArgs] = None,
cluster: Optional[ClusterArgs] = None,
create_mode: Optional[Union[str, CreateMode]] = None,
data_encryption: Optional[DataEncryptionArgs] = None,
high_availability: Optional[HighAvailabilityArgs] = None,
identity: Optional[UserAssignedIdentityArgs] = None,
point_in_time_utc: Optional[str] = None,
auth_config: Optional[AuthConfigArgs] = None,
maintenance_window: Optional[MaintenanceWindowArgs] = None,
administrator_login: Optional[str] = None,
replica: Optional[ReplicaArgs] = None,
replication_role: Optional[Union[str, ReplicationRole]] = None,
administrator_login_password: Optional[str] = None,
server_name: Optional[str] = None,
sku: Optional[SkuArgs] = None,
source_server_resource_id: Optional[str] = None,
storage: Optional[StorageArgs] = None,
tags: Optional[Mapping[str, str]] = None,
version: Optional[Union[str, PostgresMajorVersion]] = None)func NewServer(ctx *Context, name string, args ServerArgs, opts ...ResourceOption) (*Server, error)public Server(string name, ServerArgs args, CustomResourceOptions? opts = null)
public Server(String name, ServerArgs args)
public Server(String name, ServerArgs args, CustomResourceOptions options)
type: azure-native:dbforpostgresql:Server
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azure-native_dbforpostgresql_server" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleserverResourceResourceFromDbforpostgresql = new AzureNative.DBforPostgreSQL.Server("exampleserverResourceResourceFromDbforpostgresql", new()
{
ResourceGroupName = "string",
Location = "string",
Network = new AzureNative.DBforPostgreSQL.Inputs.NetworkArgs
{
DelegatedSubnetResourceId = "string",
PrivateDnsZoneArmResourceId = "string",
PublicNetworkAccess = "string",
},
AvailabilityZone = "string",
Backup = new AzureNative.DBforPostgreSQL.Inputs.BackupArgs
{
BackupRetentionDays = 0,
GeoRedundantBackup = "string",
},
Cluster = new AzureNative.DBforPostgreSQL.Inputs.ClusterArgs
{
ClusterSize = 0,
DefaultDatabaseName = "string",
},
CreateMode = "string",
DataEncryption = new AzureNative.DBforPostgreSQL.Inputs.DataEncryptionArgs
{
GeoBackupKeyURI = "string",
GeoBackupUserAssignedIdentityId = "string",
PrimaryKeyURI = "string",
PrimaryUserAssignedIdentityId = "string",
Type = "string",
},
HighAvailability = new AzureNative.DBforPostgreSQL.Inputs.HighAvailabilityArgs
{
Mode = "string",
StandbyAvailabilityZone = "string",
},
Identity = new AzureNative.DBforPostgreSQL.Inputs.UserAssignedIdentityArgs
{
Type = "string",
PrincipalId = "string",
UserAssignedIdentities =
{
{ "string", new AzureNative.DBforPostgreSQL.Inputs.UserIdentityArgs
{
ClientId = "string",
PrincipalId = "string",
} },
},
},
PointInTimeUTC = "string",
AuthConfig = new AzureNative.DBforPostgreSQL.Inputs.AuthConfigArgs
{
ActiveDirectoryAuth = "string",
PasswordAuth = "string",
TenantId = "string",
},
MaintenanceWindow = new AzureNative.DBforPostgreSQL.Inputs.MaintenanceWindowArgs
{
CustomWindow = "string",
DayOfWeek = 0,
StartHour = 0,
StartMinute = 0,
},
AdministratorLogin = "string",
Replica = new AzureNative.DBforPostgreSQL.Inputs.ReplicaArgs
{
PromoteMode = "string",
PromoteOption = "string",
Role = "string",
},
ReplicationRole = "string",
AdministratorLoginPassword = "string",
ServerName = "string",
Sku = new AzureNative.DBforPostgreSQL.Inputs.SkuArgs
{
Name = "string",
Tier = "string",
},
SourceServerResourceId = "string",
Storage = new AzureNative.DBforPostgreSQL.Inputs.StorageArgs
{
AutoGrow = "string",
Iops = 0,
StorageSizeGB = 0,
Throughput = 0,
Tier = "string",
Type = "string",
},
Tags =
{
{ "string", "string" },
},
Version = "string",
});
example, err := dbforpostgresql.NewServer(ctx, "exampleserverResourceResourceFromDbforpostgresql", &dbforpostgresql.ServerArgs{
ResourceGroupName: pulumi.String("string"),
Location: pulumi.String("string"),
Network: &dbforpostgresql.NetworkArgs{
DelegatedSubnetResourceId: pulumi.String("string"),
PrivateDnsZoneArmResourceId: pulumi.String("string"),
PublicNetworkAccess: pulumi.String("string"),
},
AvailabilityZone: pulumi.String("string"),
Backup: &dbforpostgresql.BackupTypeArgs{
BackupRetentionDays: pulumi.Int(0),
GeoRedundantBackup: pulumi.String("string"),
},
Cluster: &dbforpostgresql.ClusterArgs{
ClusterSize: pulumi.Int(0),
DefaultDatabaseName: pulumi.String("string"),
},
CreateMode: pulumi.String("string"),
DataEncryption: &dbforpostgresql.DataEncryptionArgs{
GeoBackupKeyURI: pulumi.String("string"),
GeoBackupUserAssignedIdentityId: pulumi.String("string"),
PrimaryKeyURI: pulumi.String("string"),
PrimaryUserAssignedIdentityId: pulumi.String("string"),
Type: pulumi.String("string"),
},
HighAvailability: &dbforpostgresql.HighAvailabilityArgs{
Mode: pulumi.String("string"),
StandbyAvailabilityZone: pulumi.String("string"),
},
Identity: &dbforpostgresql.UserAssignedIdentityArgs{
Type: pulumi.String("string"),
PrincipalId: pulumi.String("string"),
UserAssignedIdentities: dbforpostgresql.UserIdentityMap{
"string": &dbforpostgresql.UserIdentityArgs{
ClientId: pulumi.String("string"),
PrincipalId: pulumi.String("string"),
},
},
},
PointInTimeUTC: pulumi.String("string"),
AuthConfig: &dbforpostgresql.AuthConfigArgs{
ActiveDirectoryAuth: pulumi.String("string"),
PasswordAuth: pulumi.String("string"),
TenantId: pulumi.String("string"),
},
MaintenanceWindow: &dbforpostgresql.MaintenanceWindowArgs{
CustomWindow: pulumi.String("string"),
DayOfWeek: pulumi.Int(0),
StartHour: pulumi.Int(0),
StartMinute: pulumi.Int(0),
},
AdministratorLogin: pulumi.String("string"),
Replica: &dbforpostgresql.ReplicaArgs{
PromoteMode: pulumi.String("string"),
PromoteOption: pulumi.String("string"),
Role: pulumi.String("string"),
},
ReplicationRole: pulumi.String("string"),
AdministratorLoginPassword: pulumi.String("string"),
ServerName: pulumi.String("string"),
Sku: &dbforpostgresql.SkuArgs{
Name: pulumi.String("string"),
Tier: pulumi.String("string"),
},
SourceServerResourceId: pulumi.String("string"),
Storage: &dbforpostgresql.StorageArgs{
AutoGrow: pulumi.String("string"),
Iops: pulumi.Int(0),
StorageSizeGB: pulumi.Int(0),
Throughput: pulumi.Int(0),
Tier: pulumi.String("string"),
Type: pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Version: pulumi.String("string"),
})
resource "azure-native_dbforpostgresql_server" "exampleserverResourceResourceFromDbforpostgresql" {
lifecycle {
create_before_destroy = true
}
resource_group_name = "string"
location = "string"
network = {
delegated_subnet_resource_id = "string"
private_dns_zone_arm_resource_id = "string"
public_network_access = "string"
}
availability_zone = "string"
backup = {
backup_retention_days = 0
geo_redundant_backup = "string"
}
cluster = {
cluster_size = 0
default_database_name = "string"
}
create_mode = "string"
data_encryption = {
geo_backup_key_uri = "string"
geo_backup_user_assigned_identity_id = "string"
primary_key_uri = "string"
primary_user_assigned_identity_id = "string"
type = "string"
}
high_availability = {
mode = "string"
standby_availability_zone = "string"
}
identity = {
type = "string"
principal_id = "string"
user_assigned_identities = {
"string" = {
client_id = "string"
principal_id = "string"
}
}
}
point_in_time_utc = "string"
auth_config = {
active_directory_auth = "string"
password_auth = "string"
tenant_id = "string"
}
maintenance_window = {
custom_window = "string"
day_of_week = 0
start_hour = 0
start_minute = 0
}
administrator_login = "string"
replica = {
promote_mode = "string"
promote_option = "string"
role = "string"
}
replication_role = "string"
administrator_login_password = "string"
server_name = "string"
sku = {
name = "string"
tier = "string"
}
source_server_resource_id = "string"
storage = {
auto_grow = "string"
iops = 0
storage_size_gb = 0
throughput = 0
tier = "string"
type = "string"
}
tags = {
"string" = "string"
}
version = "string"
}
var exampleserverResourceResourceFromDbforpostgresql = new com.pulumi.azurenative.dbforpostgresql.Server("exampleserverResourceResourceFromDbforpostgresql", com.pulumi.azurenative.dbforpostgresql.ServerArgs.builder()
.resourceGroupName("string")
.location("string")
.network(com.pulumi.azurenative.dbforpostgresql.inputs.NetworkArgs.builder()
.delegatedSubnetResourceId("string")
.privateDnsZoneArmResourceId("string")
.publicNetworkAccess("string")
.build())
.availabilityZone("string")
.backup(com.pulumi.azurenative.dbforpostgresql.inputs.BackupArgs.builder()
.backupRetentionDays(0)
.geoRedundantBackup("string")
.build())
.cluster(com.pulumi.azurenative.dbforpostgresql.inputs.ClusterArgs.builder()
.clusterSize(0)
.defaultDatabaseName("string")
.build())
.createMode("string")
.dataEncryption(com.pulumi.azurenative.dbforpostgresql.inputs.DataEncryptionArgs.builder()
.geoBackupKeyURI("string")
.geoBackupUserAssignedIdentityId("string")
.primaryKeyURI("string")
.primaryUserAssignedIdentityId("string")
.type("string")
.build())
.highAvailability(com.pulumi.azurenative.dbforpostgresql.inputs.HighAvailabilityArgs.builder()
.mode("string")
.standbyAvailabilityZone("string")
.build())
.identity(com.pulumi.azurenative.dbforpostgresql.inputs.UserAssignedIdentityArgs.builder()
.type("string")
.principalId("string")
.userAssignedIdentities(Map.of("string", com.pulumi.azurenative.dbforpostgresql.inputs.UserIdentityArgs.builder()
.clientId("string")
.principalId("string")
.build()))
.build())
.pointInTimeUTC("string")
.authConfig(AuthConfigArgs.builder()
.activeDirectoryAuth("string")
.passwordAuth("string")
.tenantId("string")
.build())
.maintenanceWindow(com.pulumi.azurenative.dbforpostgresql.inputs.MaintenanceWindowArgs.builder()
.customWindow("string")
.dayOfWeek(0)
.startHour(0)
.startMinute(0)
.build())
.administratorLogin("string")
.replica(com.pulumi.azurenative.dbforpostgresql.inputs.ReplicaArgs.builder()
.promoteMode("string")
.promoteOption("string")
.role("string")
.build())
.replicationRole("string")
.administratorLoginPassword("string")
.serverName("string")
.sku(com.pulumi.azurenative.dbforpostgresql.inputs.SkuArgs.builder()
.name("string")
.tier("string")
.build())
.sourceServerResourceId("string")
.storage(com.pulumi.azurenative.dbforpostgresql.inputs.StorageArgs.builder()
.autoGrow("string")
.iops(0)
.storageSizeGB(0)
.throughput(0)
.tier("string")
.type("string")
.build())
.tags(Map.of("string", "string"))
.version("string")
.build());
exampleserver_resource_resource_from_dbforpostgresql = azure_native.dbforpostgresql.Server("exampleserverResourceResourceFromDbforpostgresql",
resource_group_name="string",
location="string",
network={
"delegated_subnet_resource_id": "string",
"private_dns_zone_arm_resource_id": "string",
"public_network_access": "string",
},
availability_zone="string",
backup={
"backup_retention_days": 0,
"geo_redundant_backup": "string",
},
cluster={
"cluster_size": 0,
"default_database_name": "string",
},
create_mode="string",
data_encryption={
"geo_backup_key_uri": "string",
"geo_backup_user_assigned_identity_id": "string",
"primary_key_uri": "string",
"primary_user_assigned_identity_id": "string",
"type": "string",
},
high_availability={
"mode": "string",
"standby_availability_zone": "string",
},
identity={
"type": "string",
"principal_id": "string",
"user_assigned_identities": {
"string": {
"client_id": "string",
"principal_id": "string",
},
},
},
point_in_time_utc="string",
auth_config={
"active_directory_auth": "string",
"password_auth": "string",
"tenant_id": "string",
},
maintenance_window={
"custom_window": "string",
"day_of_week": 0,
"start_hour": 0,
"start_minute": 0,
},
administrator_login="string",
replica={
"promote_mode": "string",
"promote_option": "string",
"role": "string",
},
replication_role="string",
administrator_login_password="string",
server_name="string",
sku={
"name": "string",
"tier": "string",
},
source_server_resource_id="string",
storage={
"auto_grow": "string",
"iops": 0,
"storage_size_gb": 0,
"throughput": 0,
"tier": "string",
"type": "string",
},
tags={
"string": "string",
},
version="string")
const exampleserverResourceResourceFromDbforpostgresql = new azure_native.dbforpostgresql.Server("exampleserverResourceResourceFromDbforpostgresql", {
resourceGroupName: "string",
location: "string",
network: {
delegatedSubnetResourceId: "string",
privateDnsZoneArmResourceId: "string",
publicNetworkAccess: "string",
},
availabilityZone: "string",
backup: {
backupRetentionDays: 0,
geoRedundantBackup: "string",
},
cluster: {
clusterSize: 0,
defaultDatabaseName: "string",
},
createMode: "string",
dataEncryption: {
geoBackupKeyURI: "string",
geoBackupUserAssignedIdentityId: "string",
primaryKeyURI: "string",
primaryUserAssignedIdentityId: "string",
type: "string",
},
highAvailability: {
mode: "string",
standbyAvailabilityZone: "string",
},
identity: {
type: "string",
principalId: "string",
userAssignedIdentities: {
string: {
clientId: "string",
principalId: "string",
},
},
},
pointInTimeUTC: "string",
authConfig: {
activeDirectoryAuth: "string",
passwordAuth: "string",
tenantId: "string",
},
maintenanceWindow: {
customWindow: "string",
dayOfWeek: 0,
startHour: 0,
startMinute: 0,
},
administratorLogin: "string",
replica: {
promoteMode: "string",
promoteOption: "string",
role: "string",
},
replicationRole: "string",
administratorLoginPassword: "string",
serverName: "string",
sku: {
name: "string",
tier: "string",
},
sourceServerResourceId: "string",
storage: {
autoGrow: "string",
iops: 0,
storageSizeGB: 0,
throughput: 0,
tier: "string",
type: "string",
},
tags: {
string: "string",
},
version: "string",
});
type: azure-native:dbforpostgresql:Server
properties:
administratorLogin: string
administratorLoginPassword: string
authConfig:
activeDirectoryAuth: string
passwordAuth: string
tenantId: string
availabilityZone: string
backup:
backupRetentionDays: 0
geoRedundantBackup: string
cluster:
clusterSize: 0
defaultDatabaseName: string
createMode: string
dataEncryption:
geoBackupKeyURI: string
geoBackupUserAssignedIdentityId: string
primaryKeyURI: string
primaryUserAssignedIdentityId: string
type: string
highAvailability:
mode: string
standbyAvailabilityZone: string
identity:
principalId: string
type: string
userAssignedIdentities:
string:
clientId: string
principalId: string
location: string
maintenanceWindow:
customWindow: string
dayOfWeek: 0
startHour: 0
startMinute: 0
network:
delegatedSubnetResourceId: string
privateDnsZoneArmResourceId: string
publicNetworkAccess: string
pointInTimeUTC: string
replica:
promoteMode: string
promoteOption: string
role: string
replicationRole: string
resourceGroupName: string
serverName: string
sku:
name: string
tier: string
sourceServerResourceId: string
storage:
autoGrow: string
iops: 0
storageSizeGB: 0
throughput: 0
tier: string
type: string
tags:
string: string
version: string
Server Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Server resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Administrator
Login string - Name of the login designated as the first password based administrator assigned to your instance of PostgreSQL. Must be specified the first time that you enable password based authentication on a server. Once set to a given value, it cannot be changed for the rest of the life of a server. If you disable password based authentication on a server which had it enabled, this password based role isn't deleted.
- Administrator
Login stringPassword - Password assigned to the administrator login. As long as password authentication is enabled, this password can be changed at any time.
- Auth
Config Pulumi.Azure Native. DBfor Postgre SQL. Inputs. Auth Config - Authentication configuration properties of a server.
- Availability
Zone string - Availability zone of a server.
- Backup
Pulumi.
Azure Native. DBfor Postgre SQL. Inputs. Backup - Backup properties of a server.
- Cluster
Pulumi.
Azure Native. DBfor Postgre SQL. Inputs. Cluster - Cluster properties of a server.
- Create
Mode string | Pulumi.Azure Native. DBfor Postgre SQL. Create Mode - Creation mode of a new server.
- Data
Encryption Pulumi.Azure Native. DBfor Postgre SQL. Inputs. Data Encryption - Data encryption properties of a server.
- High
Availability Pulumi.Azure Native. DBfor Postgre SQL. Inputs. High Availability - High availability properties of a server.
- Identity
Pulumi.
Azure Native. DBfor Postgre SQL. Inputs. User Assigned Identity - User assigned managed identities assigned to the server.
- Location string
- The geo-location where the resource lives
- Maintenance
Window Pulumi.Azure Native. DBfor Postgre SQL. Inputs. Maintenance Window - Maintenance window properties of a server.
- Network
Pulumi.
Azure Native. DBfor Postgre SQL. Inputs. Network - Network properties of a server. Only required if you want your server to be integrated into a virtual network provided by customer.
- Point
In stringTime UTC - Creation time (in ISO8601 format) of the backup which you want to restore in the new server. It's required when 'createMode' is 'PointInTimeRestore', 'GeoRestore', or 'ReviveDropped'.
- Replica
Pulumi.
Azure Native. DBfor Postgre SQL. Inputs. Replica - Read replica properties of a server. Required only in case that you want to promote a server.
- Replication
Role string | Pulumi.Azure Native. DBfor Postgre SQL. Replication Role - Role of the server in a replication set.
- Server
Name string - The name of the server.
- Sku
Pulumi.
Azure Native. DBfor Postgre SQL. Inputs. Sku - Compute tier and size of a server.
- Source
Server stringResource Id - Identifier of the server to be used as the source of the new server. Required when 'createMode' is 'PointInTimeRestore', 'GeoRestore', 'Replica', or 'ReviveDropped'. This property is returned only when the target server is a read replica.
- Storage
Pulumi.
Azure Native. DBfor Postgre SQL. Inputs. Storage - Storage properties of a server.
- Dictionary<string, string>
- Resource tags.
- Version
string | Pulumi.
Azure Native. DBfor Postgre SQL. Postgres Major Version - Major version of PostgreSQL database engine.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Administrator
Login string - Name of the login designated as the first password based administrator assigned to your instance of PostgreSQL. Must be specified the first time that you enable password based authentication on a server. Once set to a given value, it cannot be changed for the rest of the life of a server. If you disable password based authentication on a server which had it enabled, this password based role isn't deleted.
- Administrator
Login stringPassword - Password assigned to the administrator login. As long as password authentication is enabled, this password can be changed at any time.
- Auth
Config AuthConfig Args - Authentication configuration properties of a server.
- Availability
Zone string - Availability zone of a server.
- Backup
Backup
Type Args - Backup properties of a server.
- Cluster
Cluster
Args - Cluster properties of a server.
- Create
Mode string | CreateMode - Creation mode of a new server.
- Data
Encryption DataEncryption Args - Data encryption properties of a server.
- High
Availability HighAvailability Args - High availability properties of a server.
- Identity
User
Assigned Identity Args - User assigned managed identities assigned to the server.
- Location string
- The geo-location where the resource lives
- Maintenance
Window MaintenanceWindow Args - Maintenance window properties of a server.
- Network
Network
Args - Network properties of a server. Only required if you want your server to be integrated into a virtual network provided by customer.
- Point
In stringTime UTC - Creation time (in ISO8601 format) of the backup which you want to restore in the new server. It's required when 'createMode' is 'PointInTimeRestore', 'GeoRestore', or 'ReviveDropped'.
- Replica
Replica
Args - Read replica properties of a server. Required only in case that you want to promote a server.
- Replication
Role string | ReplicationRole - Role of the server in a replication set.
- Server
Name string - The name of the server.
- Sku
Sku
Args - Compute tier and size of a server.
- Source
Server stringResource Id - Identifier of the server to be used as the source of the new server. Required when 'createMode' is 'PointInTimeRestore', 'GeoRestore', 'Replica', or 'ReviveDropped'. This property is returned only when the target server is a read replica.
- Storage
Storage
Args - Storage properties of a server.
- map[string]string
- Resource tags.
- Version
string | Postgres
Major Version - Major version of PostgreSQL database engine.
- resource_
group_ stringname - The name of the resource group. The name is case insensitive.
- administrator_
login string - Name of the login designated as the first password based administrator assigned to your instance of PostgreSQL. Must be specified the first time that you enable password based authentication on a server. Once set to a given value, it cannot be changed for the rest of the life of a server. If you disable password based authentication on a server which had it enabled, this password based role isn't deleted.
- administrator_
login_ stringpassword - Password assigned to the administrator login. As long as password authentication is enabled, this password can be changed at any time.
- auth_
config object - Authentication configuration properties of a server.
- availability_
zone string - Availability zone of a server.
- backup object
- Backup properties of a server.
- cluster object
- Cluster properties of a server.
- create_
mode string | "Default" | "Create" | "Update" | "PointIn Time Restore" | "Geo Restore" | "Replica" | "Revive Dropped" - Creation mode of a new server.
- data_
encryption object - Data encryption properties of a server.
- high_
availability object - High availability properties of a server.
- identity object
- User assigned managed identities assigned to the server.
- location string
- The geo-location where the resource lives
- maintenance_
window object - Maintenance window properties of a server.
- network object
- Network properties of a server. Only required if you want your server to be integrated into a virtual network provided by customer.
- point_
in_ stringtime_ utc - Creation time (in ISO8601 format) of the backup which you want to restore in the new server. It's required when 'createMode' is 'PointInTimeRestore', 'GeoRestore', or 'ReviveDropped'.
- replica object
- Read replica properties of a server. Required only in case that you want to promote a server.
- replication_
role string | "None" | "Primary" | "AsyncReplica" | "Geo Async Replica" - Role of the server in a replication set.
- server_
name string - The name of the server.
- sku object
- Compute tier and size of a server.
- source_
server_ stringresource_ id - Identifier of the server to be used as the source of the new server. Required when 'createMode' is 'PointInTimeRestore', 'GeoRestore', 'Replica', or 'ReviveDropped'. This property is returned only when the target server is a read replica.
- storage object
- Storage properties of a server.
- map(string)
- Resource tags.
- version string | "18" | "17" | "16" | "15" | "14" | "13" | "12" | "11"
- Major version of PostgreSQL database engine.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- administrator
Login String - Name of the login designated as the first password based administrator assigned to your instance of PostgreSQL. Must be specified the first time that you enable password based authentication on a server. Once set to a given value, it cannot be changed for the rest of the life of a server. If you disable password based authentication on a server which had it enabled, this password based role isn't deleted.
- administrator
Login StringPassword - Password assigned to the administrator login. As long as password authentication is enabled, this password can be changed at any time.
- auth
Config AuthConfig - Authentication configuration properties of a server.
- availability
Zone String - Availability zone of a server.
- backup Backup
- Backup properties of a server.
- cluster Cluster
- Cluster properties of a server.
- create
Mode String | CreateMode - Creation mode of a new server.
- data
Encryption DataEncryption - Data encryption properties of a server.
- high
Availability HighAvailability - High availability properties of a server.
- identity
User
Assigned Identity - User assigned managed identities assigned to the server.
- location String
- The geo-location where the resource lives
- maintenance
Window MaintenanceWindow - Maintenance window properties of a server.
- network Network
- Network properties of a server. Only required if you want your server to be integrated into a virtual network provided by customer.
- point
In StringTime UTC - Creation time (in ISO8601 format) of the backup which you want to restore in the new server. It's required when 'createMode' is 'PointInTimeRestore', 'GeoRestore', or 'ReviveDropped'.
- replica Replica
- Read replica properties of a server. Required only in case that you want to promote a server.
- replication
Role String | ReplicationRole - Role of the server in a replication set.
- server
Name String - The name of the server.
- sku Sku
- Compute tier and size of a server.
- source
Server StringResource Id - Identifier of the server to be used as the source of the new server. Required when 'createMode' is 'PointInTimeRestore', 'GeoRestore', 'Replica', or 'ReviveDropped'. This property is returned only when the target server is a read replica.
- storage Storage
- Storage properties of a server.
- Map<String,String>
- Resource tags.
- version
String | Postgres
Major Version - Major version of PostgreSQL database engine.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- administrator
Login string - Name of the login designated as the first password based administrator assigned to your instance of PostgreSQL. Must be specified the first time that you enable password based authentication on a server. Once set to a given value, it cannot be changed for the rest of the life of a server. If you disable password based authentication on a server which had it enabled, this password based role isn't deleted.
- administrator
Login stringPassword - Password assigned to the administrator login. As long as password authentication is enabled, this password can be changed at any time.
- auth
Config AuthConfig - Authentication configuration properties of a server.
- availability
Zone string - Availability zone of a server.
- backup Backup
- Backup properties of a server.
- cluster Cluster
- Cluster properties of a server.
- create
Mode string | CreateMode - Creation mode of a new server.
- data
Encryption DataEncryption - Data encryption properties of a server.
- high
Availability HighAvailability - High availability properties of a server.
- identity
User
Assigned Identity - User assigned managed identities assigned to the server.
- location string
- The geo-location where the resource lives
- maintenance
Window MaintenanceWindow - Maintenance window properties of a server.
- network Network
- Network properties of a server. Only required if you want your server to be integrated into a virtual network provided by customer.
- point
In stringTime UTC - Creation time (in ISO8601 format) of the backup which you want to restore in the new server. It's required when 'createMode' is 'PointInTimeRestore', 'GeoRestore', or 'ReviveDropped'.
- replica Replica
- Read replica properties of a server. Required only in case that you want to promote a server.
- replication
Role string | ReplicationRole - Role of the server in a replication set.
- server
Name string - The name of the server.
- sku Sku
- Compute tier and size of a server.
- source
Server stringResource Id - Identifier of the server to be used as the source of the new server. Required when 'createMode' is 'PointInTimeRestore', 'GeoRestore', 'Replica', or 'ReviveDropped'. This property is returned only when the target server is a read replica.
- storage Storage
- Storage properties of a server.
- {[key: string]: string}
- Resource tags.
- version
string | Postgres
Major Version - Major version of PostgreSQL database engine.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- administrator_
login str - Name of the login designated as the first password based administrator assigned to your instance of PostgreSQL. Must be specified the first time that you enable password based authentication on a server. Once set to a given value, it cannot be changed for the rest of the life of a server. If you disable password based authentication on a server which had it enabled, this password based role isn't deleted.
- administrator_
login_ strpassword - Password assigned to the administrator login. As long as password authentication is enabled, this password can be changed at any time.
- auth_
config AuthConfig Args - Authentication configuration properties of a server.
- availability_
zone str - Availability zone of a server.
- backup
Backup
Args - Backup properties of a server.
- cluster
Cluster
Args - Cluster properties of a server.
- create_
mode str | CreateMode - Creation mode of a new server.
- data_
encryption DataEncryption Args - Data encryption properties of a server.
- high_
availability HighAvailability Args - High availability properties of a server.
- identity
User
Assigned Identity Args - User assigned managed identities assigned to the server.
- location str
- The geo-location where the resource lives
- maintenance_
window MaintenanceWindow Args - Maintenance window properties of a server.
- network
Network
Args - Network properties of a server. Only required if you want your server to be integrated into a virtual network provided by customer.
- point_
in_ strtime_ utc - Creation time (in ISO8601 format) of the backup which you want to restore in the new server. It's required when 'createMode' is 'PointInTimeRestore', 'GeoRestore', or 'ReviveDropped'.
- replica
Replica
Args - Read replica properties of a server. Required only in case that you want to promote a server.
- replication_
role str | ReplicationRole - Role of the server in a replication set.
- server_
name str - The name of the server.
- sku
Sku
Args - Compute tier and size of a server.
- source_
server_ strresource_ id - Identifier of the server to be used as the source of the new server. Required when 'createMode' is 'PointInTimeRestore', 'GeoRestore', 'Replica', or 'ReviveDropped'. This property is returned only when the target server is a read replica.
- storage
Storage
Args - Storage properties of a server.
- Mapping[str, str]
- Resource tags.
- version
str | Postgres
Major Version - Major version of PostgreSQL database engine.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- administrator
Login String - Name of the login designated as the first password based administrator assigned to your instance of PostgreSQL. Must be specified the first time that you enable password based authentication on a server. Once set to a given value, it cannot be changed for the rest of the life of a server. If you disable password based authentication on a server which had it enabled, this password based role isn't deleted.
- administrator
Login StringPassword - Password assigned to the administrator login. As long as password authentication is enabled, this password can be changed at any time.
- auth
Config Property Map - Authentication configuration properties of a server.
- availability
Zone String - Availability zone of a server.
- backup Property Map
- Backup properties of a server.
- cluster Property Map
- Cluster properties of a server.
- create
Mode String | "Default" | "Create" | "Update" | "PointIn Time Restore" | "Geo Restore" | "Replica" | "Revive Dropped" - Creation mode of a new server.
- data
Encryption Property Map - Data encryption properties of a server.
- high
Availability Property Map - High availability properties of a server.
- identity Property Map
- User assigned managed identities assigned to the server.
- location String
- The geo-location where the resource lives
- maintenance
Window Property Map - Maintenance window properties of a server.
- network Property Map
- Network properties of a server. Only required if you want your server to be integrated into a virtual network provided by customer.
- point
In StringTime UTC - Creation time (in ISO8601 format) of the backup which you want to restore in the new server. It's required when 'createMode' is 'PointInTimeRestore', 'GeoRestore', or 'ReviveDropped'.
- replica Property Map
- Read replica properties of a server. Required only in case that you want to promote a server.
- replication
Role String | "None" | "Primary" | "AsyncReplica" | "Geo Async Replica" - Role of the server in a replication set.
- server
Name String - The name of the server.
- sku Property Map
- Compute tier and size of a server.
- source
Server StringResource Id - Identifier of the server to be used as the source of the new server. Required when 'createMode' is 'PointInTimeRestore', 'GeoRestore', 'Replica', or 'ReviveDropped'. This property is returned only when the target server is a read replica.
- storage Property Map
- Storage properties of a server.
- Map<String>
- Resource tags.
- version String | "18" | "17" | "16" | "15" | "14" | "13" | "12" | "11"
- Major version of PostgreSQL database engine.
Outputs
All input properties are implicitly available as output properties. Additionally, the Server resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Fully
Qualified stringDomain Name - Fully qualified domain name of a server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Minor
Version string - Minor version of PostgreSQL database engine.
- Name string
- The name of the resource
- Private
Endpoint List<Pulumi.Connections Azure Native. DBfor Postgre SQL. Outputs. Private Endpoint Connection Response> - List of private endpoint connections associated with the specified server.
- Replica
Capacity int - Maximum number of read replicas allowed for a server.
- State string
- Possible states of a server.
- System
Data Pulumi.Azure Native. DBfor Postgre SQL. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Azure
Api stringVersion - The Azure API version of the resource.
- Fully
Qualified stringDomain Name - Fully qualified domain name of a server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Minor
Version string - Minor version of PostgreSQL database engine.
- Name string
- The name of the resource
- Private
Endpoint []PrivateConnections Endpoint Connection Response - List of private endpoint connections associated with the specified server.
- Replica
Capacity int - Maximum number of read replicas allowed for a server.
- State string
- Possible states of a server.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_
api_ stringversion - The Azure API version of the resource.
- fully_
qualified_ stringdomain_ name - Fully qualified domain name of a server.
- id string
- The provider-assigned unique ID for this managed resource.
- minor_
version string - Minor version of PostgreSQL database engine.
- name string
- The name of the resource
- private_
endpoint_ list(object)connections - List of private endpoint connections associated with the specified server.
- replica_
capacity number - Maximum number of read replicas allowed for a server.
- state string
- Possible states of a server.
- system_
data object - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- fully
Qualified StringDomain Name - Fully qualified domain name of a server.
- id String
- The provider-assigned unique ID for this managed resource.
- minor
Version String - Minor version of PostgreSQL database engine.
- name String
- The name of the resource
- private
Endpoint List<PrivateConnections Endpoint Connection Response> - List of private endpoint connections associated with the specified server.
- replica
Capacity Integer - Maximum number of read replicas allowed for a server.
- state String
- Possible states of a server.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api stringVersion - The Azure API version of the resource.
- fully
Qualified stringDomain Name - Fully qualified domain name of a server.
- id string
- The provider-assigned unique ID for this managed resource.
- minor
Version string - Minor version of PostgreSQL database engine.
- name string
- The name of the resource
- private
Endpoint PrivateConnections Endpoint Connection Response[] - List of private endpoint connections associated with the specified server.
- replica
Capacity number - Maximum number of read replicas allowed for a server.
- state string
- Possible states of a server.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_
api_ strversion - The Azure API version of the resource.
- fully_
qualified_ strdomain_ name - Fully qualified domain name of a server.
- id str
- The provider-assigned unique ID for this managed resource.
- minor_
version str - Minor version of PostgreSQL database engine.
- name str
- The name of the resource
- private_
endpoint_ Sequence[Privateconnections Endpoint Connection Response] - List of private endpoint connections associated with the specified server.
- replica_
capacity int - Maximum number of read replicas allowed for a server.
- state str
- Possible states of a server.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- fully
Qualified StringDomain Name - Fully qualified domain name of a server.
- id String
- The provider-assigned unique ID for this managed resource.
- minor
Version String - Minor version of PostgreSQL database engine.
- name String
- The name of the resource
- private
Endpoint List<Property Map>Connections - List of private endpoint connections associated with the specified server.
- replica
Capacity Number - Maximum number of read replicas allowed for a server.
- state String
- Possible states of a server.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
AuthConfig, AuthConfigArgs
Authentication configuration properties of a server.- Active
Directory string | Pulumi.Auth Azure Native. DBfor Postgre SQL. Microsoft Entra Auth - Indicates if the server supports Microsoft Entra authentication.
- Password
Auth string | Pulumi.Azure Native. DBfor Postgre SQL. Password Based Auth - Indicates if the server supports password based authentication.
- Tenant
Id string - Identifier of the tenant of the delegated resource.
- Active
Directory string | MicrosoftAuth Entra Auth - Indicates if the server supports Microsoft Entra authentication.
- Password
Auth string | PasswordBased Auth - Indicates if the server supports password based authentication.
- Tenant
Id string - Identifier of the tenant of the delegated resource.
- active_
directory_ string | "Enabled" | "Disabled"auth - Indicates if the server supports Microsoft Entra authentication.
- password_
auth string | "Enabled" | "Disabled" - Indicates if the server supports password based authentication.
- tenant_
id string - Identifier of the tenant of the delegated resource.
- active
Directory String | MicrosoftAuth Entra Auth - Indicates if the server supports Microsoft Entra authentication.
- password
Auth String | PasswordBased Auth - Indicates if the server supports password based authentication.
- tenant
Id String - Identifier of the tenant of the delegated resource.
- active
Directory string | MicrosoftAuth Entra Auth - Indicates if the server supports Microsoft Entra authentication.
- password
Auth string | PasswordBased Auth - Indicates if the server supports password based authentication.
- tenant
Id string - Identifier of the tenant of the delegated resource.
- active_
directory_ str | Microsoftauth Entra Auth - Indicates if the server supports Microsoft Entra authentication.
- password_
auth str | PasswordBased Auth - Indicates if the server supports password based authentication.
- tenant_
id str - Identifier of the tenant of the delegated resource.
- active
Directory String | "Enabled" | "Disabled"Auth - Indicates if the server supports Microsoft Entra authentication.
- password
Auth String | "Enabled" | "Disabled" - Indicates if the server supports password based authentication.
- tenant
Id String - Identifier of the tenant of the delegated resource.
AuthConfigResponse, AuthConfigResponseArgs
Authentication configuration properties of a server.- Active
Directory stringAuth - Indicates if the server supports Microsoft Entra authentication.
- Password
Auth string - Indicates if the server supports password based authentication.
- Tenant
Id string - Identifier of the tenant of the delegated resource.
- Active
Directory stringAuth - Indicates if the server supports Microsoft Entra authentication.
- Password
Auth string - Indicates if the server supports password based authentication.
- Tenant
Id string - Identifier of the tenant of the delegated resource.
- active_
directory_ stringauth - Indicates if the server supports Microsoft Entra authentication.
- password_
auth string - Indicates if the server supports password based authentication.
- tenant_
id string - Identifier of the tenant of the delegated resource.
- active
Directory StringAuth - Indicates if the server supports Microsoft Entra authentication.
- password
Auth String - Indicates if the server supports password based authentication.
- tenant
Id String - Identifier of the tenant of the delegated resource.
- active
Directory stringAuth - Indicates if the server supports Microsoft Entra authentication.
- password
Auth string - Indicates if the server supports password based authentication.
- tenant
Id string - Identifier of the tenant of the delegated resource.
- active_
directory_ strauth - Indicates if the server supports Microsoft Entra authentication.
- password_
auth str - Indicates if the server supports password based authentication.
- tenant_
id str - Identifier of the tenant of the delegated resource.
- active
Directory StringAuth - Indicates if the server supports Microsoft Entra authentication.
- password
Auth String - Indicates if the server supports password based authentication.
- tenant
Id String - Identifier of the tenant of the delegated resource.
AzureManagedDiskPerformanceTier, AzureManagedDiskPerformanceTierArgs
- P1
P1Entry-level SSD for minimal IOPS, ideal for light development or testing workloads.- P2
P2Slightly higher IOPS for small-scale applications needing consistent low latency.- P3
P3Balanced performance for basic production workloads with moderate throughput.- P4
P4Enhanced IOPS for growing apps with predictable performance needs.- P6
P6Mid-tier SSD for steady workloads requiring reliable throughput and latency.- P10
P10Popular choice for general-purpose production workloads with scalable performance.- P15
P15High IOPS tier for demanding apps with frequent read/write operations.- P20
P20Entry point for high-performance Solid State Disks (SSDs), suitable for small-scale I/O-intensive workloads.- P30
P30Balanced tier for moderate throughput and latency-sensitive applications.- P40
P40Enhanced performance for growing production workloads with consistent IOPS demands.- P50
P50Optimized for enterprise-grade applications needing sustained high throughput.- P60
P60High-capacity tier for large databases and analytics workloads with elevated IOPS.- P70
P70Designed for mission-critical systems requiring ultra-low latency and high concurrency.- P80
P80Top-tier SSD for maximum IOPS and throughput, ideal for the most demanding workloads.
- Azure
Managed Disk Performance Tier P1 P1Entry-level SSD for minimal IOPS, ideal for light development or testing workloads.- Azure
Managed Disk Performance Tier P2 P2Slightly higher IOPS for small-scale applications needing consistent low latency.- Azure
Managed Disk Performance Tier P3 P3Balanced performance for basic production workloads with moderate throughput.- Azure
Managed Disk Performance Tier P4 P4Enhanced IOPS for growing apps with predictable performance needs.- Azure
Managed Disk Performance Tier P6 P6Mid-tier SSD for steady workloads requiring reliable throughput and latency.- Azure
Managed Disk Performance Tier P10 P10Popular choice for general-purpose production workloads with scalable performance.- Azure
Managed Disk Performance Tier P15 P15High IOPS tier for demanding apps with frequent read/write operations.- Azure
Managed Disk Performance Tier P20 P20Entry point for high-performance Solid State Disks (SSDs), suitable for small-scale I/O-intensive workloads.- Azure
Managed Disk Performance Tier P30 P30Balanced tier for moderate throughput and latency-sensitive applications.- Azure
Managed Disk Performance Tier P40 P40Enhanced performance for growing production workloads with consistent IOPS demands.- Azure
Managed Disk Performance Tier P50 P50Optimized for enterprise-grade applications needing sustained high throughput.- Azure
Managed Disk Performance Tier P60 P60High-capacity tier for large databases and analytics workloads with elevated IOPS.- Azure
Managed Disk Performance Tier P70 P70Designed for mission-critical systems requiring ultra-low latency and high concurrency.- Azure
Managed Disk Performance Tier P80 P80Top-tier SSD for maximum IOPS and throughput, ideal for the most demanding workloads.
- "P1"
P1Entry-level SSD for minimal IOPS, ideal for light development or testing workloads.- "P2"
P2Slightly higher IOPS for small-scale applications needing consistent low latency.- "P3"
P3Balanced performance for basic production workloads with moderate throughput.- "P4"
P4Enhanced IOPS for growing apps with predictable performance needs.- "P6"
P6Mid-tier SSD for steady workloads requiring reliable throughput and latency.- "P10"
P10Popular choice for general-purpose production workloads with scalable performance.- "P15"
P15High IOPS tier for demanding apps with frequent read/write operations.- "P20"
P20Entry point for high-performance Solid State Disks (SSDs), suitable for small-scale I/O-intensive workloads.- "P30"
P30Balanced tier for moderate throughput and latency-sensitive applications.- "P40"
P40Enhanced performance for growing production workloads with consistent IOPS demands.- "P50"
P50Optimized for enterprise-grade applications needing sustained high throughput.- "P60"
P60High-capacity tier for large databases and analytics workloads with elevated IOPS.- "P70"
P70Designed for mission-critical systems requiring ultra-low latency and high concurrency.- "P80"
P80Top-tier SSD for maximum IOPS and throughput, ideal for the most demanding workloads.
- P1
P1Entry-level SSD for minimal IOPS, ideal for light development or testing workloads.- P2
P2Slightly higher IOPS for small-scale applications needing consistent low latency.- P3
P3Balanced performance for basic production workloads with moderate throughput.- P4
P4Enhanced IOPS for growing apps with predictable performance needs.- P6
P6Mid-tier SSD for steady workloads requiring reliable throughput and latency.- P10
P10Popular choice for general-purpose production workloads with scalable performance.- P15
P15High IOPS tier for demanding apps with frequent read/write operations.- P20
P20Entry point for high-performance Solid State Disks (SSDs), suitable for small-scale I/O-intensive workloads.- P30
P30Balanced tier for moderate throughput and latency-sensitive applications.- P40
P40Enhanced performance for growing production workloads with consistent IOPS demands.- P50
P50Optimized for enterprise-grade applications needing sustained high throughput.- P60
P60High-capacity tier for large databases and analytics workloads with elevated IOPS.- P70
P70Designed for mission-critical systems requiring ultra-low latency and high concurrency.- P80
P80Top-tier SSD for maximum IOPS and throughput, ideal for the most demanding workloads.
- P1
P1Entry-level SSD for minimal IOPS, ideal for light development or testing workloads.- P2
P2Slightly higher IOPS for small-scale applications needing consistent low latency.- P3
P3Balanced performance for basic production workloads with moderate throughput.- P4
P4Enhanced IOPS for growing apps with predictable performance needs.- P6
P6Mid-tier SSD for steady workloads requiring reliable throughput and latency.- P10
P10Popular choice for general-purpose production workloads with scalable performance.- P15
P15High IOPS tier for demanding apps with frequent read/write operations.- P20
P20Entry point for high-performance Solid State Disks (SSDs), suitable for small-scale I/O-intensive workloads.- P30
P30Balanced tier for moderate throughput and latency-sensitive applications.- P40
P40Enhanced performance for growing production workloads with consistent IOPS demands.- P50
P50Optimized for enterprise-grade applications needing sustained high throughput.- P60
P60High-capacity tier for large databases and analytics workloads with elevated IOPS.- P70
P70Designed for mission-critical systems requiring ultra-low latency and high concurrency.- P80
P80Top-tier SSD for maximum IOPS and throughput, ideal for the most demanding workloads.
- P1
P1Entry-level SSD for minimal IOPS, ideal for light development or testing workloads.- P2
P2Slightly higher IOPS for small-scale applications needing consistent low latency.- P3
P3Balanced performance for basic production workloads with moderate throughput.- P4
P4Enhanced IOPS for growing apps with predictable performance needs.- P6
P6Mid-tier SSD for steady workloads requiring reliable throughput and latency.- P10
P10Popular choice for general-purpose production workloads with scalable performance.- P15
P15High IOPS tier for demanding apps with frequent read/write operations.- P20
P20Entry point for high-performance Solid State Disks (SSDs), suitable for small-scale I/O-intensive workloads.- P30
P30Balanced tier for moderate throughput and latency-sensitive applications.- P40
P40Enhanced performance for growing production workloads with consistent IOPS demands.- P50
P50Optimized for enterprise-grade applications needing sustained high throughput.- P60
P60High-capacity tier for large databases and analytics workloads with elevated IOPS.- P70
P70Designed for mission-critical systems requiring ultra-low latency and high concurrency.- P80
P80Top-tier SSD for maximum IOPS and throughput, ideal for the most demanding workloads.
- "P1"
P1Entry-level SSD for minimal IOPS, ideal for light development or testing workloads.- "P2"
P2Slightly higher IOPS for small-scale applications needing consistent low latency.- "P3"
P3Balanced performance for basic production workloads with moderate throughput.- "P4"
P4Enhanced IOPS for growing apps with predictable performance needs.- "P6"
P6Mid-tier SSD for steady workloads requiring reliable throughput and latency.- "P10"
P10Popular choice for general-purpose production workloads with scalable performance.- "P15"
P15High IOPS tier for demanding apps with frequent read/write operations.- "P20"
P20Entry point for high-performance Solid State Disks (SSDs), suitable for small-scale I/O-intensive workloads.- "P30"
P30Balanced tier for moderate throughput and latency-sensitive applications.- "P40"
P40Enhanced performance for growing production workloads with consistent IOPS demands.- "P50"
P50Optimized for enterprise-grade applications needing sustained high throughput.- "P60"
P60High-capacity tier for large databases and analytics workloads with elevated IOPS.- "P70"
P70Designed for mission-critical systems requiring ultra-low latency and high concurrency.- "P80"
P80Top-tier SSD for maximum IOPS and throughput, ideal for the most demanding workloads.
Backup, BackupArgs
Backup properties of a server.- Backup
Retention intDays - Backup retention days for the server.
- Geo
Redundant string | Pulumi.Backup Azure Native. DBfor Postgre SQL. Geographically Redundant Backup - Indicates if the server is configured to create geographically redundant backups.
- Backup
Retention intDays - Backup retention days for the server.
- Geo
Redundant string | GeographicallyBackup Redundant Backup - Indicates if the server is configured to create geographically redundant backups.
- backup_
retention_ numberdays - Backup retention days for the server.
- geo_
redundant_ string | "Enabled" | "Disabled"backup - Indicates if the server is configured to create geographically redundant backups.
- backup
Retention IntegerDays - Backup retention days for the server.
- geo
Redundant String | GeographicallyBackup Redundant Backup - Indicates if the server is configured to create geographically redundant backups.
- backup
Retention numberDays - Backup retention days for the server.
- geo
Redundant string | GeographicallyBackup Redundant Backup - Indicates if the server is configured to create geographically redundant backups.
- backup_
retention_ intdays - Backup retention days for the server.
- geo_
redundant_ str | Geographicallybackup Redundant Backup - Indicates if the server is configured to create geographically redundant backups.
- backup
Retention NumberDays - Backup retention days for the server.
- geo
Redundant String | "Enabled" | "Disabled"Backup - Indicates if the server is configured to create geographically redundant backups.
BackupResponse, BackupResponseArgs
Backup properties of a server.- Earliest
Restore stringDate - Earliest restore point time (ISO8601 format) for a server.
- Backup
Retention intDays - Backup retention days for the server.
- Geo
Redundant stringBackup - Indicates if the server is configured to create geographically redundant backups.
- Earliest
Restore stringDate - Earliest restore point time (ISO8601 format) for a server.
- Backup
Retention intDays - Backup retention days for the server.
- Geo
Redundant stringBackup - Indicates if the server is configured to create geographically redundant backups.
- earliest_
restore_ stringdate - Earliest restore point time (ISO8601 format) for a server.
- backup_
retention_ numberdays - Backup retention days for the server.
- geo_
redundant_ stringbackup - Indicates if the server is configured to create geographically redundant backups.
- earliest
Restore StringDate - Earliest restore point time (ISO8601 format) for a server.
- backup
Retention IntegerDays - Backup retention days for the server.
- geo
Redundant StringBackup - Indicates if the server is configured to create geographically redundant backups.
- earliest
Restore stringDate - Earliest restore point time (ISO8601 format) for a server.
- backup
Retention numberDays - Backup retention days for the server.
- geo
Redundant stringBackup - Indicates if the server is configured to create geographically redundant backups.
- earliest_
restore_ strdate - Earliest restore point time (ISO8601 format) for a server.
- backup_
retention_ intdays - Backup retention days for the server.
- geo_
redundant_ strbackup - Indicates if the server is configured to create geographically redundant backups.
- earliest
Restore StringDate - Earliest restore point time (ISO8601 format) for a server.
- backup
Retention NumberDays - Backup retention days for the server.
- geo
Redundant StringBackup - Indicates if the server is configured to create geographically redundant backups.
Cluster, ClusterArgs
Cluster properties of a server.- Cluster
Size int - Number of nodes assigned to the elastic cluster.
- Default
Database stringName - Default database name for the elastic cluster.
- Cluster
Size int - Number of nodes assigned to the elastic cluster.
- Default
Database stringName - Default database name for the elastic cluster.
- cluster_
size number - Number of nodes assigned to the elastic cluster.
- default_
database_ stringname - Default database name for the elastic cluster.
- cluster
Size Integer - Number of nodes assigned to the elastic cluster.
- default
Database StringName - Default database name for the elastic cluster.
- cluster
Size number - Number of nodes assigned to the elastic cluster.
- default
Database stringName - Default database name for the elastic cluster.
- cluster_
size int - Number of nodes assigned to the elastic cluster.
- default_
database_ strname - Default database name for the elastic cluster.
- cluster
Size Number - Number of nodes assigned to the elastic cluster.
- default
Database StringName - Default database name for the elastic cluster.
ClusterResponse, ClusterResponseArgs
Cluster properties of a server.- Cluster
Size int - Number of nodes assigned to the elastic cluster.
- Default
Database stringName - Default database name for the elastic cluster.
- Cluster
Size int - Number of nodes assigned to the elastic cluster.
- Default
Database stringName - Default database name for the elastic cluster.
- cluster_
size number - Number of nodes assigned to the elastic cluster.
- default_
database_ stringname - Default database name for the elastic cluster.
- cluster
Size Integer - Number of nodes assigned to the elastic cluster.
- default
Database StringName - Default database name for the elastic cluster.
- cluster
Size number - Number of nodes assigned to the elastic cluster.
- default
Database stringName - Default database name for the elastic cluster.
- cluster_
size int - Number of nodes assigned to the elastic cluster.
- default_
database_ strname - Default database name for the elastic cluster.
- cluster
Size Number - Number of nodes assigned to the elastic cluster.
- default
Database StringName - Default database name for the elastic cluster.
CreateMode, CreateModeArgs
- Default
DefaultIf the operation is triggered on a non-existing server, it's equivalent to 'Create'. If the operation is triggered on an existing server, it's equivalent to 'Update'.- Create
CreateOperation creates a new server.- Update
UpdateOperation updates an existing server.- Point
In Time Restore PointInTimeRestoreOperation restores an existing backup of an existing server. This operation creates a new server, and then restores on it the backup of an existing server at a specific point in time.- Geo
Restore GeoRestoreOperation restores an existing backup of an existing server, on the paired region of the existing server. This operation creates a new server on the paired region of the existing server, and then restores on it the backup of an existing server at a specific point in time, in a different region. This operation is only supported on existing servers that were created with geographically redundant backups enabled.- Replica
ReplicaOperation creates a replica of an existing server. This operation creates a new server, restores a base backup of the existing server (referred to as primary), and configures physical replication to asynchronously stream all changes which are recorded in the transaction log of the primary.- Revive
Dropped ReviveDroppedOperation creates a new server, initialized with the backup of a server that was recently deleted.
- Create
Mode Default DefaultIf the operation is triggered on a non-existing server, it's equivalent to 'Create'. If the operation is triggered on an existing server, it's equivalent to 'Update'.- Create
Mode Create CreateOperation creates a new server.- Create
Mode Update UpdateOperation updates an existing server.- Create
Mode Point In Time Restore PointInTimeRestoreOperation restores an existing backup of an existing server. This operation creates a new server, and then restores on it the backup of an existing server at a specific point in time.- Create
Mode Geo Restore GeoRestoreOperation restores an existing backup of an existing server, on the paired region of the existing server. This operation creates a new server on the paired region of the existing server, and then restores on it the backup of an existing server at a specific point in time, in a different region. This operation is only supported on existing servers that were created with geographically redundant backups enabled.- Create
Mode Replica ReplicaOperation creates a replica of an existing server. This operation creates a new server, restores a base backup of the existing server (referred to as primary), and configures physical replication to asynchronously stream all changes which are recorded in the transaction log of the primary.- Create
Mode Revive Dropped ReviveDroppedOperation creates a new server, initialized with the backup of a server that was recently deleted.
- "Default"
DefaultIf the operation is triggered on a non-existing server, it's equivalent to 'Create'. If the operation is triggered on an existing server, it's equivalent to 'Update'.- "Create"
CreateOperation creates a new server.- "Update"
UpdateOperation updates an existing server.- "Point
In Time Restore" PointInTimeRestoreOperation restores an existing backup of an existing server. This operation creates a new server, and then restores on it the backup of an existing server at a specific point in time.- "Geo
Restore" GeoRestoreOperation restores an existing backup of an existing server, on the paired region of the existing server. This operation creates a new server on the paired region of the existing server, and then restores on it the backup of an existing server at a specific point in time, in a different region. This operation is only supported on existing servers that were created with geographically redundant backups enabled.- "Replica"
ReplicaOperation creates a replica of an existing server. This operation creates a new server, restores a base backup of the existing server (referred to as primary), and configures physical replication to asynchronously stream all changes which are recorded in the transaction log of the primary.- "Revive
Dropped" ReviveDroppedOperation creates a new server, initialized with the backup of a server that was recently deleted.
- Default
DefaultIf the operation is triggered on a non-existing server, it's equivalent to 'Create'. If the operation is triggered on an existing server, it's equivalent to 'Update'.- Create
CreateOperation creates a new server.- Update
UpdateOperation updates an existing server.- Point
In Time Restore PointInTimeRestoreOperation restores an existing backup of an existing server. This operation creates a new server, and then restores on it the backup of an existing server at a specific point in time.- Geo
Restore GeoRestoreOperation restores an existing backup of an existing server, on the paired region of the existing server. This operation creates a new server on the paired region of the existing server, and then restores on it the backup of an existing server at a specific point in time, in a different region. This operation is only supported on existing servers that were created with geographically redundant backups enabled.- Replica
ReplicaOperation creates a replica of an existing server. This operation creates a new server, restores a base backup of the existing server (referred to as primary), and configures physical replication to asynchronously stream all changes which are recorded in the transaction log of the primary.- Revive
Dropped ReviveDroppedOperation creates a new server, initialized with the backup of a server that was recently deleted.
- Default
DefaultIf the operation is triggered on a non-existing server, it's equivalent to 'Create'. If the operation is triggered on an existing server, it's equivalent to 'Update'.- Create
CreateOperation creates a new server.- Update
UpdateOperation updates an existing server.- Point
In Time Restore PointInTimeRestoreOperation restores an existing backup of an existing server. This operation creates a new server, and then restores on it the backup of an existing server at a specific point in time.- Geo
Restore GeoRestoreOperation restores an existing backup of an existing server, on the paired region of the existing server. This operation creates a new server on the paired region of the existing server, and then restores on it the backup of an existing server at a specific point in time, in a different region. This operation is only supported on existing servers that were created with geographically redundant backups enabled.- Replica
ReplicaOperation creates a replica of an existing server. This operation creates a new server, restores a base backup of the existing server (referred to as primary), and configures physical replication to asynchronously stream all changes which are recorded in the transaction log of the primary.- Revive
Dropped ReviveDroppedOperation creates a new server, initialized with the backup of a server that was recently deleted.
- DEFAULT
DefaultIf the operation is triggered on a non-existing server, it's equivalent to 'Create'. If the operation is triggered on an existing server, it's equivalent to 'Update'.- CREATE
CreateOperation creates a new server.- UPDATE
UpdateOperation updates an existing server.- POINT_IN_TIME_RESTORE
PointInTimeRestoreOperation restores an existing backup of an existing server. This operation creates a new server, and then restores on it the backup of an existing server at a specific point in time.- GEO_RESTORE
GeoRestoreOperation restores an existing backup of an existing server, on the paired region of the existing server. This operation creates a new server on the paired region of the existing server, and then restores on it the backup of an existing server at a specific point in time, in a different region. This operation is only supported on existing servers that were created with geographically redundant backups enabled.- REPLICA
ReplicaOperation creates a replica of an existing server. This operation creates a new server, restores a base backup of the existing server (referred to as primary), and configures physical replication to asynchronously stream all changes which are recorded in the transaction log of the primary.- REVIVE_DROPPED
ReviveDroppedOperation creates a new server, initialized with the backup of a server that was recently deleted.
- "Default"
DefaultIf the operation is triggered on a non-existing server, it's equivalent to 'Create'. If the operation is triggered on an existing server, it's equivalent to 'Update'.- "Create"
CreateOperation creates a new server.- "Update"
UpdateOperation updates an existing server.- "Point
In Time Restore" PointInTimeRestoreOperation restores an existing backup of an existing server. This operation creates a new server, and then restores on it the backup of an existing server at a specific point in time.- "Geo
Restore" GeoRestoreOperation restores an existing backup of an existing server, on the paired region of the existing server. This operation creates a new server on the paired region of the existing server, and then restores on it the backup of an existing server at a specific point in time, in a different region. This operation is only supported on existing servers that were created with geographically redundant backups enabled.- "Replica"
ReplicaOperation creates a replica of an existing server. This operation creates a new server, restores a base backup of the existing server (referred to as primary), and configures physical replication to asynchronously stream all changes which are recorded in the transaction log of the primary.- "Revive
Dropped" ReviveDroppedOperation creates a new server, initialized with the backup of a server that was recently deleted.
DataEncryption, DataEncryptionArgs
Data encryption properties of a server.- Geo
Backup stringKey URI - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- Geo
Backup stringUser Assigned Identity Id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- Primary
Key stringURI - URI of the key in Azure Key Vault used for data encryption of the primary storage associated to a server.
- Primary
User stringAssigned Identity Id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the primary storage associated to a server.
- Type
string | Pulumi.
Azure Native. DBfor Postgre SQL. Data Encryption Type - Data encryption type used by a server.
- Geo
Backup stringKey URI - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- Geo
Backup stringUser Assigned Identity Id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- Primary
Key stringURI - URI of the key in Azure Key Vault used for data encryption of the primary storage associated to a server.
- Primary
User stringAssigned Identity Id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the primary storage associated to a server.
- Type
string | Data
Encryption Type - Data encryption type used by a server.
- geo_
backup_ stringkey_ uri - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- geo_
backup_ stringuser_ assigned_ identity_ id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- primary_
key_ stringuri - URI of the key in Azure Key Vault used for data encryption of the primary storage associated to a server.
- primary_
user_ stringassigned_ identity_ id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the primary storage associated to a server.
- type
string | "Azure
Key Vault" | "System Assigned" - Data encryption type used by a server.
- geo
Backup StringKey URI - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- geo
Backup StringUser Assigned Identity Id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- primary
Key StringURI - URI of the key in Azure Key Vault used for data encryption of the primary storage associated to a server.
- primary
User StringAssigned Identity Id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the primary storage associated to a server.
- type
String | Data
Encryption Type - Data encryption type used by a server.
- geo
Backup stringKey URI - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- geo
Backup stringUser Assigned Identity Id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- primary
Key stringURI - URI of the key in Azure Key Vault used for data encryption of the primary storage associated to a server.
- primary
User stringAssigned Identity Id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the primary storage associated to a server.
- type
string | Data
Encryption Type - Data encryption type used by a server.
- geo_
backup_ strkey_ uri - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- geo_
backup_ struser_ assigned_ identity_ id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- primary_
key_ struri - URI of the key in Azure Key Vault used for data encryption of the primary storage associated to a server.
- primary_
user_ strassigned_ identity_ id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the primary storage associated to a server.
- type
str | Data
Encryption Type - Data encryption type used by a server.
- geo
Backup StringKey URI - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- geo
Backup StringUser Assigned Identity Id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- primary
Key StringURI - URI of the key in Azure Key Vault used for data encryption of the primary storage associated to a server.
- primary
User StringAssigned Identity Id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the primary storage associated to a server.
- type
String | "Azure
Key Vault" | "System Assigned" - Data encryption type used by a server.
DataEncryptionResponse, DataEncryptionResponseArgs
Data encryption properties of a server.- Geo
Backup stringEncryption Key Status - Status of key used by a server configured with data encryption based on customer managed key, to encrypt the geographically redundant storage associated to the server when it is configured to support geographically redundant backups.
- Primary
Encryption stringKey Status - Status of key used by a server configured with data encryption based on customer managed key, to encrypt the primary storage associated to the server.
- Geo
Backup stringKey URI - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- Geo
Backup stringUser Assigned Identity Id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- Primary
Key stringURI - URI of the key in Azure Key Vault used for data encryption of the primary storage associated to a server.
- Primary
User stringAssigned Identity Id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the primary storage associated to a server.
- Type string
- Data encryption type used by a server.
- Geo
Backup stringEncryption Key Status - Status of key used by a server configured with data encryption based on customer managed key, to encrypt the geographically redundant storage associated to the server when it is configured to support geographically redundant backups.
- Primary
Encryption stringKey Status - Status of key used by a server configured with data encryption based on customer managed key, to encrypt the primary storage associated to the server.
- Geo
Backup stringKey URI - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- Geo
Backup stringUser Assigned Identity Id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- Primary
Key stringURI - URI of the key in Azure Key Vault used for data encryption of the primary storage associated to a server.
- Primary
User stringAssigned Identity Id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the primary storage associated to a server.
- Type string
- Data encryption type used by a server.
- geo_
backup_ stringencryption_ key_ status - Status of key used by a server configured with data encryption based on customer managed key, to encrypt the geographically redundant storage associated to the server when it is configured to support geographically redundant backups.
- primary_
encryption_ stringkey_ status - Status of key used by a server configured with data encryption based on customer managed key, to encrypt the primary storage associated to the server.
- geo_
backup_ stringkey_ uri - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- geo_
backup_ stringuser_ assigned_ identity_ id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- primary_
key_ stringuri - URI of the key in Azure Key Vault used for data encryption of the primary storage associated to a server.
- primary_
user_ stringassigned_ identity_ id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the primary storage associated to a server.
- type string
- Data encryption type used by a server.
- geo
Backup StringEncryption Key Status - Status of key used by a server configured with data encryption based on customer managed key, to encrypt the geographically redundant storage associated to the server when it is configured to support geographically redundant backups.
- primary
Encryption StringKey Status - Status of key used by a server configured with data encryption based on customer managed key, to encrypt the primary storage associated to the server.
- geo
Backup StringKey URI - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- geo
Backup StringUser Assigned Identity Id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- primary
Key StringURI - URI of the key in Azure Key Vault used for data encryption of the primary storage associated to a server.
- primary
User StringAssigned Identity Id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the primary storage associated to a server.
- type String
- Data encryption type used by a server.
- geo
Backup stringEncryption Key Status - Status of key used by a server configured with data encryption based on customer managed key, to encrypt the geographically redundant storage associated to the server when it is configured to support geographically redundant backups.
- primary
Encryption stringKey Status - Status of key used by a server configured with data encryption based on customer managed key, to encrypt the primary storage associated to the server.
- geo
Backup stringKey URI - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- geo
Backup stringUser Assigned Identity Id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- primary
Key stringURI - URI of the key in Azure Key Vault used for data encryption of the primary storage associated to a server.
- primary
User stringAssigned Identity Id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the primary storage associated to a server.
- type string
- Data encryption type used by a server.
- geo_
backup_ strencryption_ key_ status - Status of key used by a server configured with data encryption based on customer managed key, to encrypt the geographically redundant storage associated to the server when it is configured to support geographically redundant backups.
- primary_
encryption_ strkey_ status - Status of key used by a server configured with data encryption based on customer managed key, to encrypt the primary storage associated to the server.
- geo_
backup_ strkey_ uri - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- geo_
backup_ struser_ assigned_ identity_ id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- primary_
key_ struri - URI of the key in Azure Key Vault used for data encryption of the primary storage associated to a server.
- primary_
user_ strassigned_ identity_ id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the primary storage associated to a server.
- type str
- Data encryption type used by a server.
- geo
Backup StringEncryption Key Status - Status of key used by a server configured with data encryption based on customer managed key, to encrypt the geographically redundant storage associated to the server when it is configured to support geographically redundant backups.
- primary
Encryption StringKey Status - Status of key used by a server configured with data encryption based on customer managed key, to encrypt the primary storage associated to the server.
- geo
Backup StringKey URI - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- geo
Backup StringUser Assigned Identity Id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
- primary
Key StringURI - URI of the key in Azure Key Vault used for data encryption of the primary storage associated to a server.
- primary
User StringAssigned Identity Id - Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the primary storage associated to a server.
- type String
- Data encryption type used by a server.
DataEncryptionType, DataEncryptionTypeArgs
- Azure
Key Vault AzureKeyVault- System
Assigned SystemAssigned
- Data
Encryption Type Azure Key Vault AzureKeyVault- Data
Encryption Type System Assigned SystemAssigned
- "Azure
Key Vault" AzureKeyVault- "System
Assigned" SystemAssigned
- Azure
Key Vault AzureKeyVault- System
Assigned SystemAssigned
- Azure
Key Vault AzureKeyVault- System
Assigned SystemAssigned
- AZURE_KEY_VAULT
AzureKeyVault- SYSTEM_ASSIGNED
SystemAssigned
- "Azure
Key Vault" AzureKeyVault- "System
Assigned" SystemAssigned
GeographicallyRedundantBackup, GeographicallyRedundantBackupArgs
- Enabled
EnabledServer is configured to create geographically redundant backups.- Disabled
DisabledServer is not configured to create geographically redundant backups.
- Geographically
Redundant Backup Enabled EnabledServer is configured to create geographically redundant backups.- Geographically
Redundant Backup Disabled DisabledServer is not configured to create geographically redundant backups.
- "Enabled"
EnabledServer is configured to create geographically redundant backups.- "Disabled"
DisabledServer is not configured to create geographically redundant backups.
- Enabled
EnabledServer is configured to create geographically redundant backups.- Disabled
DisabledServer is not configured to create geographically redundant backups.
- Enabled
EnabledServer is configured to create geographically redundant backups.- Disabled
DisabledServer is not configured to create geographically redundant backups.
- ENABLED
EnabledServer is configured to create geographically redundant backups.- DISABLED
DisabledServer is not configured to create geographically redundant backups.
- "Enabled"
EnabledServer is configured to create geographically redundant backups.- "Disabled"
DisabledServer is not configured to create geographically redundant backups.
HighAvailability, HighAvailabilityArgs
High availability properties of a server.- Mode
string | Pulumi.
Azure Native. DBfor Postgre SQL. Postgre Sql Flexible Server High Availability Mode - High availability mode for a server.
- Standby
Availability stringZone - Availability zone associated to the standby server created when high availability is set to SameZone or ZoneRedundant.
- Mode
string | Postgre
Sql Flexible Server High Availability Mode - High availability mode for a server.
- Standby
Availability stringZone - Availability zone associated to the standby server created when high availability is set to SameZone or ZoneRedundant.
- mode
string | "Disabled" | "Zone
Redundant" | "Same Zone" - High availability mode for a server.
- standby_
availability_ stringzone - Availability zone associated to the standby server created when high availability is set to SameZone or ZoneRedundant.
- mode
String | Postgre
Sql Flexible Server High Availability Mode - High availability mode for a server.
- standby
Availability StringZone - Availability zone associated to the standby server created when high availability is set to SameZone or ZoneRedundant.
- mode
string | Postgre
Sql Flexible Server High Availability Mode - High availability mode for a server.
- standby
Availability stringZone - Availability zone associated to the standby server created when high availability is set to SameZone or ZoneRedundant.
- mode
str | Postgre
Sql Flexible Server High Availability Mode - High availability mode for a server.
- standby_
availability_ strzone - Availability zone associated to the standby server created when high availability is set to SameZone or ZoneRedundant.
- mode
String | "Disabled" | "Zone
Redundant" | "Same Zone" - High availability mode for a server.
- standby
Availability StringZone - Availability zone associated to the standby server created when high availability is set to SameZone or ZoneRedundant.
HighAvailabilityResponse, HighAvailabilityResponseArgs
High availability properties of a server.- State string
- Possible states of the standby server created when high availability is set to SameZone or ZoneRedundant.
- Mode string
- High availability mode for a server.
- Standby
Availability stringZone - Availability zone associated to the standby server created when high availability is set to SameZone or ZoneRedundant.
- State string
- Possible states of the standby server created when high availability is set to SameZone or ZoneRedundant.
- Mode string
- High availability mode for a server.
- Standby
Availability stringZone - Availability zone associated to the standby server created when high availability is set to SameZone or ZoneRedundant.
- state string
- Possible states of the standby server created when high availability is set to SameZone or ZoneRedundant.
- mode string
- High availability mode for a server.
- standby_
availability_ stringzone - Availability zone associated to the standby server created when high availability is set to SameZone or ZoneRedundant.
- state String
- Possible states of the standby server created when high availability is set to SameZone or ZoneRedundant.
- mode String
- High availability mode for a server.
- standby
Availability StringZone - Availability zone associated to the standby server created when high availability is set to SameZone or ZoneRedundant.
- state string
- Possible states of the standby server created when high availability is set to SameZone or ZoneRedundant.
- mode string
- High availability mode for a server.
- standby
Availability stringZone - Availability zone associated to the standby server created when high availability is set to SameZone or ZoneRedundant.
- state str
- Possible states of the standby server created when high availability is set to SameZone or ZoneRedundant.
- mode str
- High availability mode for a server.
- standby_
availability_ strzone - Availability zone associated to the standby server created when high availability is set to SameZone or ZoneRedundant.
- state String
- Possible states of the standby server created when high availability is set to SameZone or ZoneRedundant.
- mode String
- High availability mode for a server.
- standby
Availability StringZone - Availability zone associated to the standby server created when high availability is set to SameZone or ZoneRedundant.
IdentityType, IdentityTypeArgs
- User
Assigned UserAssigned- System
Assigned SystemAssigned
- Identity
Type User Assigned UserAssigned- Identity
Type System Assigned SystemAssigned
- "User
Assigned" UserAssigned- "System
Assigned" SystemAssigned
- User
Assigned UserAssigned- System
Assigned SystemAssigned
- User
Assigned UserAssigned- System
Assigned SystemAssigned
- USER_ASSIGNED
UserAssigned- SYSTEM_ASSIGNED
SystemAssigned
- "User
Assigned" UserAssigned- "System
Assigned" SystemAssigned
MaintenanceWindow, MaintenanceWindowArgs
Maintenance window properties of a server.- Custom
Window string - Indicates whether custom window is enabled or disabled.
- Day
Of intWeek - Day of the week to be used for maintenance window.
- Start
Hour int - Start hour to be used for maintenance window.
- Start
Minute int - Start minute to be used for maintenance window.
- Custom
Window string - Indicates whether custom window is enabled or disabled.
- Day
Of intWeek - Day of the week to be used for maintenance window.
- Start
Hour int - Start hour to be used for maintenance window.
- Start
Minute int - Start minute to be used for maintenance window.
- custom_
window string - Indicates whether custom window is enabled or disabled.
- day_
of_ numberweek - Day of the week to be used for maintenance window.
- start_
hour number - Start hour to be used for maintenance window.
- start_
minute number - Start minute to be used for maintenance window.
- custom
Window String - Indicates whether custom window is enabled or disabled.
- day
Of IntegerWeek - Day of the week to be used for maintenance window.
- start
Hour Integer - Start hour to be used for maintenance window.
- start
Minute Integer - Start minute to be used for maintenance window.
- custom
Window string - Indicates whether custom window is enabled or disabled.
- day
Of numberWeek - Day of the week to be used for maintenance window.
- start
Hour number - Start hour to be used for maintenance window.
- start
Minute number - Start minute to be used for maintenance window.
- custom_
window str - Indicates whether custom window is enabled or disabled.
- day_
of_ intweek - Day of the week to be used for maintenance window.
- start_
hour int - Start hour to be used for maintenance window.
- start_
minute int - Start minute to be used for maintenance window.
- custom
Window String - Indicates whether custom window is enabled or disabled.
- day
Of NumberWeek - Day of the week to be used for maintenance window.
- start
Hour Number - Start hour to be used for maintenance window.
- start
Minute Number - Start minute to be used for maintenance window.
MaintenanceWindowResponse, MaintenanceWindowResponseArgs
Maintenance window properties of a server.- Custom
Window string - Indicates whether custom window is enabled or disabled.
- Day
Of intWeek - Day of the week to be used for maintenance window.
- Start
Hour int - Start hour to be used for maintenance window.
- Start
Minute int - Start minute to be used for maintenance window.
- Custom
Window string - Indicates whether custom window is enabled or disabled.
- Day
Of intWeek - Day of the week to be used for maintenance window.
- Start
Hour int - Start hour to be used for maintenance window.
- Start
Minute int - Start minute to be used for maintenance window.
- custom_
window string - Indicates whether custom window is enabled or disabled.
- day_
of_ numberweek - Day of the week to be used for maintenance window.
- start_
hour number - Start hour to be used for maintenance window.
- start_
minute number - Start minute to be used for maintenance window.
- custom
Window String - Indicates whether custom window is enabled or disabled.
- day
Of IntegerWeek - Day of the week to be used for maintenance window.
- start
Hour Integer - Start hour to be used for maintenance window.
- start
Minute Integer - Start minute to be used for maintenance window.
- custom
Window string - Indicates whether custom window is enabled or disabled.
- day
Of numberWeek - Day of the week to be used for maintenance window.
- start
Hour number - Start hour to be used for maintenance window.
- start
Minute number - Start minute to be used for maintenance window.
- custom_
window str - Indicates whether custom window is enabled or disabled.
- day_
of_ intweek - Day of the week to be used for maintenance window.
- start_
hour int - Start hour to be used for maintenance window.
- start_
minute int - Start minute to be used for maintenance window.
- custom
Window String - Indicates whether custom window is enabled or disabled.
- day
Of NumberWeek - Day of the week to be used for maintenance window.
- start
Hour Number - Start hour to be used for maintenance window.
- start
Minute Number - Start minute to be used for maintenance window.
MicrosoftEntraAuth, MicrosoftEntraAuthArgs
- Enabled
EnabledServer supports Microsoft Entra authentication.- Disabled
DisabledServer does not support Microsoft Entra authentication.
- Microsoft
Entra Auth Enabled EnabledServer supports Microsoft Entra authentication.- Microsoft
Entra Auth Disabled DisabledServer does not support Microsoft Entra authentication.
- "Enabled"
EnabledServer supports Microsoft Entra authentication.- "Disabled"
DisabledServer does not support Microsoft Entra authentication.
- Enabled
EnabledServer supports Microsoft Entra authentication.- Disabled
DisabledServer does not support Microsoft Entra authentication.
- Enabled
EnabledServer supports Microsoft Entra authentication.- Disabled
DisabledServer does not support Microsoft Entra authentication.
- ENABLED
EnabledServer supports Microsoft Entra authentication.- DISABLED
DisabledServer does not support Microsoft Entra authentication.
- "Enabled"
EnabledServer supports Microsoft Entra authentication.- "Disabled"
DisabledServer does not support Microsoft Entra authentication.
Network, NetworkArgs
Network properties of a server.- Delegated
Subnet stringResource Id - Resource identifier of the delegated subnet. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- Private
Dns stringZone Arm Resource Id - Identifier of the private DNS zone. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- Public
Network string | Pulumi.Access Azure Native. DBfor Postgre SQL. Server Public Network Access State - Indicates if public network access is enabled or not. This is only supported for servers that are not integrated into a virtual network which is owned and provided by customer when server is deployed.
- Delegated
Subnet stringResource Id - Resource identifier of the delegated subnet. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- Private
Dns stringZone Arm Resource Id - Identifier of the private DNS zone. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- Public
Network string | ServerAccess Public Network Access State - Indicates if public network access is enabled or not. This is only supported for servers that are not integrated into a virtual network which is owned and provided by customer when server is deployed.
- delegated_
subnet_ stringresource_ id - Resource identifier of the delegated subnet. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- private_
dns_ stringzone_ arm_ resource_ id - Identifier of the private DNS zone. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- public_
network_ string | "Enabled" | "Disabled"access - Indicates if public network access is enabled or not. This is only supported for servers that are not integrated into a virtual network which is owned and provided by customer when server is deployed.
- delegated
Subnet StringResource Id - Resource identifier of the delegated subnet. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- private
Dns StringZone Arm Resource Id - Identifier of the private DNS zone. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- public
Network String | ServerAccess Public Network Access State - Indicates if public network access is enabled or not. This is only supported for servers that are not integrated into a virtual network which is owned and provided by customer when server is deployed.
- delegated
Subnet stringResource Id - Resource identifier of the delegated subnet. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- private
Dns stringZone Arm Resource Id - Identifier of the private DNS zone. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- public
Network string | ServerAccess Public Network Access State - Indicates if public network access is enabled or not. This is only supported for servers that are not integrated into a virtual network which is owned and provided by customer when server is deployed.
- delegated_
subnet_ strresource_ id - Resource identifier of the delegated subnet. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- private_
dns_ strzone_ arm_ resource_ id - Identifier of the private DNS zone. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- public_
network_ str | Serveraccess Public Network Access State - Indicates if public network access is enabled or not. This is only supported for servers that are not integrated into a virtual network which is owned and provided by customer when server is deployed.
- delegated
Subnet StringResource Id - Resource identifier of the delegated subnet. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- private
Dns StringZone Arm Resource Id - Identifier of the private DNS zone. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- public
Network String | "Enabled" | "Disabled"Access - Indicates if public network access is enabled or not. This is only supported for servers that are not integrated into a virtual network which is owned and provided by customer when server is deployed.
NetworkResponse, NetworkResponseArgs
Network properties of a server.- Delegated
Subnet stringResource Id - Resource identifier of the delegated subnet. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- Private
Dns stringZone Arm Resource Id - Identifier of the private DNS zone. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- Public
Network stringAccess - Indicates if public network access is enabled or not. This is only supported for servers that are not integrated into a virtual network which is owned and provided by customer when server is deployed.
- Delegated
Subnet stringResource Id - Resource identifier of the delegated subnet. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- Private
Dns stringZone Arm Resource Id - Identifier of the private DNS zone. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- Public
Network stringAccess - Indicates if public network access is enabled or not. This is only supported for servers that are not integrated into a virtual network which is owned and provided by customer when server is deployed.
- delegated_
subnet_ stringresource_ id - Resource identifier of the delegated subnet. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- private_
dns_ stringzone_ arm_ resource_ id - Identifier of the private DNS zone. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- public_
network_ stringaccess - Indicates if public network access is enabled or not. This is only supported for servers that are not integrated into a virtual network which is owned and provided by customer when server is deployed.
- delegated
Subnet StringResource Id - Resource identifier of the delegated subnet. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- private
Dns StringZone Arm Resource Id - Identifier of the private DNS zone. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- public
Network StringAccess - Indicates if public network access is enabled or not. This is only supported for servers that are not integrated into a virtual network which is owned and provided by customer when server is deployed.
- delegated
Subnet stringResource Id - Resource identifier of the delegated subnet. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- private
Dns stringZone Arm Resource Id - Identifier of the private DNS zone. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- public
Network stringAccess - Indicates if public network access is enabled or not. This is only supported for servers that are not integrated into a virtual network which is owned and provided by customer when server is deployed.
- delegated_
subnet_ strresource_ id - Resource identifier of the delegated subnet. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- private_
dns_ strzone_ arm_ resource_ id - Identifier of the private DNS zone. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- public_
network_ straccess - Indicates if public network access is enabled or not. This is only supported for servers that are not integrated into a virtual network which is owned and provided by customer when server is deployed.
- delegated
Subnet StringResource Id - Resource identifier of the delegated subnet. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- private
Dns StringZone Arm Resource Id - Identifier of the private DNS zone. Required during creation of a new server, in case you want the server to be integrated into your own virtual network. For an update operation, you only have to provide this property if you want to change the value assigned for the private DNS zone.
- public
Network StringAccess - Indicates if public network access is enabled or not. This is only supported for servers that are not integrated into a virtual network which is owned and provided by customer when server is deployed.
PasswordBasedAuth, PasswordBasedAuthArgs
- Enabled
EnabledServer supports password based authentication.- Disabled
DisabledServer does not support password based authentication.
- Password
Based Auth Enabled EnabledServer supports password based authentication.- Password
Based Auth Disabled DisabledServer does not support password based authentication.
- "Enabled"
EnabledServer supports password based authentication.- "Disabled"
DisabledServer does not support password based authentication.
- Enabled
EnabledServer supports password based authentication.- Disabled
DisabledServer does not support password based authentication.
- Enabled
EnabledServer supports password based authentication.- Disabled
DisabledServer does not support password based authentication.
- ENABLED
EnabledServer supports password based authentication.- DISABLED
DisabledServer does not support password based authentication.
- "Enabled"
EnabledServer supports password based authentication.- "Disabled"
DisabledServer does not support password based authentication.
PostgreSqlFlexibleServerHighAvailabilityMode, PostgreSqlFlexibleServerHighAvailabilityModeArgs
- Disabled
DisabledHigh availability is disabled for the server.- Zone
Redundant ZoneRedundantHigh availability is enabled for the server, with standby server in a different availability zone than that of the primary.- Same
Zone SameZoneHigh availability is enabled for the server, with standby server in the same availability zone as the primary.
- Postgre
Sql Flexible Server High Availability Mode Disabled DisabledHigh availability is disabled for the server.- Postgre
Sql Flexible Server High Availability Mode Zone Redundant ZoneRedundantHigh availability is enabled for the server, with standby server in a different availability zone than that of the primary.- Postgre
Sql Flexible Server High Availability Mode Same Zone SameZoneHigh availability is enabled for the server, with standby server in the same availability zone as the primary.
- "Disabled"
DisabledHigh availability is disabled for the server.- "Zone
Redundant" ZoneRedundantHigh availability is enabled for the server, with standby server in a different availability zone than that of the primary.- "Same
Zone" SameZoneHigh availability is enabled for the server, with standby server in the same availability zone as the primary.
- Disabled
DisabledHigh availability is disabled for the server.- Zone
Redundant ZoneRedundantHigh availability is enabled for the server, with standby server in a different availability zone than that of the primary.- Same
Zone SameZoneHigh availability is enabled for the server, with standby server in the same availability zone as the primary.
- Disabled
DisabledHigh availability is disabled for the server.- Zone
Redundant ZoneRedundantHigh availability is enabled for the server, with standby server in a different availability zone than that of the primary.- Same
Zone SameZoneHigh availability is enabled for the server, with standby server in the same availability zone as the primary.
- DISABLED
DisabledHigh availability is disabled for the server.- ZONE_REDUNDANT
ZoneRedundantHigh availability is enabled for the server, with standby server in a different availability zone than that of the primary.- SAME_ZONE
SameZoneHigh availability is enabled for the server, with standby server in the same availability zone as the primary.
- "Disabled"
DisabledHigh availability is disabled for the server.- "Zone
Redundant" ZoneRedundantHigh availability is enabled for the server, with standby server in a different availability zone than that of the primary.- "Same
Zone" SameZoneHigh availability is enabled for the server, with standby server in the same availability zone as the primary.
PostgresMajorVersion, PostgresMajorVersionArgs
- Postgres
Major Version_18 18PostgreSQL 18.- Postgres
Major Version_17 17PostgreSQL 17.- Postgres
Major Version_16 16PostgreSQL 16.- Postgres
Major Version_15 15PostgreSQL 15.- Postgres
Major Version_14 14PostgreSQL 14.- Postgres
Major Version_13 13PostgreSQL 13.- Postgres
Major Version_12 12PostgreSQL 12.- Postgres
Major Version_11 11PostgreSQL 11.
- Postgres
Major Version_18 18PostgreSQL 18.- Postgres
Major Version_17 17PostgreSQL 17.- Postgres
Major Version_16 16PostgreSQL 16.- Postgres
Major Version_15 15PostgreSQL 15.- Postgres
Major Version_14 14PostgreSQL 14.- Postgres
Major Version_13 13PostgreSQL 13.- Postgres
Major Version_12 12PostgreSQL 12.- Postgres
Major Version_11 11PostgreSQL 11.
- "18"
18PostgreSQL 18.- "17"
17PostgreSQL 17.- "16"
16PostgreSQL 16.- "15"
15PostgreSQL 15.- "14"
14PostgreSQL 14.- "13"
13PostgreSQL 13.- "12"
12PostgreSQL 12.- "11"
11PostgreSQL 11.
- _18
18PostgreSQL 18.- _17
17PostgreSQL 17.- _16
16PostgreSQL 16.- _15
15PostgreSQL 15.- _14
14PostgreSQL 14.- _13
13PostgreSQL 13.- _12
12PostgreSQL 12.- _11
11PostgreSQL 11.
- Postgres
Major Version_18 18PostgreSQL 18.- Postgres
Major Version_17 17PostgreSQL 17.- Postgres
Major Version_16 16PostgreSQL 16.- Postgres
Major Version_15 15PostgreSQL 15.- Postgres
Major Version_14 14PostgreSQL 14.- Postgres
Major Version_13 13PostgreSQL 13.- Postgres
Major Version_12 12PostgreSQL 12.- Postgres
Major Version_11 11PostgreSQL 11.
- POSTGRES_MAJOR_VERSION_18
18PostgreSQL 18.- POSTGRES_MAJOR_VERSION_17
17PostgreSQL 17.- POSTGRES_MAJOR_VERSION_16
16PostgreSQL 16.- POSTGRES_MAJOR_VERSION_15
15PostgreSQL 15.- POSTGRES_MAJOR_VERSION_14
14PostgreSQL 14.- POSTGRES_MAJOR_VERSION_13
13PostgreSQL 13.- POSTGRES_MAJOR_VERSION_12
12PostgreSQL 12.- POSTGRES_MAJOR_VERSION_11
11PostgreSQL 11.
- "18"
18PostgreSQL 18.- "17"
17PostgreSQL 17.- "16"
16PostgreSQL 16.- "15"
15PostgreSQL 15.- "14"
14PostgreSQL 14.- "13"
13PostgreSQL 13.- "12"
12PostgreSQL 12.- "11"
11PostgreSQL 11.
PrivateEndpointConnectionResponse, PrivateEndpointConnectionResponseArgs
The private endpoint connection resource.- Group
Ids List<string> - The group ids for the private endpoint resource.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- Private
Link Pulumi.Service Connection State Azure Native. DBfor Postgre SQL. Inputs. Private Link Service Connection State Response - A collection of information about the state of the connection between service consumer and provider.
- Provisioning
State string - The provisioning state of the private endpoint connection resource.
- System
Data Pulumi.Azure Native. DBfor Postgre SQL. Inputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Private
Endpoint Pulumi.Azure Native. DBfor Postgre SQL. Inputs. Private Endpoint Response - The private endpoint resource.
- Group
Ids []string - The group ids for the private endpoint resource.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- Private
Link PrivateService Connection State Link Service Connection State Response - A collection of information about the state of the connection between service consumer and provider.
- Provisioning
State string - The provisioning state of the private endpoint connection resource.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Private
Endpoint PrivateEndpoint Response - The private endpoint resource.
- group_
ids list(string) - The group ids for the private endpoint resource.
- id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name string
- The name of the resource
- private_
link_ objectservice_ connection_ state - A collection of information about the state of the connection between service consumer and provider.
- provisioning_
state string - The provisioning state of the private endpoint connection resource.
- system_
data object - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- private_
endpoint object - The private endpoint resource.
- group
Ids List<String> - The group ids for the private endpoint resource.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- private
Link PrivateService Connection State Link Service Connection State Response - A collection of information about the state of the connection between service consumer and provider.
- provisioning
State String - The provisioning state of the private endpoint connection resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- private
Endpoint PrivateEndpoint Response - The private endpoint resource.
- group
Ids string[] - The group ids for the private endpoint resource.
- id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name string
- The name of the resource
- private
Link PrivateService Connection State Link Service Connection State Response - A collection of information about the state of the connection between service consumer and provider.
- provisioning
State string - The provisioning state of the private endpoint connection resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- private
Endpoint PrivateEndpoint Response - The private endpoint resource.
- group_
ids Sequence[str] - The group ids for the private endpoint resource.
- id str
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name str
- The name of the resource
- private_
link_ Privateservice_ connection_ state Link Service Connection State Response - A collection of information about the state of the connection between service consumer and provider.
- provisioning_
state str - The provisioning state of the private endpoint connection resource.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- private_
endpoint PrivateEndpoint Response - The private endpoint resource.
- group
Ids List<String> - The group ids for the private endpoint resource.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- private
Link Property MapService Connection State - A collection of information about the state of the connection between service consumer and provider.
- provisioning
State String - The provisioning state of the private endpoint connection resource.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- private
Endpoint Property Map - The private endpoint resource.
PrivateEndpointResponse, PrivateEndpointResponseArgs
The private endpoint resource.- Id string
- The ARM identifier for private endpoint.
- Id string
- The ARM identifier for private endpoint.
- id string
- The ARM identifier for private endpoint.
- id String
- The ARM identifier for private endpoint.
- id string
- The ARM identifier for private endpoint.
- id str
- The ARM identifier for private endpoint.
- id String
- The ARM identifier for private endpoint.
PrivateLinkServiceConnectionStateResponse, PrivateLinkServiceConnectionStateResponseArgs
A collection of information about the state of the connection between service consumer and provider.- Actions
Required string - A message indicating if changes on the service provider require any updates on the consumer.
- Description string
- The reason for approval/rejection of the connection.
- Status string
- Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
- Actions
Required string - A message indicating if changes on the service provider require any updates on the consumer.
- Description string
- The reason for approval/rejection of the connection.
- Status string
- Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
- actions_
required string - A message indicating if changes on the service provider require any updates on the consumer.
- description string
- The reason for approval/rejection of the connection.
- status string
- Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
- actions
Required String - A message indicating if changes on the service provider require any updates on the consumer.
- description String
- The reason for approval/rejection of the connection.
- status String
- Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
- actions
Required string - A message indicating if changes on the service provider require any updates on the consumer.
- description string
- The reason for approval/rejection of the connection.
- status string
- Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
- actions_
required str - A message indicating if changes on the service provider require any updates on the consumer.
- description str
- The reason for approval/rejection of the connection.
- status str
- Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
- actions
Required String - A message indicating if changes on the service provider require any updates on the consumer.
- description String
- The reason for approval/rejection of the connection.
- status String
- Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
ReadReplicaPromoteMode, ReadReplicaPromoteModeArgs
- Standalone
StandaloneRead replica will become an independent server, and a completely independent entity from the replication set.- Switchover
SwitchoverRead replica will swap roles with primary server.
- Read
Replica Promote Mode Standalone StandaloneRead replica will become an independent server, and a completely independent entity from the replication set.- Read
Replica Promote Mode Switchover SwitchoverRead replica will swap roles with primary server.
- "Standalone"
StandaloneRead replica will become an independent server, and a completely independent entity from the replication set.- "Switchover"
SwitchoverRead replica will swap roles with primary server.
- Standalone
StandaloneRead replica will become an independent server, and a completely independent entity from the replication set.- Switchover
SwitchoverRead replica will swap roles with primary server.
- Standalone
StandaloneRead replica will become an independent server, and a completely independent entity from the replication set.- Switchover
SwitchoverRead replica will swap roles with primary server.
- STANDALONE
StandaloneRead replica will become an independent server, and a completely independent entity from the replication set.- SWITCHOVER
SwitchoverRead replica will swap roles with primary server.
- "Standalone"
StandaloneRead replica will become an independent server, and a completely independent entity from the replication set.- "Switchover"
SwitchoverRead replica will swap roles with primary server.
ReadReplicaPromoteOption, ReadReplicaPromoteOptionArgs
- Planned
PlannedWait for data in the read replica to be fully synchronized with its source server before it initiates the operation.- Forced
ForcedInitiate the operation immediately, without waiting for data in the read replica to be synchronized with its source server.
- Read
Replica Promote Option Planned PlannedWait for data in the read replica to be fully synchronized with its source server before it initiates the operation.- Read
Replica Promote Option Forced ForcedInitiate the operation immediately, without waiting for data in the read replica to be synchronized with its source server.
- "Planned"
PlannedWait for data in the read replica to be fully synchronized with its source server before it initiates the operation.- "Forced"
ForcedInitiate the operation immediately, without waiting for data in the read replica to be synchronized with its source server.
- Planned
PlannedWait for data in the read replica to be fully synchronized with its source server before it initiates the operation.- Forced
ForcedInitiate the operation immediately, without waiting for data in the read replica to be synchronized with its source server.
- Planned
PlannedWait for data in the read replica to be fully synchronized with its source server before it initiates the operation.- Forced
ForcedInitiate the operation immediately, without waiting for data in the read replica to be synchronized with its source server.
- PLANNED
PlannedWait for data in the read replica to be fully synchronized with its source server before it initiates the operation.- FORCED
ForcedInitiate the operation immediately, without waiting for data in the read replica to be synchronized with its source server.
- "Planned"
PlannedWait for data in the read replica to be fully synchronized with its source server before it initiates the operation.- "Forced"
ForcedInitiate the operation immediately, without waiting for data in the read replica to be synchronized with its source server.
Replica, ReplicaArgs
Replica properties of a server.- Promote
Mode string | Pulumi.Azure Native. DBfor Postgre SQL. Read Replica Promote Mode - Type of operation to apply on the read replica. This property is write only. Standalone means that the read replica will be promoted to a standalone server, and will become a completely independent entity from the replication set. Switchover means that the read replica will roles with the primary server.
- Promote
Option string | Pulumi.Azure Native. DBfor Postgre SQL. Read Replica Promote Option - Data synchronization option to use when processing the operation specified in the promoteMode property. This property is write only.
- Role
string | Pulumi.
Azure Native. DBfor Postgre SQL. Replication Role - Role of the server in a replication set.
- Promote
Mode string | ReadReplica Promote Mode - Type of operation to apply on the read replica. This property is write only. Standalone means that the read replica will be promoted to a standalone server, and will become a completely independent entity from the replication set. Switchover means that the read replica will roles with the primary server.
- Promote
Option string | ReadReplica Promote Option - Data synchronization option to use when processing the operation specified in the promoteMode property. This property is write only.
- Role
string | Replication
Role - Role of the server in a replication set.
- promote_
mode string | "Standalone" | "Switchover" - Type of operation to apply on the read replica. This property is write only. Standalone means that the read replica will be promoted to a standalone server, and will become a completely independent entity from the replication set. Switchover means that the read replica will roles with the primary server.
- promote_
option string | "Planned" | "Forced" - Data synchronization option to use when processing the operation specified in the promoteMode property. This property is write only.
- role
string | "None" | "Primary" | "Async
Replica" | "Geo Async Replica" - Role of the server in a replication set.
- promote
Mode String | ReadReplica Promote Mode - Type of operation to apply on the read replica. This property is write only. Standalone means that the read replica will be promoted to a standalone server, and will become a completely independent entity from the replication set. Switchover means that the read replica will roles with the primary server.
- promote
Option String | ReadReplica Promote Option - Data synchronization option to use when processing the operation specified in the promoteMode property. This property is write only.
- role
String | Replication
Role - Role of the server in a replication set.
- promote
Mode string | ReadReplica Promote Mode - Type of operation to apply on the read replica. This property is write only. Standalone means that the read replica will be promoted to a standalone server, and will become a completely independent entity from the replication set. Switchover means that the read replica will roles with the primary server.
- promote
Option string | ReadReplica Promote Option - Data synchronization option to use when processing the operation specified in the promoteMode property. This property is write only.
- role
string | Replication
Role - Role of the server in a replication set.
- promote_
mode str | ReadReplica Promote Mode - Type of operation to apply on the read replica. This property is write only. Standalone means that the read replica will be promoted to a standalone server, and will become a completely independent entity from the replication set. Switchover means that the read replica will roles with the primary server.
- promote_
option str | ReadReplica Promote Option - Data synchronization option to use when processing the operation specified in the promoteMode property. This property is write only.
- role
str | Replication
Role - Role of the server in a replication set.
- promote
Mode String | "Standalone" | "Switchover" - Type of operation to apply on the read replica. This property is write only. Standalone means that the read replica will be promoted to a standalone server, and will become a completely independent entity from the replication set. Switchover means that the read replica will roles with the primary server.
- promote
Option String | "Planned" | "Forced" - Data synchronization option to use when processing the operation specified in the promoteMode property. This property is write only.
- role
String | "None" | "Primary" | "Async
Replica" | "Geo Async Replica" - Role of the server in a replication set.
ReplicaResponse, ReplicaResponseArgs
Replica properties of a server.- Capacity int
- Maximum number of read replicas allowed for a server.
- Replication
State string - Indicates the replication state of a read replica. This property is returned only when the target server is a read replica. Possible values are Active, Broken, Catchup, Provisioning, Reconfiguring, and Updating
- Role string
- Role of the server in a replication set.
- Capacity int
- Maximum number of read replicas allowed for a server.
- Replication
State string - Indicates the replication state of a read replica. This property is returned only when the target server is a read replica. Possible values are Active, Broken, Catchup, Provisioning, Reconfiguring, and Updating
- Role string
- Role of the server in a replication set.
- capacity number
- Maximum number of read replicas allowed for a server.
- replication_
state string - Indicates the replication state of a read replica. This property is returned only when the target server is a read replica. Possible values are Active, Broken, Catchup, Provisioning, Reconfiguring, and Updating
- role string
- Role of the server in a replication set.
- capacity Integer
- Maximum number of read replicas allowed for a server.
- replication
State String - Indicates the replication state of a read replica. This property is returned only when the target server is a read replica. Possible values are Active, Broken, Catchup, Provisioning, Reconfiguring, and Updating
- role String
- Role of the server in a replication set.
- capacity number
- Maximum number of read replicas allowed for a server.
- replication
State string - Indicates the replication state of a read replica. This property is returned only when the target server is a read replica. Possible values are Active, Broken, Catchup, Provisioning, Reconfiguring, and Updating
- role string
- Role of the server in a replication set.
- capacity int
- Maximum number of read replicas allowed for a server.
- replication_
state str - Indicates the replication state of a read replica. This property is returned only when the target server is a read replica. Possible values are Active, Broken, Catchup, Provisioning, Reconfiguring, and Updating
- role str
- Role of the server in a replication set.
- capacity Number
- Maximum number of read replicas allowed for a server.
- replication
State String - Indicates the replication state of a read replica. This property is returned only when the target server is a read replica. Possible values are Active, Broken, Catchup, Provisioning, Reconfiguring, and Updating
- role String
- Role of the server in a replication set.
ReplicationRole, ReplicationRoleArgs
- None
NoneNo replication role assigned; the server operates independently.- Primary
PrimaryActs as the source server for replication to one or more replicas.- Async
Replica AsyncReplicaReceives data asynchronously from a primary server within the same region.- Geo
Async Replica GeoAsyncReplicaReceives data asynchronously from a primary server in a different region for geographical redundancy.
- Replication
Role None NoneNo replication role assigned; the server operates independently.- Replication
Role Primary PrimaryActs as the source server for replication to one or more replicas.- Replication
Role Async Replica AsyncReplicaReceives data asynchronously from a primary server within the same region.- Replication
Role Geo Async Replica GeoAsyncReplicaReceives data asynchronously from a primary server in a different region for geographical redundancy.
- "None"
NoneNo replication role assigned; the server operates independently.- "Primary"
PrimaryActs as the source server for replication to one or more replicas.- "Async
Replica" AsyncReplicaReceives data asynchronously from a primary server within the same region.- "Geo
Async Replica" GeoAsyncReplicaReceives data asynchronously from a primary server in a different region for geographical redundancy.
- None
NoneNo replication role assigned; the server operates independently.- Primary
PrimaryActs as the source server for replication to one or more replicas.- Async
Replica AsyncReplicaReceives data asynchronously from a primary server within the same region.- Geo
Async Replica GeoAsyncReplicaReceives data asynchronously from a primary server in a different region for geographical redundancy.
- None
NoneNo replication role assigned; the server operates independently.- Primary
PrimaryActs as the source server for replication to one or more replicas.- Async
Replica AsyncReplicaReceives data asynchronously from a primary server within the same region.- Geo
Async Replica GeoAsyncReplicaReceives data asynchronously from a primary server in a different region for geographical redundancy.
- NONE
NoneNo replication role assigned; the server operates independently.- PRIMARY
PrimaryActs as the source server for replication to one or more replicas.- ASYNC_REPLICA
AsyncReplicaReceives data asynchronously from a primary server within the same region.- GEO_ASYNC_REPLICA
GeoAsyncReplicaReceives data asynchronously from a primary server in a different region for geographical redundancy.
- "None"
NoneNo replication role assigned; the server operates independently.- "Primary"
PrimaryActs as the source server for replication to one or more replicas.- "Async
Replica" AsyncReplicaReceives data asynchronously from a primary server within the same region.- "Geo
Async Replica" GeoAsyncReplicaReceives data asynchronously from a primary server in a different region for geographical redundancy.
ServerPublicNetworkAccessState, ServerPublicNetworkAccessStateArgs
- Enabled
EnabledPublic network access is enabled. This allows the server to be accessed from the public internet, provided the necessary firewall rule that allows incoming traffic originating from the connecting client is in place. This is compatible with the use of private endpoints to connect to this server.- Disabled
DisabledPublic network access is disabled. This means the server cannot be accessed from the public internet, but only via private endpoints.
- Server
Public Network Access State Enabled EnabledPublic network access is enabled. This allows the server to be accessed from the public internet, provided the necessary firewall rule that allows incoming traffic originating from the connecting client is in place. This is compatible with the use of private endpoints to connect to this server.- Server
Public Network Access State Disabled DisabledPublic network access is disabled. This means the server cannot be accessed from the public internet, but only via private endpoints.
- "Enabled"
EnabledPublic network access is enabled. This allows the server to be accessed from the public internet, provided the necessary firewall rule that allows incoming traffic originating from the connecting client is in place. This is compatible with the use of private endpoints to connect to this server.- "Disabled"
DisabledPublic network access is disabled. This means the server cannot be accessed from the public internet, but only via private endpoints.
- Enabled
EnabledPublic network access is enabled. This allows the server to be accessed from the public internet, provided the necessary firewall rule that allows incoming traffic originating from the connecting client is in place. This is compatible with the use of private endpoints to connect to this server.- Disabled
DisabledPublic network access is disabled. This means the server cannot be accessed from the public internet, but only via private endpoints.
- Enabled
EnabledPublic network access is enabled. This allows the server to be accessed from the public internet, provided the necessary firewall rule that allows incoming traffic originating from the connecting client is in place. This is compatible with the use of private endpoints to connect to this server.- Disabled
DisabledPublic network access is disabled. This means the server cannot be accessed from the public internet, but only via private endpoints.
- ENABLED
EnabledPublic network access is enabled. This allows the server to be accessed from the public internet, provided the necessary firewall rule that allows incoming traffic originating from the connecting client is in place. This is compatible with the use of private endpoints to connect to this server.- DISABLED
DisabledPublic network access is disabled. This means the server cannot be accessed from the public internet, but only via private endpoints.
- "Enabled"
EnabledPublic network access is enabled. This allows the server to be accessed from the public internet, provided the necessary firewall rule that allows incoming traffic originating from the connecting client is in place. This is compatible with the use of private endpoints to connect to this server.- "Disabled"
DisabledPublic network access is disabled. This means the server cannot be accessed from the public internet, but only via private endpoints.
Sku, SkuArgs
Compute information of a server.- Name string
- Name by which is known a given compute size assigned to a server.
- Tier
string | Pulumi.
Azure Native. DBfor Postgre SQL. Sku Tier - Tier of the compute assigned to a server.
- name string
- Name by which is known a given compute size assigned to a server.
- tier
string | "Burstable" | "General
Purpose" | "Memory Optimized" - Tier of the compute assigned to a server.
- name String
- Name by which is known a given compute size assigned to a server.
- tier
String | "Burstable" | "General
Purpose" | "Memory Optimized" - Tier of the compute assigned to a server.
SkuResponse, SkuResponseArgs
Compute information of a server.SkuTier, SkuTierArgs
- Burstable
BurstableCost-effective tier for infrequent CPU usage, ideal for development and testing workloads with low performance requirements.- General
Purpose GeneralPurposeBalanced compute and memory for most workloads, offering scalable performance and I/O throughput.- Memory
Optimized MemoryOptimizedHigh memory-to-core ratio for demanding workloads needing fast in-memory processing and high concurrency.
- Sku
Tier Burstable BurstableCost-effective tier for infrequent CPU usage, ideal for development and testing workloads with low performance requirements.- Sku
Tier General Purpose GeneralPurposeBalanced compute and memory for most workloads, offering scalable performance and I/O throughput.- Sku
Tier Memory Optimized MemoryOptimizedHigh memory-to-core ratio for demanding workloads needing fast in-memory processing and high concurrency.
- "Burstable"
BurstableCost-effective tier for infrequent CPU usage, ideal for development and testing workloads with low performance requirements.- "General
Purpose" GeneralPurposeBalanced compute and memory for most workloads, offering scalable performance and I/O throughput.- "Memory
Optimized" MemoryOptimizedHigh memory-to-core ratio for demanding workloads needing fast in-memory processing and high concurrency.
- Burstable
BurstableCost-effective tier for infrequent CPU usage, ideal for development and testing workloads with low performance requirements.- General
Purpose GeneralPurposeBalanced compute and memory for most workloads, offering scalable performance and I/O throughput.- Memory
Optimized MemoryOptimizedHigh memory-to-core ratio for demanding workloads needing fast in-memory processing and high concurrency.
- Burstable
BurstableCost-effective tier for infrequent CPU usage, ideal for development and testing workloads with low performance requirements.- General
Purpose GeneralPurposeBalanced compute and memory for most workloads, offering scalable performance and I/O throughput.- Memory
Optimized MemoryOptimizedHigh memory-to-core ratio for demanding workloads needing fast in-memory processing and high concurrency.
- BURSTABLE
BurstableCost-effective tier for infrequent CPU usage, ideal for development and testing workloads with low performance requirements.- GENERAL_PURPOSE
GeneralPurposeBalanced compute and memory for most workloads, offering scalable performance and I/O throughput.- MEMORY_OPTIMIZED
MemoryOptimizedHigh memory-to-core ratio for demanding workloads needing fast in-memory processing and high concurrency.
- "Burstable"
BurstableCost-effective tier for infrequent CPU usage, ideal for development and testing workloads with low performance requirements.- "General
Purpose" GeneralPurposeBalanced compute and memory for most workloads, offering scalable performance and I/O throughput.- "Memory
Optimized" MemoryOptimizedHigh memory-to-core ratio for demanding workloads needing fast in-memory processing and high concurrency.
Storage, StorageArgs
Storage properties of a server.- Auto
Grow string | Pulumi.Azure Native. DBfor Postgre SQL. Storage Auto Grow - Flag to enable or disable the automatic growth of storage size of a server when available space is nearing zero and conditions allow for automatically growing storage size.
- Iops int
- Maximum IOPS supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- Storage
Size intGB - Size of storage assigned to a server.
- Throughput int
- Maximum throughput supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- Tier
string | Pulumi.
Azure Native. DBfor Postgre SQL. Azure Managed Disk Performance Tier - Storage tier of a server.
- Type
string | Pulumi.
Azure Native. DBfor Postgre SQL. Storage Type - Type of storage assigned to a server. Allowed values are Premium_LRS, PremiumV2_LRS, or UltraSSD_LRS. If not specified, it defaults to Premium_LRS.
- Auto
Grow string | StorageAuto Grow - Flag to enable or disable the automatic growth of storage size of a server when available space is nearing zero and conditions allow for automatically growing storage size.
- Iops int
- Maximum IOPS supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- Storage
Size intGB - Size of storage assigned to a server.
- Throughput int
- Maximum throughput supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- Tier
string | Azure
Managed Disk Performance Tier - Storage tier of a server.
- Type
string | Storage
Type - Type of storage assigned to a server. Allowed values are Premium_LRS, PremiumV2_LRS, or UltraSSD_LRS. If not specified, it defaults to Premium_LRS.
- auto_
grow string | "Enabled" | "Disabled" - Flag to enable or disable the automatic growth of storage size of a server when available space is nearing zero and conditions allow for automatically growing storage size.
- iops number
- Maximum IOPS supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- storage_
size_ numbergb - Size of storage assigned to a server.
- throughput number
- Maximum throughput supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- tier string | "P1" | "P2" | "P3" | "P4" | "P6" | "P10" | "P15" | "P20" | "P30" | "P40" | "P50" | "P60" | "P70" | "P80"
- Storage tier of a server.
- type
string | "Premium_LRS" | "Premium
V2_LRS" | "Ultra SSD_LRS" - Type of storage assigned to a server. Allowed values are Premium_LRS, PremiumV2_LRS, or UltraSSD_LRS. If not specified, it defaults to Premium_LRS.
- auto
Grow String | StorageAuto Grow - Flag to enable or disable the automatic growth of storage size of a server when available space is nearing zero and conditions allow for automatically growing storage size.
- iops Integer
- Maximum IOPS supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- storage
Size IntegerGB - Size of storage assigned to a server.
- throughput Integer
- Maximum throughput supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- tier
String | Azure
Managed Disk Performance Tier - Storage tier of a server.
- type
String | Storage
Type - Type of storage assigned to a server. Allowed values are Premium_LRS, PremiumV2_LRS, or UltraSSD_LRS. If not specified, it defaults to Premium_LRS.
- auto
Grow string | StorageAuto Grow - Flag to enable or disable the automatic growth of storage size of a server when available space is nearing zero and conditions allow for automatically growing storage size.
- iops number
- Maximum IOPS supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- storage
Size numberGB - Size of storage assigned to a server.
- throughput number
- Maximum throughput supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- tier
string | Azure
Managed Disk Performance Tier - Storage tier of a server.
- type
string | Storage
Type - Type of storage assigned to a server. Allowed values are Premium_LRS, PremiumV2_LRS, or UltraSSD_LRS. If not specified, it defaults to Premium_LRS.
- auto_
grow str | StorageAuto Grow - Flag to enable or disable the automatic growth of storage size of a server when available space is nearing zero and conditions allow for automatically growing storage size.
- iops int
- Maximum IOPS supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- storage_
size_ intgb - Size of storage assigned to a server.
- throughput int
- Maximum throughput supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- tier
str | Azure
Managed Disk Performance Tier - Storage tier of a server.
- type
str | Storage
Type - Type of storage assigned to a server. Allowed values are Premium_LRS, PremiumV2_LRS, or UltraSSD_LRS. If not specified, it defaults to Premium_LRS.
- auto
Grow String | "Enabled" | "Disabled" - Flag to enable or disable the automatic growth of storage size of a server when available space is nearing zero and conditions allow for automatically growing storage size.
- iops Number
- Maximum IOPS supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- storage
Size NumberGB - Size of storage assigned to a server.
- throughput Number
- Maximum throughput supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- tier String | "P1" | "P2" | "P3" | "P4" | "P6" | "P10" | "P15" | "P20" | "P30" | "P40" | "P50" | "P60" | "P70" | "P80"
- Storage tier of a server.
- type
String | "Premium_LRS" | "Premium
V2_LRS" | "Ultra SSD_LRS" - Type of storage assigned to a server. Allowed values are Premium_LRS, PremiumV2_LRS, or UltraSSD_LRS. If not specified, it defaults to Premium_LRS.
StorageAutoGrow, StorageAutoGrowArgs
- Enabled
EnabledServer should automatically grow storage size when available space is nearing zero and conditions allow for automatically growing storage size.- Disabled
DisabledServer should not automatically grow storage size when available space is nearing zero.
- Storage
Auto Grow Enabled EnabledServer should automatically grow storage size when available space is nearing zero and conditions allow for automatically growing storage size.- Storage
Auto Grow Disabled DisabledServer should not automatically grow storage size when available space is nearing zero.
- "Enabled"
EnabledServer should automatically grow storage size when available space is nearing zero and conditions allow for automatically growing storage size.- "Disabled"
DisabledServer should not automatically grow storage size when available space is nearing zero.
- Enabled
EnabledServer should automatically grow storage size when available space is nearing zero and conditions allow for automatically growing storage size.- Disabled
DisabledServer should not automatically grow storage size when available space is nearing zero.
- Enabled
EnabledServer should automatically grow storage size when available space is nearing zero and conditions allow for automatically growing storage size.- Disabled
DisabledServer should not automatically grow storage size when available space is nearing zero.
- ENABLED
EnabledServer should automatically grow storage size when available space is nearing zero and conditions allow for automatically growing storage size.- DISABLED
DisabledServer should not automatically grow storage size when available space is nearing zero.
- "Enabled"
EnabledServer should automatically grow storage size when available space is nearing zero and conditions allow for automatically growing storage size.- "Disabled"
DisabledServer should not automatically grow storage size when available space is nearing zero.
StorageResponse, StorageResponseArgs
Storage properties of a server.- Auto
Grow string - Flag to enable or disable the automatic growth of storage size of a server when available space is nearing zero and conditions allow for automatically growing storage size.
- Iops int
- Maximum IOPS supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- Storage
Size intGB - Size of storage assigned to a server.
- Throughput int
- Maximum throughput supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- Tier string
- Storage tier of a server.
- Type string
- Type of storage assigned to a server. Allowed values are Premium_LRS, PremiumV2_LRS, or UltraSSD_LRS. If not specified, it defaults to Premium_LRS.
- Auto
Grow string - Flag to enable or disable the automatic growth of storage size of a server when available space is nearing zero and conditions allow for automatically growing storage size.
- Iops int
- Maximum IOPS supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- Storage
Size intGB - Size of storage assigned to a server.
- Throughput int
- Maximum throughput supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- Tier string
- Storage tier of a server.
- Type string
- Type of storage assigned to a server. Allowed values are Premium_LRS, PremiumV2_LRS, or UltraSSD_LRS. If not specified, it defaults to Premium_LRS.
- auto_
grow string - Flag to enable or disable the automatic growth of storage size of a server when available space is nearing zero and conditions allow for automatically growing storage size.
- iops number
- Maximum IOPS supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- storage_
size_ numbergb - Size of storage assigned to a server.
- throughput number
- Maximum throughput supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- tier string
- Storage tier of a server.
- type string
- Type of storage assigned to a server. Allowed values are Premium_LRS, PremiumV2_LRS, or UltraSSD_LRS. If not specified, it defaults to Premium_LRS.
- auto
Grow String - Flag to enable or disable the automatic growth of storage size of a server when available space is nearing zero and conditions allow for automatically growing storage size.
- iops Integer
- Maximum IOPS supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- storage
Size IntegerGB - Size of storage assigned to a server.
- throughput Integer
- Maximum throughput supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- tier String
- Storage tier of a server.
- type String
- Type of storage assigned to a server. Allowed values are Premium_LRS, PremiumV2_LRS, or UltraSSD_LRS. If not specified, it defaults to Premium_LRS.
- auto
Grow string - Flag to enable or disable the automatic growth of storage size of a server when available space is nearing zero and conditions allow for automatically growing storage size.
- iops number
- Maximum IOPS supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- storage
Size numberGB - Size of storage assigned to a server.
- throughput number
- Maximum throughput supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- tier string
- Storage tier of a server.
- type string
- Type of storage assigned to a server. Allowed values are Premium_LRS, PremiumV2_LRS, or UltraSSD_LRS. If not specified, it defaults to Premium_LRS.
- auto_
grow str - Flag to enable or disable the automatic growth of storage size of a server when available space is nearing zero and conditions allow for automatically growing storage size.
- iops int
- Maximum IOPS supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- storage_
size_ intgb - Size of storage assigned to a server.
- throughput int
- Maximum throughput supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- tier str
- Storage tier of a server.
- type str
- Type of storage assigned to a server. Allowed values are Premium_LRS, PremiumV2_LRS, or UltraSSD_LRS. If not specified, it defaults to Premium_LRS.
- auto
Grow String - Flag to enable or disable the automatic growth of storage size of a server when available space is nearing zero and conditions allow for automatically growing storage size.
- iops Number
- Maximum IOPS supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- storage
Size NumberGB - Size of storage assigned to a server.
- throughput Number
- Maximum throughput supported for storage. Required when type of storage is PremiumV2_LRS or UltraSSD_LRS.
- tier String
- Storage tier of a server.
- type String
- Type of storage assigned to a server. Allowed values are Premium_LRS, PremiumV2_LRS, or UltraSSD_LRS. If not specified, it defaults to Premium_LRS.
StorageType, StorageTypeArgs
- Premium_LRS
Premium_LRSStandard Solid State Disk (SSD) backed storage offering consistent performance for general purpose workloads.- Premium
V2_LRS PremiumV2_LRSNext generation Solid State Disk (SSD) storage with improved scalability and performance for demanding enterprise workloads.- Ultra
SSD_LRS UltraSSD_LRSHigh-end Solid State Disk (SSD) storage designed for extreme IOPS and latency-sensitive applications.
- Storage
Type_Premium_LRS Premium_LRSStandard Solid State Disk (SSD) backed storage offering consistent performance for general purpose workloads.- Storage
Type_Premium V2_LRS PremiumV2_LRSNext generation Solid State Disk (SSD) storage with improved scalability and performance for demanding enterprise workloads.- Storage
Type_Ultra SSD_LRS UltraSSD_LRSHigh-end Solid State Disk (SSD) storage designed for extreme IOPS and latency-sensitive applications.
- "Premium_LRS"
Premium_LRSStandard Solid State Disk (SSD) backed storage offering consistent performance for general purpose workloads.- "Premium
V2_LRS" PremiumV2_LRSNext generation Solid State Disk (SSD) storage with improved scalability and performance for demanding enterprise workloads.- "Ultra
SSD_LRS" UltraSSD_LRSHigh-end Solid State Disk (SSD) storage designed for extreme IOPS and latency-sensitive applications.
- Premium_LRS
Premium_LRSStandard Solid State Disk (SSD) backed storage offering consistent performance for general purpose workloads.- Premium
V2_LRS PremiumV2_LRSNext generation Solid State Disk (SSD) storage with improved scalability and performance for demanding enterprise workloads.- Ultra
SSD_LRS UltraSSD_LRSHigh-end Solid State Disk (SSD) storage designed for extreme IOPS and latency-sensitive applications.
- Premium_LRS
Premium_LRSStandard Solid State Disk (SSD) backed storage offering consistent performance for general purpose workloads.- Premium
V2_LRS PremiumV2_LRSNext generation Solid State Disk (SSD) storage with improved scalability and performance for demanding enterprise workloads.- Ultra
SSD_LRS UltraSSD_LRSHigh-end Solid State Disk (SSD) storage designed for extreme IOPS and latency-sensitive applications.
- PREMIUM_LRS
Premium_LRSStandard Solid State Disk (SSD) backed storage offering consistent performance for general purpose workloads.- PREMIUM_V2_LRS
PremiumV2_LRSNext generation Solid State Disk (SSD) storage with improved scalability and performance for demanding enterprise workloads.- ULTRA_SS_D_LRS
UltraSSD_LRSHigh-end Solid State Disk (SSD) storage designed for extreme IOPS and latency-sensitive applications.
- "Premium_LRS"
Premium_LRSStandard Solid State Disk (SSD) backed storage offering consistent performance for general purpose workloads.- "Premium
V2_LRS" PremiumV2_LRSNext generation Solid State Disk (SSD) storage with improved scalability and performance for demanding enterprise workloads.- "Ultra
SSD_LRS" UltraSSD_LRSHigh-end Solid State Disk (SSD) storage designed for extreme IOPS and latency-sensitive applications.
SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of the resource.- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at string - The timestamp of resource creation (UTC).
- created_
by string - The identity that created the resource.
- created_
by_ stringtype - The type of identity that created the resource.
- last_
modified_ stringat - The timestamp of resource last modification (UTC)
- last_
modified_ stringby - The identity that last modified the resource.
- last_
modified_ stringby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
UserAssignedIdentity, UserAssignedIdentityArgs
Identities associated with a server.- Type
string | Pulumi.
Azure Native. DBfor Postgre SQL. Identity Type - Types of identities associated with a server.
- Principal
Id string - Identifier of the object of the service principal associated to the user assigned managed identity.
- User
Assigned Dictionary<string, Pulumi.Identities Azure Native. DBfor Postgre SQL. Inputs. User Identity> - Map of user assigned managed identities.
- Type
string | Identity
Type - Types of identities associated with a server.
- Principal
Id string - Identifier of the object of the service principal associated to the user assigned managed identity.
- User
Assigned map[string]UserIdentities Identity - Map of user assigned managed identities.
- type
string | "User
Assigned" | "System Assigned" - Types of identities associated with a server.
- principal_
id string - Identifier of the object of the service principal associated to the user assigned managed identity.
- user_
assigned_ map(object)identities - Map of user assigned managed identities.
- type
String | Identity
Type - Types of identities associated with a server.
- principal
Id String - Identifier of the object of the service principal associated to the user assigned managed identity.
- user
Assigned Map<String,UserIdentities Identity> - Map of user assigned managed identities.
- type
string | Identity
Type - Types of identities associated with a server.
- principal
Id string - Identifier of the object of the service principal associated to the user assigned managed identity.
- user
Assigned {[key: string]: UserIdentities Identity} - Map of user assigned managed identities.
- type
str | Identity
Type - Types of identities associated with a server.
- principal_
id str - Identifier of the object of the service principal associated to the user assigned managed identity.
- user_
assigned_ Mapping[str, Useridentities Identity] - Map of user assigned managed identities.
- type
String | "User
Assigned" | "System Assigned" - Types of identities associated with a server.
- principal
Id String - Identifier of the object of the service principal associated to the user assigned managed identity.
- user
Assigned Map<Property Map>Identities - Map of user assigned managed identities.
UserAssignedIdentityResponse, UserAssignedIdentityResponseArgs
Identities associated with a server.- Tenant
Id string - Identifier of the tenant of a server.
- Type string
- Types of identities associated with a server.
- Principal
Id string - Identifier of the object of the service principal associated to the user assigned managed identity.
- User
Assigned Dictionary<string, Pulumi.Identities Azure Native. DBfor Postgre SQL. Inputs. User Identity Response> - Map of user assigned managed identities.
- Tenant
Id string - Identifier of the tenant of a server.
- Type string
- Types of identities associated with a server.
- Principal
Id string - Identifier of the object of the service principal associated to the user assigned managed identity.
- User
Assigned map[string]UserIdentities Identity Response - Map of user assigned managed identities.
- tenant_
id string - Identifier of the tenant of a server.
- type string
- Types of identities associated with a server.
- principal_
id string - Identifier of the object of the service principal associated to the user assigned managed identity.
- user_
assigned_ map(object)identities - Map of user assigned managed identities.
- tenant
Id String - Identifier of the tenant of a server.
- type String
- Types of identities associated with a server.
- principal
Id String - Identifier of the object of the service principal associated to the user assigned managed identity.
- user
Assigned Map<String,UserIdentities Identity Response> - Map of user assigned managed identities.
- tenant
Id string - Identifier of the tenant of a server.
- type string
- Types of identities associated with a server.
- principal
Id string - Identifier of the object of the service principal associated to the user assigned managed identity.
- user
Assigned {[key: string]: UserIdentities Identity Response} - Map of user assigned managed identities.
- tenant_
id str - Identifier of the tenant of a server.
- type str
- Types of identities associated with a server.
- principal_
id str - Identifier of the object of the service principal associated to the user assigned managed identity.
- user_
assigned_ Mapping[str, Useridentities Identity Response] - Map of user assigned managed identities.
- tenant
Id String - Identifier of the tenant of a server.
- type String
- Types of identities associated with a server.
- principal
Id String - Identifier of the object of the service principal associated to the user assigned managed identity.
- user
Assigned Map<Property Map>Identities - Map of user assigned managed identities.
UserIdentity, UserIdentityArgs
User assigned managed identity associated with a server.- Client
Id string - Identifier of the client of the service principal associated to the user assigned managed identity.
- Principal
Id string - Identifier of the object of the service principal associated to the user assigned managed identity.
- Client
Id string - Identifier of the client of the service principal associated to the user assigned managed identity.
- Principal
Id string - Identifier of the object of the service principal associated to the user assigned managed identity.
- client_
id string - Identifier of the client of the service principal associated to the user assigned managed identity.
- principal_
id string - Identifier of the object of the service principal associated to the user assigned managed identity.
- client
Id String - Identifier of the client of the service principal associated to the user assigned managed identity.
- principal
Id String - Identifier of the object of the service principal associated to the user assigned managed identity.
- client
Id string - Identifier of the client of the service principal associated to the user assigned managed identity.
- principal
Id string - Identifier of the object of the service principal associated to the user assigned managed identity.
- client_
id str - Identifier of the client of the service principal associated to the user assigned managed identity.
- principal_
id str - Identifier of the object of the service principal associated to the user assigned managed identity.
- client
Id String - Identifier of the client of the service principal associated to the user assigned managed identity.
- principal
Id String - Identifier of the object of the service principal associated to the user assigned managed identity.
UserIdentityResponse, UserIdentityResponseArgs
User assigned managed identity associated with a server.- Client
Id string - Identifier of the client of the service principal associated to the user assigned managed identity.
- Principal
Id string - Identifier of the object of the service principal associated to the user assigned managed identity.
- Client
Id string - Identifier of the client of the service principal associated to the user assigned managed identity.
- Principal
Id string - Identifier of the object of the service principal associated to the user assigned managed identity.
- client_
id string - Identifier of the client of the service principal associated to the user assigned managed identity.
- principal_
id string - Identifier of the object of the service principal associated to the user assigned managed identity.
- client
Id String - Identifier of the client of the service principal associated to the user assigned managed identity.
- principal
Id String - Identifier of the object of the service principal associated to the user assigned managed identity.
- client
Id string - Identifier of the client of the service principal associated to the user assigned managed identity.
- principal
Id string - Identifier of the object of the service principal associated to the user assigned managed identity.
- client_
id str - Identifier of the client of the service principal associated to the user assigned managed identity.
- principal_
id str - Identifier of the object of the service principal associated to the user assigned managed identity.
- client
Id String - Identifier of the client of the service principal associated to the user assigned managed identity.
- principal
Id String - Identifier of the object of the service principal associated to the user assigned managed identity.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:dbforpostgresql:Server myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
published on Thursday, Aug 13, 2026 by Pulumi