1. Packages
  2. Azure Native
  3. API Docs
  4. dbforpostgresql
  5. Server
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

azure-native.dbforpostgresql.Server

Explore with Pulumi AI

Represents a server.

Uses Azure REST API version 2024-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-11-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 database as a geo-restore in geo-paired location

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
        {
            PrimaryUserAssignedIdentityId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity",
            Type = AzureNative.DBforPostgreSQL.ArmServerKeyType.AzureKeyVault,
        },
        Identity = new AzureNative.DBforPostgreSQL.Inputs.UserAssignedIdentityArgs
        {
            Type = AzureNative.DBforPostgreSQL.IdentityType.UserAssigned,
            UserAssignedIdentities = 
            {
                { "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-geo-usermanagedidentity", null },
                { "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity", null },
            },
        },
        Location = "eastus",
        PointInTimeUTC = "2021-06-27T00:04:59.4078005+00:00",
        ResourceGroupName = "testrg",
        ServerName = "pgtestsvc5geo",
        SourceServerResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername",
    });

});
Copy
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{
				PrimaryUserAssignedIdentityId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity"),
				Type:                          pulumi.String(dbforpostgresql.ArmServerKeyTypeAzureKeyVault),
			},
			Identity: &dbforpostgresql.UserAssignedIdentityArgs{
				Type: pulumi.String(dbforpostgresql.IdentityTypeUserAssigned),
				UserAssignedIdentities: dbforpostgresql.UserIdentityMap{
					"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-geo-usermanagedidentity": &dbforpostgresql.UserIdentityArgs{},
					"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity":     &dbforpostgresql.UserIdentityArgs{},
				},
			},
			Location:               pulumi.String("eastus"),
			PointInTimeUTC:         pulumi.String("2021-06-27T00:04:59.4078005+00:00"),
			ResourceGroupName:      pulumi.String("testrg"),
			ServerName:             pulumi.String("pgtestsvc5geo"),
			SourceServerResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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.List;
import java.util.ArrayList;
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()
                .primaryUserAssignedIdentityId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity")
                .type("AzureKeyVault")
                .build())
            .identity(UserAssignedIdentityArgs.builder()
                .type("UserAssigned")
                .userAssignedIdentities(Map.ofEntries(
                    Map.entry("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-geo-usermanagedidentity", UserIdentityArgs.builder()
                        .build()),
                    Map.entry("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity", UserIdentityArgs.builder()
                        .build())
                ))
                .build())
            .location("eastus")
            .pointInTimeUTC("2021-06-27T00:04:59.4078005+00:00")
            .resourceGroupName("testrg")
            .serverName("pgtestsvc5geo")
            .sourceServerResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername")
            .build());

    }
}
Copy
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: {
        primaryUserAssignedIdentityId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity",
        type: azure_native.dbforpostgresql.ArmServerKeyType.AzureKeyVault,
    },
    identity: {
        type: azure_native.dbforpostgresql.IdentityType.UserAssigned,
        userAssignedIdentities: {
            "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-geo-usermanagedidentity": {},
            "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": {},
        },
    },
    location: "eastus",
    pointInTimeUTC: "2021-06-27T00:04:59.4078005+00:00",
    resourceGroupName: "testrg",
    serverName: "pgtestsvc5geo",
    sourceServerResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername",
});
Copy
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={
        "primary_user_assigned_identity_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity",
        "type": azure_native.dbforpostgresql.ArmServerKeyType.AZURE_KEY_VAULT,
    },
    identity={
        "type": azure_native.dbforpostgresql.IdentityType.USER_ASSIGNED,
        "user_assigned_identities": {
            "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-geo-usermanagedidentity": {},
            "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": {},
        },
    },
    location="eastus",
    point_in_time_utc="2021-06-27T00:04:59.4078005+00:00",
    resource_group_name="testrg",
    server_name="pgtestsvc5geo",
    source_server_resource_id="/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername")
Copy
resources:
  server:
    type: azure-native:dbforpostgresql:Server
    properties:
      createMode: GeoRestore
      dataEncryption:
        primaryUserAssignedIdentityId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity
        type: AzureKeyVault
      identity:
        type: UserAssigned
        userAssignedIdentities:
          ? /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-geo-usermanagedidentity
          : {}
          ? /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity
          : {}
      location: eastus
      pointInTimeUTC: 2021-06-27T00:04:59.4078005+00:00
      resourceGroupName: testrg
      serverName: pgtestsvc5geo
      sourceServerResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername
Copy

Create a database as a point in time restore

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 = "westus",
        PointInTimeUTC = "2021-06-27T00:04:59.4078005+00:00",
        ResourceGroupName = "testrg",
        ServerName = "pgtestsvc5",
        SourceServerResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername",
    });

});
Copy
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("westus"),
			PointInTimeUTC:         pulumi.String("2021-06-27T00:04:59.4078005+00:00"),
			ResourceGroupName:      pulumi.String("testrg"),
			ServerName:             pulumi.String("pgtestsvc5"),
			SourceServerResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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.List;
import java.util.ArrayList;
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("westus")
            .pointInTimeUTC("2021-06-27T00:04:59.4078005+00:00")
            .resourceGroupName("testrg")
            .serverName("pgtestsvc5")
            .sourceServerResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername")
            .build());

    }
}
Copy
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: "westus",
    pointInTimeUTC: "2021-06-27T00:04:59.4078005+00:00",
    resourceGroupName: "testrg",
    serverName: "pgtestsvc5",
    sourceServerResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername",
});
Copy
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="westus",
    point_in_time_utc="2021-06-27T00:04:59.4078005+00:00",
    resource_group_name="testrg",
    server_name="pgtestsvc5",
    source_server_resource_id="/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername")
Copy
resources:
  server:
    type: azure-native:dbforpostgresql:Server
    properties:
      createMode: PointInTimeRestore
      location: westus
      pointInTimeUTC: 2021-06-27T00:04:59.4078005+00:00
      resourceGroupName: testrg
      serverName: pgtestsvc5
      sourceServerResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername
Copy

Create a new 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()
    {
        AdministratorLogin = "cloudsa",
        AdministratorLoginPassword = "password",
        AvailabilityZone = "1",
        Backup = new AzureNative.DBforPostgreSQL.Inputs.BackupArgs
        {
            BackupRetentionDays = 7,
            GeoRedundantBackup = AzureNative.DBforPostgreSQL.GeoRedundantBackupEnum.Disabled,
        },
        CreateMode = AzureNative.DBforPostgreSQL.CreateMode.Create,
        HighAvailability = new AzureNative.DBforPostgreSQL.Inputs.HighAvailabilityArgs
        {
            Mode = AzureNative.DBforPostgreSQL.HighAvailabilityMode.ZoneRedundant,
        },
        Location = "westus",
        Network = new AzureNative.DBforPostgreSQL.Inputs.NetworkArgs
        {
            DelegatedSubnetResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet",
            PrivateDnsZoneArmResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com",
        },
        ResourceGroupName = "testrg",
        ServerName = "pgtestsvc4",
        Sku = new AzureNative.DBforPostgreSQL.Inputs.SkuArgs
        {
            Name = "Standard_D4s_v3",
            Tier = AzureNative.DBforPostgreSQL.SkuTier.GeneralPurpose,
        },
        Storage = new AzureNative.DBforPostgreSQL.Inputs.StorageArgs
        {
            AutoGrow = AzureNative.DBforPostgreSQL.StorageAutoGrow.Disabled,
            StorageSizeGB = 512,
            Tier = AzureNative.DBforPostgreSQL.AzureManagedDiskPerformanceTiers.P20,
        },
        Tags = 
        {
            { "ElasticServer", "1" },
        },
        Version = AzureNative.DBforPostgreSQL.ServerVersion.ServerVersion_12,
    });

});
Copy
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("cloudsa"),
			AdministratorLoginPassword: pulumi.String("password"),
			AvailabilityZone:           pulumi.String("1"),
			Backup: &dbforpostgresql.BackupTypeArgs{
				BackupRetentionDays: pulumi.Int(7),
				GeoRedundantBackup:  pulumi.String(dbforpostgresql.GeoRedundantBackupEnumDisabled),
			},
			CreateMode: pulumi.String(dbforpostgresql.CreateModeCreate),
			HighAvailability: &dbforpostgresql.HighAvailabilityArgs{
				Mode: pulumi.String(dbforpostgresql.HighAvailabilityModeZoneRedundant),
			},
			Location: pulumi.String("westus"),
			Network: &dbforpostgresql.NetworkArgs{
				DelegatedSubnetResourceId:   pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"),
				PrivateDnsZoneArmResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"),
			},
			ResourceGroupName: pulumi.String("testrg"),
			ServerName:        pulumi.String("pgtestsvc4"),
			Sku: &dbforpostgresql.SkuArgs{
				Name: pulumi.String("Standard_D4s_v3"),
				Tier: pulumi.String(dbforpostgresql.SkuTierGeneralPurpose),
			},
			Storage: &dbforpostgresql.StorageArgs{
				AutoGrow:      pulumi.String(dbforpostgresql.StorageAutoGrowDisabled),
				StorageSizeGB: pulumi.Int(512),
				Tier:          pulumi.String(dbforpostgresql.AzureManagedDiskPerformanceTiersP20),
			},
			Tags: pulumi.StringMap{
				"ElasticServer": pulumi.String("1"),
			},
			Version: pulumi.String(dbforpostgresql.ServerVersion_12),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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.List;
import java.util.ArrayList;
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("cloudsa")
            .administratorLoginPassword("password")
            .availabilityZone("1")
            .backup(BackupArgs.builder()
                .backupRetentionDays(7)
                .geoRedundantBackup("Disabled")
                .build())
            .createMode("Create")
            .highAvailability(HighAvailabilityArgs.builder()
                .mode("ZoneRedundant")
                .build())
            .location("westus")
            .network(NetworkArgs.builder()
                .delegatedSubnetResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet")
                .privateDnsZoneArmResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com")
                .build())
            .resourceGroupName("testrg")
            .serverName("pgtestsvc4")
            .sku(SkuArgs.builder()
                .name("Standard_D4s_v3")
                .tier("GeneralPurpose")
                .build())
            .storage(StorageArgs.builder()
                .autoGrow("Disabled")
                .storageSizeGB(512)
                .tier("P20")
                .build())
            .tags(Map.of("ElasticServer", "1"))
            .version("12")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const server = new azure_native.dbforpostgresql.Server("server", {
    administratorLogin: "cloudsa",
    administratorLoginPassword: "password",
    availabilityZone: "1",
    backup: {
        backupRetentionDays: 7,
        geoRedundantBackup: azure_native.dbforpostgresql.GeoRedundantBackupEnum.Disabled,
    },
    createMode: azure_native.dbforpostgresql.CreateMode.Create,
    highAvailability: {
        mode: azure_native.dbforpostgresql.HighAvailabilityMode.ZoneRedundant,
    },
    location: "westus",
    network: {
        delegatedSubnetResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet",
        privateDnsZoneArmResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com",
    },
    resourceGroupName: "testrg",
    serverName: "pgtestsvc4",
    sku: {
        name: "Standard_D4s_v3",
        tier: azure_native.dbforpostgresql.SkuTier.GeneralPurpose,
    },
    storage: {
        autoGrow: azure_native.dbforpostgresql.StorageAutoGrow.Disabled,
        storageSizeGB: 512,
        tier: azure_native.dbforpostgresql.AzureManagedDiskPerformanceTiers.P20,
    },
    tags: {
        ElasticServer: "1",
    },
    version: azure_native.dbforpostgresql.ServerVersion.ServerVersion_12,
});
Copy
import pulumi
import pulumi_azure_native as azure_native

server = azure_native.dbforpostgresql.Server("server",
    administrator_login="cloudsa",
    administrator_login_password="password",
    availability_zone="1",
    backup={
        "backup_retention_days": 7,
        "geo_redundant_backup": azure_native.dbforpostgresql.GeoRedundantBackupEnum.DISABLED,
    },
    create_mode=azure_native.dbforpostgresql.CreateMode.CREATE,
    high_availability={
        "mode": azure_native.dbforpostgresql.HighAvailabilityMode.ZONE_REDUNDANT,
    },
    location="westus",
    network={
        "delegated_subnet_resource_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet",
        "private_dns_zone_arm_resource_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com",
    },
    resource_group_name="testrg",
    server_name="pgtestsvc4",
    sku={
        "name": "Standard_D4s_v3",
        "tier": azure_native.dbforpostgresql.SkuTier.GENERAL_PURPOSE,
    },
    storage={
        "auto_grow": azure_native.dbforpostgresql.StorageAutoGrow.DISABLED,
        "storage_size_gb": 512,
        "tier": azure_native.dbforpostgresql.AzureManagedDiskPerformanceTiers.P20,
    },
    tags={
        "ElasticServer": "1",
    },
    version=azure_native.dbforpostgresql.ServerVersion.SERVER_VERSION_12)
Copy
resources:
  server:
    type: azure-native:dbforpostgresql:Server
    properties:
      administratorLogin: cloudsa
      administratorLoginPassword: password
      availabilityZone: '1'
      backup:
        backupRetentionDays: 7
        geoRedundantBackup: Disabled
      createMode: Create
      highAvailability:
        mode: ZoneRedundant
      location: westus
      network:
        delegatedSubnetResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet
        privateDnsZoneArmResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com
      resourceGroupName: testrg
      serverName: pgtestsvc4
      sku:
        name: Standard_D4s_v3
        tier: GeneralPurpose
      storage:
        autoGrow: Disabled
        storageSizeGB: 512
        tier: P20
      tags:
        ElasticServer: '1'
      version: '12'
Copy

Create a new server with active directory authentication enabled

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 = "cloudsa",
        AdministratorLoginPassword = "password",
        AuthConfig = new AzureNative.DBforPostgreSQL.Inputs.AuthConfigArgs
        {
            ActiveDirectoryAuth = AzureNative.DBforPostgreSQL.ActiveDirectoryAuthEnum.Enabled,
            PasswordAuth = AzureNative.DBforPostgreSQL.PasswordAuthEnum.Enabled,
        },
        AvailabilityZone = "1",
        Backup = new AzureNative.DBforPostgreSQL.Inputs.BackupArgs
        {
            BackupRetentionDays = 7,
            GeoRedundantBackup = AzureNative.DBforPostgreSQL.GeoRedundantBackupEnum.Disabled,
        },
        CreateMode = AzureNative.DBforPostgreSQL.CreateMode.Create,
        DataEncryption = new AzureNative.DBforPostgreSQL.Inputs.DataEncryptionArgs
        {
            Type = AzureNative.DBforPostgreSQL.ArmServerKeyType.SystemManaged,
        },
        HighAvailability = new AzureNative.DBforPostgreSQL.Inputs.HighAvailabilityArgs
        {
            Mode = AzureNative.DBforPostgreSQL.HighAvailabilityMode.ZoneRedundant,
        },
        Location = "westus",
        Network = new AzureNative.DBforPostgreSQL.Inputs.NetworkArgs
        {
            DelegatedSubnetResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet",
            PrivateDnsZoneArmResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com",
        },
        ResourceGroupName = "testrg",
        ServerName = "pgtestsvc4",
        Sku = new AzureNative.DBforPostgreSQL.Inputs.SkuArgs
        {
            Name = "Standard_D4s_v3",
            Tier = AzureNative.DBforPostgreSQL.SkuTier.GeneralPurpose,
        },
        Storage = new AzureNative.DBforPostgreSQL.Inputs.StorageArgs
        {
            AutoGrow = AzureNative.DBforPostgreSQL.StorageAutoGrow.Disabled,
            StorageSizeGB = 512,
            Tier = AzureNative.DBforPostgreSQL.AzureManagedDiskPerformanceTiers.P20,
        },
        Tags = 
        {
            { "ElasticServer", "1" },
        },
        Version = AzureNative.DBforPostgreSQL.ServerVersion.ServerVersion_12,
    });

});
Copy
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("cloudsa"),
			AdministratorLoginPassword: pulumi.String("password"),
			AuthConfig: &dbforpostgresql.AuthConfigArgs{
				ActiveDirectoryAuth: pulumi.String(dbforpostgresql.ActiveDirectoryAuthEnumEnabled),
				PasswordAuth:        pulumi.String(dbforpostgresql.PasswordAuthEnumEnabled),
			},
			AvailabilityZone: pulumi.String("1"),
			Backup: &dbforpostgresql.BackupTypeArgs{
				BackupRetentionDays: pulumi.Int(7),
				GeoRedundantBackup:  pulumi.String(dbforpostgresql.GeoRedundantBackupEnumDisabled),
			},
			CreateMode: pulumi.String(dbforpostgresql.CreateModeCreate),
			DataEncryption: &dbforpostgresql.DataEncryptionArgs{
				Type: pulumi.String(dbforpostgresql.ArmServerKeyTypeSystemManaged),
			},
			HighAvailability: &dbforpostgresql.HighAvailabilityArgs{
				Mode: pulumi.String(dbforpostgresql.HighAvailabilityModeZoneRedundant),
			},
			Location: pulumi.String("westus"),
			Network: &dbforpostgresql.NetworkArgs{
				DelegatedSubnetResourceId:   pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"),
				PrivateDnsZoneArmResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"),
			},
			ResourceGroupName: pulumi.String("testrg"),
			ServerName:        pulumi.String("pgtestsvc4"),
			Sku: &dbforpostgresql.SkuArgs{
				Name: pulumi.String("Standard_D4s_v3"),
				Tier: pulumi.String(dbforpostgresql.SkuTierGeneralPurpose),
			},
			Storage: &dbforpostgresql.StorageArgs{
				AutoGrow:      pulumi.String(dbforpostgresql.StorageAutoGrowDisabled),
				StorageSizeGB: pulumi.Int(512),
				Tier:          pulumi.String(dbforpostgresql.AzureManagedDiskPerformanceTiersP20),
			},
			Tags: pulumi.StringMap{
				"ElasticServer": pulumi.String("1"),
			},
			Version: pulumi.String(dbforpostgresql.ServerVersion_12),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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.List;
import java.util.ArrayList;
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("cloudsa")
            .administratorLoginPassword("password")
            .authConfig(AuthConfigArgs.builder()
                .activeDirectoryAuth("Enabled")
                .passwordAuth("Enabled")
                .build())
            .availabilityZone("1")
            .backup(BackupArgs.builder()
                .backupRetentionDays(7)
                .geoRedundantBackup("Disabled")
                .build())
            .createMode("Create")
            .dataEncryption(DataEncryptionArgs.builder()
                .type("SystemManaged")
                .build())
            .highAvailability(HighAvailabilityArgs.builder()
                .mode("ZoneRedundant")
                .build())
            .location("westus")
            .network(NetworkArgs.builder()
                .delegatedSubnetResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet")
                .privateDnsZoneArmResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com")
                .build())
            .resourceGroupName("testrg")
            .serverName("pgtestsvc4")
            .sku(SkuArgs.builder()
                .name("Standard_D4s_v3")
                .tier("GeneralPurpose")
                .build())
            .storage(StorageArgs.builder()
                .autoGrow("Disabled")
                .storageSizeGB(512)
                .tier("P20")
                .build())
            .tags(Map.of("ElasticServer", "1"))
            .version("12")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const server = new azure_native.dbforpostgresql.Server("server", {
    administratorLogin: "cloudsa",
    administratorLoginPassword: "password",
    authConfig: {
        activeDirectoryAuth: azure_native.dbforpostgresql.ActiveDirectoryAuthEnum.Enabled,
        passwordAuth: azure_native.dbforpostgresql.PasswordAuthEnum.Enabled,
    },
    availabilityZone: "1",
    backup: {
        backupRetentionDays: 7,
        geoRedundantBackup: azure_native.dbforpostgresql.GeoRedundantBackupEnum.Disabled,
    },
    createMode: azure_native.dbforpostgresql.CreateMode.Create,
    dataEncryption: {
        type: azure_native.dbforpostgresql.ArmServerKeyType.SystemManaged,
    },
    highAvailability: {
        mode: azure_native.dbforpostgresql.HighAvailabilityMode.ZoneRedundant,
    },
    location: "westus",
    network: {
        delegatedSubnetResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet",
        privateDnsZoneArmResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com",
    },
    resourceGroupName: "testrg",
    serverName: "pgtestsvc4",
    sku: {
        name: "Standard_D4s_v3",
        tier: azure_native.dbforpostgresql.SkuTier.GeneralPurpose,
    },
    storage: {
        autoGrow: azure_native.dbforpostgresql.StorageAutoGrow.Disabled,
        storageSizeGB: 512,
        tier: azure_native.dbforpostgresql.AzureManagedDiskPerformanceTiers.P20,
    },
    tags: {
        ElasticServer: "1",
    },
    version: azure_native.dbforpostgresql.ServerVersion.ServerVersion_12,
});
Copy
import pulumi
import pulumi_azure_native as azure_native

server = azure_native.dbforpostgresql.Server("server",
    administrator_login="cloudsa",
    administrator_login_password="password",
    auth_config={
        "active_directory_auth": azure_native.dbforpostgresql.ActiveDirectoryAuthEnum.ENABLED,
        "password_auth": azure_native.dbforpostgresql.PasswordAuthEnum.ENABLED,
    },
    availability_zone="1",
    backup={
        "backup_retention_days": 7,
        "geo_redundant_backup": azure_native.dbforpostgresql.GeoRedundantBackupEnum.DISABLED,
    },
    create_mode=azure_native.dbforpostgresql.CreateMode.CREATE,
    data_encryption={
        "type": azure_native.dbforpostgresql.ArmServerKeyType.SYSTEM_MANAGED,
    },
    high_availability={
        "mode": azure_native.dbforpostgresql.HighAvailabilityMode.ZONE_REDUNDANT,
    },
    location="westus",
    network={
        "delegated_subnet_resource_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet",
        "private_dns_zone_arm_resource_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com",
    },
    resource_group_name="testrg",
    server_name="pgtestsvc4",
    sku={
        "name": "Standard_D4s_v3",
        "tier": azure_native.dbforpostgresql.SkuTier.GENERAL_PURPOSE,
    },
    storage={
        "auto_grow": azure_native.dbforpostgresql.StorageAutoGrow.DISABLED,
        "storage_size_gb": 512,
        "tier": azure_native.dbforpostgresql.AzureManagedDiskPerformanceTiers.P20,
    },
    tags={
        "ElasticServer": "1",
    },
    version=azure_native.dbforpostgresql.ServerVersion.SERVER_VERSION_12)
Copy
resources:
  server:
    type: azure-native:dbforpostgresql:Server
    properties:
      administratorLogin: cloudsa
      administratorLoginPassword: password
      authConfig:
        activeDirectoryAuth: Enabled
        passwordAuth: Enabled
      availabilityZone: '1'
      backup:
        backupRetentionDays: 7
        geoRedundantBackup: Disabled
      createMode: Create
      dataEncryption:
        type: SystemManaged
      highAvailability:
        mode: ZoneRedundant
      location: westus
      network:
        delegatedSubnetResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet
        privateDnsZoneArmResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com
      resourceGroupName: testrg
      serverName: pgtestsvc4
      sku:
        name: Standard_D4s_v3
        tier: GeneralPurpose
      storage:
        autoGrow: Disabled
        storageSizeGB: 512
        tier: P20
      tags:
        ElasticServer: '1'
      version: '12'
Copy

ServerCreateReplica

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
        {
            PrimaryUserAssignedIdentityId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity",
            Type = AzureNative.DBforPostgreSQL.ArmServerKeyType.AzureKeyVault,
        },
        Identity = new AzureNative.DBforPostgreSQL.Inputs.UserAssignedIdentityArgs
        {
            Type = AzureNative.DBforPostgreSQL.IdentityType.UserAssigned,
            UserAssignedIdentities = 
            {
                { "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity", null },
            },
        },
        Location = "westus",
        PointInTimeUTC = "2021-06-27T00:04:59.4078005+00:00",
        ResourceGroupName = "testrg",
        ServerName = "pgtestsvc5rep",
        SourceServerResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername",
    });

});
Copy
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{
				PrimaryUserAssignedIdentityId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity"),
				Type:                          pulumi.String(dbforpostgresql.ArmServerKeyTypeAzureKeyVault),
			},
			Identity: &dbforpostgresql.UserAssignedIdentityArgs{
				Type: pulumi.String(dbforpostgresql.IdentityTypeUserAssigned),
				UserAssignedIdentities: dbforpostgresql.UserIdentityMap{
					"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": &dbforpostgresql.UserIdentityArgs{},
				},
			},
			Location:               pulumi.String("westus"),
			PointInTimeUTC:         pulumi.String("2021-06-27T00:04:59.4078005+00:00"),
			ResourceGroupName:      pulumi.String("testrg"),
			ServerName:             pulumi.String("pgtestsvc5rep"),
			SourceServerResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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.List;
import java.util.ArrayList;
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()
                .primaryUserAssignedIdentityId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity")
                .type("AzureKeyVault")
                .build())
            .identity(UserAssignedIdentityArgs.builder()
                .type("UserAssigned")
                .userAssignedIdentities(Map.of("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity", UserIdentityArgs.builder()
                    .build()))
                .build())
            .location("westus")
            .pointInTimeUTC("2021-06-27T00:04:59.4078005+00:00")
            .resourceGroupName("testrg")
            .serverName("pgtestsvc5rep")
            .sourceServerResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername")
            .build());

    }
}
Copy
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: {
        primaryUserAssignedIdentityId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity",
        type: azure_native.dbforpostgresql.ArmServerKeyType.AzureKeyVault,
    },
    identity: {
        type: azure_native.dbforpostgresql.IdentityType.UserAssigned,
        userAssignedIdentities: {
            "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": {},
        },
    },
    location: "westus",
    pointInTimeUTC: "2021-06-27T00:04:59.4078005+00:00",
    resourceGroupName: "testrg",
    serverName: "pgtestsvc5rep",
    sourceServerResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

server = azure_native.dbforpostgresql.Server("server",
    create_mode=azure_native.dbforpostgresql.CreateMode.REPLICA,
    data_encryption={
        "primary_user_assigned_identity_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity",
        "type": azure_native.dbforpostgresql.ArmServerKeyType.AZURE_KEY_VAULT,
    },
    identity={
        "type": azure_native.dbforpostgresql.IdentityType.USER_ASSIGNED,
        "user_assigned_identities": {
            "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": {},
        },
    },
    location="westus",
    point_in_time_utc="2021-06-27T00:04:59.4078005+00:00",
    resource_group_name="testrg",
    server_name="pgtestsvc5rep",
    source_server_resource_id="/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername")
Copy
resources:
  server:
    type: azure-native:dbforpostgresql:Server
    properties:
      createMode: Replica
      dataEncryption:
        primaryUserAssignedIdentityId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity
        type: AzureKeyVault
      identity:
        type: UserAssigned
        userAssignedIdentities:
          ? /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity
          : {}
      location: westus
      pointInTimeUTC: 2021-06-27T00:04:59.4078005+00:00
      resourceGroupName: testrg
      serverName: pgtestsvc5rep
      sourceServerResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourcepgservername
Copy

ServerCreateReviveDropped

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 = "westus",
        PointInTimeUTC = "2023-04-27T00:04:59.4078005+00:00",
        ResourceGroupName = "testrg",
        ServerName = "pgtestsvc5-rev",
        SourceServerResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5",
    });

});
Copy
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("westus"),
			PointInTimeUTC:         pulumi.String("2023-04-27T00:04:59.4078005+00:00"),
			ResourceGroupName:      pulumi.String("testrg"),
			ServerName:             pulumi.String("pgtestsvc5-rev"),
			SourceServerResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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.List;
import java.util.ArrayList;
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("westus")
            .pointInTimeUTC("2023-04-27T00:04:59.4078005+00:00")
            .resourceGroupName("testrg")
            .serverName("pgtestsvc5-rev")
            .sourceServerResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5")
            .build());

    }
}
Copy
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: "westus",
    pointInTimeUTC: "2023-04-27T00:04:59.4078005+00:00",
    resourceGroupName: "testrg",
    serverName: "pgtestsvc5-rev",
    sourceServerResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

server = azure_native.dbforpostgresql.Server("server",
    create_mode=azure_native.dbforpostgresql.CreateMode.REVIVE_DROPPED,
    location="westus",
    point_in_time_utc="2023-04-27T00:04:59.4078005+00:00",
    resource_group_name="testrg",
    server_name="pgtestsvc5-rev",
    source_server_resource_id="/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5")
Copy
resources:
  server:
    type: azure-native:dbforpostgresql:Server
    properties:
      createMode: ReviveDropped
      location: westus
      pointInTimeUTC: 2023-04-27T00:04:59.4078005+00:00
      resourceGroupName: testrg
      serverName: pgtestsvc5-rev
      sourceServerResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgtestsvc5
Copy

ServerCreateWithDataEncryptionEnabled

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 = "cloudsa",
        AdministratorLoginPassword = "password",
        AvailabilityZone = "1",
        Backup = new AzureNative.DBforPostgreSQL.Inputs.BackupArgs
        {
            BackupRetentionDays = 7,
            GeoRedundantBackup = AzureNative.DBforPostgreSQL.GeoRedundantBackupEnum.Disabled,
        },
        CreateMode = AzureNative.DBforPostgreSQL.CreateMode.Create,
        DataEncryption = new AzureNative.DBforPostgreSQL.Inputs.DataEncryptionArgs
        {
            PrimaryUserAssignedIdentityId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity",
            Type = AzureNative.DBforPostgreSQL.ArmServerKeyType.AzureKeyVault,
        },
        HighAvailability = new AzureNative.DBforPostgreSQL.Inputs.HighAvailabilityArgs
        {
            Mode = AzureNative.DBforPostgreSQL.HighAvailabilityMode.ZoneRedundant,
        },
        Identity = new AzureNative.DBforPostgreSQL.Inputs.UserAssignedIdentityArgs
        {
            Type = AzureNative.DBforPostgreSQL.IdentityType.UserAssigned,
            UserAssignedIdentities = 
            {
                { "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity", null },
            },
        },
        Location = "westus",
        Network = new AzureNative.DBforPostgreSQL.Inputs.NetworkArgs
        {
            DelegatedSubnetResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet",
            PrivateDnsZoneArmResourceId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com",
        },
        ResourceGroupName = "testrg",
        ServerName = "pgtestsvc4",
        Sku = new AzureNative.DBforPostgreSQL.Inputs.SkuArgs
        {
            Name = "Standard_D4s_v3",
            Tier = AzureNative.DBforPostgreSQL.SkuTier.GeneralPurpose,
        },
        Storage = new AzureNative.DBforPostgreSQL.Inputs.StorageArgs
        {
            AutoGrow = AzureNative.DBforPostgreSQL.StorageAutoGrow.Disabled,
            StorageSizeGB = 512,
        },
        Tags = 
        {
            { "ElasticServer", "1" },
        },
        Version = AzureNative.DBforPostgreSQL.ServerVersion.ServerVersion_12,
    });

});
Copy
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("cloudsa"),
			AdministratorLoginPassword: pulumi.String("password"),
			AvailabilityZone:           pulumi.String("1"),
			Backup: &dbforpostgresql.BackupTypeArgs{
				BackupRetentionDays: pulumi.Int(7),
				GeoRedundantBackup:  pulumi.String(dbforpostgresql.GeoRedundantBackupEnumDisabled),
			},
			CreateMode: pulumi.String(dbforpostgresql.CreateModeCreate),
			DataEncryption: &dbforpostgresql.DataEncryptionArgs{
				PrimaryUserAssignedIdentityId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity"),
				Type:                          pulumi.String(dbforpostgresql.ArmServerKeyTypeAzureKeyVault),
			},
			HighAvailability: &dbforpostgresql.HighAvailabilityArgs{
				Mode: pulumi.String(dbforpostgresql.HighAvailabilityModeZoneRedundant),
			},
			Identity: &dbforpostgresql.UserAssignedIdentityArgs{
				Type: pulumi.String(dbforpostgresql.IdentityTypeUserAssigned),
				UserAssignedIdentities: dbforpostgresql.UserIdentityMap{
					"/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": &dbforpostgresql.UserIdentityArgs{},
				},
			},
			Location: pulumi.String("westus"),
			Network: &dbforpostgresql.NetworkArgs{
				DelegatedSubnetResourceId:   pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet"),
				PrivateDnsZoneArmResourceId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com"),
			},
			ResourceGroupName: pulumi.String("testrg"),
			ServerName:        pulumi.String("pgtestsvc4"),
			Sku: &dbforpostgresql.SkuArgs{
				Name: pulumi.String("Standard_D4s_v3"),
				Tier: pulumi.String(dbforpostgresql.SkuTierGeneralPurpose),
			},
			Storage: &dbforpostgresql.StorageArgs{
				AutoGrow:      pulumi.String(dbforpostgresql.StorageAutoGrowDisabled),
				StorageSizeGB: pulumi.Int(512),
			},
			Tags: pulumi.StringMap{
				"ElasticServer": pulumi.String("1"),
			},
			Version: pulumi.String(dbforpostgresql.ServerVersion_12),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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.List;
import java.util.ArrayList;
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("cloudsa")
            .administratorLoginPassword("password")
            .availabilityZone("1")
            .backup(BackupArgs.builder()
                .backupRetentionDays(7)
                .geoRedundantBackup("Disabled")
                .build())
            .createMode("Create")
            .dataEncryption(DataEncryptionArgs.builder()
                .primaryUserAssignedIdentityId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity")
                .type("AzureKeyVault")
                .build())
            .highAvailability(HighAvailabilityArgs.builder()
                .mode("ZoneRedundant")
                .build())
            .identity(UserAssignedIdentityArgs.builder()
                .type("UserAssigned")
                .userAssignedIdentities(Map.of("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity", UserIdentityArgs.builder()
                    .build()))
                .build())
            .location("westus")
            .network(NetworkArgs.builder()
                .delegatedSubnetResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet")
                .privateDnsZoneArmResourceId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com")
                .build())
            .resourceGroupName("testrg")
            .serverName("pgtestsvc4")
            .sku(SkuArgs.builder()
                .name("Standard_D4s_v3")
                .tier("GeneralPurpose")
                .build())
            .storage(StorageArgs.builder()
                .autoGrow("Disabled")
                .storageSizeGB(512)
                .build())
            .tags(Map.of("ElasticServer", "1"))
            .version("12")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const server = new azure_native.dbforpostgresql.Server("server", {
    administratorLogin: "cloudsa",
    administratorLoginPassword: "password",
    availabilityZone: "1",
    backup: {
        backupRetentionDays: 7,
        geoRedundantBackup: azure_native.dbforpostgresql.GeoRedundantBackupEnum.Disabled,
    },
    createMode: azure_native.dbforpostgresql.CreateMode.Create,
    dataEncryption: {
        primaryUserAssignedIdentityId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity",
        type: azure_native.dbforpostgresql.ArmServerKeyType.AzureKeyVault,
    },
    highAvailability: {
        mode: azure_native.dbforpostgresql.HighAvailabilityMode.ZoneRedundant,
    },
    identity: {
        type: azure_native.dbforpostgresql.IdentityType.UserAssigned,
        userAssignedIdentities: {
            "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": {},
        },
    },
    location: "westus",
    network: {
        delegatedSubnetResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet",
        privateDnsZoneArmResourceId: "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com",
    },
    resourceGroupName: "testrg",
    serverName: "pgtestsvc4",
    sku: {
        name: "Standard_D4s_v3",
        tier: azure_native.dbforpostgresql.SkuTier.GeneralPurpose,
    },
    storage: {
        autoGrow: azure_native.dbforpostgresql.StorageAutoGrow.Disabled,
        storageSizeGB: 512,
    },
    tags: {
        ElasticServer: "1",
    },
    version: azure_native.dbforpostgresql.ServerVersion.ServerVersion_12,
});
Copy
import pulumi
import pulumi_azure_native as azure_native

server = azure_native.dbforpostgresql.Server("server",
    administrator_login="cloudsa",
    administrator_login_password="password",
    availability_zone="1",
    backup={
        "backup_retention_days": 7,
        "geo_redundant_backup": azure_native.dbforpostgresql.GeoRedundantBackupEnum.DISABLED,
    },
    create_mode=azure_native.dbforpostgresql.CreateMode.CREATE,
    data_encryption={
        "primary_user_assigned_identity_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity",
        "type": azure_native.dbforpostgresql.ArmServerKeyType.AZURE_KEY_VAULT,
    },
    high_availability={
        "mode": azure_native.dbforpostgresql.HighAvailabilityMode.ZONE_REDUNDANT,
    },
    identity={
        "type": azure_native.dbforpostgresql.IdentityType.USER_ASSIGNED,
        "user_assigned_identities": {
            "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity": {},
        },
    },
    location="westus",
    network={
        "delegated_subnet_resource_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet",
        "private_dns_zone_arm_resource_id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com",
    },
    resource_group_name="testrg",
    server_name="pgtestsvc4",
    sku={
        "name": "Standard_D4s_v3",
        "tier": azure_native.dbforpostgresql.SkuTier.GENERAL_PURPOSE,
    },
    storage={
        "auto_grow": azure_native.dbforpostgresql.StorageAutoGrow.DISABLED,
        "storage_size_gb": 512,
    },
    tags={
        "ElasticServer": "1",
    },
    version=azure_native.dbforpostgresql.ServerVersion.SERVER_VERSION_12)
Copy
resources:
  server:
    type: azure-native:dbforpostgresql:Server
    properties:
      administratorLogin: cloudsa
      administratorLoginPassword: password
      availabilityZone: '1'
      backup:
        backupRetentionDays: 7
        geoRedundantBackup: Disabled
      createMode: Create
      dataEncryption:
        primaryUserAssignedIdentityId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity
        type: AzureKeyVault
      highAvailability:
        mode: ZoneRedundant
      identity:
        type: UserAssigned
        userAssignedIdentities:
          ? /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-usermanagedidentity
          : {}
      location: westus
      network:
        delegatedSubnetResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-vnet-subnet
        privateDnsZoneArmResourceId: /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourcegroups/testrg/providers/Microsoft.Network/privateDnsZones/test-private-dns-zone.postgres.database.azure.com
      resourceGroupName: testrg
      serverName: pgtestsvc4
      sku:
        name: Standard_D4s_v3
        tier: GeneralPurpose
      storage:
        autoGrow: Disabled
        storageSizeGB: 512
      tags:
        ElasticServer: '1'
      version: '12'
Copy

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,
           create_mode: Optional[Union[str, CreateMode]] = None,
           administrator_login: Optional[str] = None,
           network: Optional[NetworkArgs] = None,
           replica: Optional[ReplicaArgs] = None,
           point_in_time_utc: Optional[str] = None,
           data_encryption: Optional[DataEncryptionArgs] = None,
           high_availability: Optional[HighAvailabilityArgs] = None,
           identity: Optional[UserAssignedIdentityArgs] = None,
           location: Optional[str] = None,
           maintenance_window: Optional[MaintenanceWindowArgs] = None,
           availability_zone: Optional[str] = None,
           auth_config: Optional[AuthConfigArgs] = None,
           backup: Optional[BackupArgs] = 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, ServerVersion]] = 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.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ServerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. ServerArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ServerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
    CreateMode = "string",
    AdministratorLogin = "string",
    Network = new AzureNative.DBforPostgreSQL.Inputs.NetworkArgs
    {
        DelegatedSubnetResourceId = "string",
        PrivateDnsZoneArmResourceId = "string",
        PublicNetworkAccess = "string",
    },
    Replica = new AzureNative.DBforPostgreSQL.Inputs.ReplicaArgs
    {
        PromoteMode = "string",
        PromoteOption = "string",
        Role = "string",
    },
    PointInTimeUTC = "string",
    DataEncryption = new AzureNative.DBforPostgreSQL.Inputs.DataEncryptionArgs
    {
        GeoBackupEncryptionKeyStatus = "string",
        GeoBackupKeyURI = "string",
        GeoBackupUserAssignedIdentityId = "string",
        PrimaryEncryptionKeyStatus = "string",
        PrimaryKeyURI = "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",
            } },
        },
    },
    Location = "string",
    MaintenanceWindow = new AzureNative.DBforPostgreSQL.Inputs.MaintenanceWindowArgs
    {
        CustomWindow = "string",
        DayOfWeek = 0,
        StartHour = 0,
        StartMinute = 0,
    },
    AvailabilityZone = "string",
    AuthConfig = new AzureNative.DBforPostgreSQL.Inputs.AuthConfigArgs
    {
        ActiveDirectoryAuth = "string",
        PasswordAuth = "string",
        TenantId = "string",
    },
    Backup = new AzureNative.DBforPostgreSQL.Inputs.BackupArgs
    {
        BackupRetentionDays = 0,
        GeoRedundantBackup = "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",
});
Copy
example, err := dbforpostgresql.NewServer(ctx, "exampleserverResourceResourceFromDbforpostgresql", &dbforpostgresql.ServerArgs{
	ResourceGroupName:  pulumi.String("string"),
	CreateMode:         pulumi.String("string"),
	AdministratorLogin: pulumi.String("string"),
	Network: &dbforpostgresql.NetworkArgs{
		DelegatedSubnetResourceId:   pulumi.String("string"),
		PrivateDnsZoneArmResourceId: pulumi.String("string"),
		PublicNetworkAccess:         pulumi.String("string"),
	},
	Replica: &dbforpostgresql.ReplicaArgs{
		PromoteMode:   pulumi.String("string"),
		PromoteOption: pulumi.String("string"),
		Role:          pulumi.String("string"),
	},
	PointInTimeUTC: pulumi.String("string"),
	DataEncryption: &dbforpostgresql.DataEncryptionArgs{
		GeoBackupEncryptionKeyStatus:    pulumi.String("string"),
		GeoBackupKeyURI:                 pulumi.String("string"),
		GeoBackupUserAssignedIdentityId: pulumi.String("string"),
		PrimaryEncryptionKeyStatus:      pulumi.String("string"),
		PrimaryKeyURI:                   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"),
			},
		},
	},
	Location: pulumi.String("string"),
	MaintenanceWindow: &dbforpostgresql.MaintenanceWindowArgs{
		CustomWindow: pulumi.String("string"),
		DayOfWeek:    pulumi.Int(0),
		StartHour:    pulumi.Int(0),
		StartMinute:  pulumi.Int(0),
	},
	AvailabilityZone: pulumi.String("string"),
	AuthConfig: &dbforpostgresql.AuthConfigArgs{
		ActiveDirectoryAuth: pulumi.String("string"),
		PasswordAuth:        pulumi.String("string"),
		TenantId:            pulumi.String("string"),
	},
	Backup: &dbforpostgresql.BackupTypeArgs{
		BackupRetentionDays: pulumi.Int(0),
		GeoRedundantBackup:  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"),
})
Copy
var exampleserverResourceResourceFromDbforpostgresql = new Server("exampleserverResourceResourceFromDbforpostgresql", ServerArgs.builder()
    .resourceGroupName("string")
    .createMode("string")
    .administratorLogin("string")
    .network(NetworkArgs.builder()
        .delegatedSubnetResourceId("string")
        .privateDnsZoneArmResourceId("string")
        .publicNetworkAccess("string")
        .build())
    .replica(ReplicaArgs.builder()
        .promoteMode("string")
        .promoteOption("string")
        .role("string")
        .build())
    .pointInTimeUTC("string")
    .dataEncryption(DataEncryptionArgs.builder()
        .geoBackupEncryptionKeyStatus("string")
        .geoBackupKeyURI("string")
        .geoBackupUserAssignedIdentityId("string")
        .primaryEncryptionKeyStatus("string")
        .primaryKeyURI("string")
        .primaryKeyUri("string")
        .primaryUserAssignedIdentityId("string")
        .type("string")
        .build())
    .highAvailability(HighAvailabilityArgs.builder()
        .mode("string")
        .standbyAvailabilityZone("string")
        .build())
    .identity(UserAssignedIdentityArgs.builder()
        .type("string")
        .principalId("string")
        .userAssignedIdentities(Map.of("string", Map.ofEntries(
            Map.entry("clientId", "string"),
            Map.entry("principalId", "string")
        )))
        .build())
    .location("string")
    .maintenanceWindow(MaintenanceWindowArgs.builder()
        .customWindow("string")
        .dayOfWeek(0)
        .startHour(0)
        .startMinute(0)
        .build())
    .availabilityZone("string")
    .authConfig(AuthConfigArgs.builder()
        .activeDirectoryAuth("string")
        .passwordAuth("string")
        .tenantId("string")
        .build())
    .backup(BackupArgs.builder()
        .backupRetentionDays(0)
        .geoRedundantBackup("string")
        .build())
    .replicationRole("string")
    .administratorLoginPassword("string")
    .serverName("string")
    .sku(SkuArgs.builder()
        .name("string")
        .tier("string")
        .build())
    .sourceServerResourceId("string")
    .storage(StorageArgs.builder()
        .autoGrow("string")
        .iops(0)
        .storageSizeGB(0)
        .throughput(0)
        .tier("string")
        .type("string")
        .build())
    .tags(Map.of("string", "string"))
    .version("string")
    .build());
Copy
exampleserver_resource_resource_from_dbforpostgresql = azure_native.dbforpostgresql.Server("exampleserverResourceResourceFromDbforpostgresql",
    resource_group_name="string",
    create_mode="string",
    administrator_login="string",
    network={
        "delegated_subnet_resource_id": "string",
        "private_dns_zone_arm_resource_id": "string",
        "public_network_access": "string",
    },
    replica={
        "promote_mode": "string",
        "promote_option": "string",
        "role": "string",
    },
    point_in_time_utc="string",
    data_encryption={
        "geo_backup_encryption_key_status": "string",
        "geo_backup_key_uri": "string",
        "geo_backup_user_assigned_identity_id": "string",
        "primary_encryption_key_status": "string",
        "primary_key_uri": "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",
            },
        },
    },
    location="string",
    maintenance_window={
        "custom_window": "string",
        "day_of_week": 0,
        "start_hour": 0,
        "start_minute": 0,
    },
    availability_zone="string",
    auth_config={
        "active_directory_auth": "string",
        "password_auth": "string",
        "tenant_id": "string",
    },
    backup={
        "backup_retention_days": 0,
        "geo_redundant_backup": "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")
Copy
const exampleserverResourceResourceFromDbforpostgresql = new azure_native.dbforpostgresql.Server("exampleserverResourceResourceFromDbforpostgresql", {
    resourceGroupName: "string",
    createMode: "string",
    administratorLogin: "string",
    network: {
        delegatedSubnetResourceId: "string",
        privateDnsZoneArmResourceId: "string",
        publicNetworkAccess: "string",
    },
    replica: {
        promoteMode: "string",
        promoteOption: "string",
        role: "string",
    },
    pointInTimeUTC: "string",
    dataEncryption: {
        geoBackupEncryptionKeyStatus: "string",
        geoBackupKeyURI: "string",
        geoBackupUserAssignedIdentityId: "string",
        primaryEncryptionKeyStatus: "string",
        primaryKeyURI: "string",
        primaryKeyUri: "string",
        primaryUserAssignedIdentityId: "string",
        type: "string",
    },
    highAvailability: {
        mode: "string",
        standbyAvailabilityZone: "string",
    },
    identity: {
        type: "string",
        principalId: "string",
        userAssignedIdentities: {
            string: {
                clientId: "string",
                principalId: "string",
            },
        },
    },
    location: "string",
    maintenanceWindow: {
        customWindow: "string",
        dayOfWeek: 0,
        startHour: 0,
        startMinute: 0,
    },
    availabilityZone: "string",
    authConfig: {
        activeDirectoryAuth: "string",
        passwordAuth: "string",
        tenantId: "string",
    },
    backup: {
        backupRetentionDays: 0,
        geoRedundantBackup: "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",
});
Copy
type: azure-native:dbforpostgresql:Server
properties:
    administratorLogin: string
    administratorLoginPassword: string
    authConfig:
        activeDirectoryAuth: string
        passwordAuth: string
        tenantId: string
    availabilityZone: string
    backup:
        backupRetentionDays: 0
        geoRedundantBackup: string
    createMode: string
    dataEncryption:
        geoBackupEncryptionKeyStatus: string
        geoBackupKeyURI: string
        geoBackupUserAssignedIdentityId: string
        primaryEncryptionKeyStatus: string
        primaryKeyURI: 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
Copy

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:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
AdministratorLogin Changes to this property will trigger replacement. string
The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
AdministratorLoginPassword string
The administrator login password (required for server creation).
AuthConfig Pulumi.AzureNative.DBforPostgreSQL.Inputs.AuthConfig
AuthConfig properties of a server.
AvailabilityZone Changes to this property will trigger replacement. string
availability zone information of the server.
Backup Pulumi.AzureNative.DBforPostgreSQL.Inputs.Backup
Backup properties of a server.
CreateMode string | Pulumi.AzureNative.DBforPostgreSQL.CreateMode
The mode to create a new PostgreSQL server.
DataEncryption Pulumi.AzureNative.DBforPostgreSQL.Inputs.DataEncryption
Data encryption properties of a server.
HighAvailability Pulumi.AzureNative.DBforPostgreSQL.Inputs.HighAvailability
High availability properties of a server.
Identity Pulumi.AzureNative.DBforPostgreSQL.Inputs.UserAssignedIdentity
Describes the identity of the application.
Location Changes to this property will trigger replacement. string
The geo-location where the resource lives
MaintenanceWindow Pulumi.AzureNative.DBforPostgreSQL.Inputs.MaintenanceWindow
Maintenance window properties of a server.
Network Pulumi.AzureNative.DBforPostgreSQL.Inputs.Network
Network properties of a server. This Network property is required to be passed only in case you want the server to be Private access server.
PointInTimeUTC Changes to this property will trigger replacement. string
Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'ReviveDropped'.
Replica Pulumi.AzureNative.DBforPostgreSQL.Inputs.Replica
Replica properties of a server. These Replica properties are required to be passed only in case you want to Promote a server.
ReplicationRole string | Pulumi.AzureNative.DBforPostgreSQL.ReplicationRole
Replication role of the server
ServerName Changes to this property will trigger replacement. string
The name of the server.
Sku Pulumi.AzureNative.DBforPostgreSQL.Inputs.Sku
The SKU (pricing tier) of the server.
SourceServerResourceId Changes to this property will trigger replacement. string
The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica' or 'ReviveDropped'. This property is returned only for Replica server
Storage Pulumi.AzureNative.DBforPostgreSQL.Inputs.Storage
Storage properties of a server.
Tags Dictionary<string, string>
Resource tags.
Version string | Pulumi.AzureNative.DBforPostgreSQL.ServerVersion
PostgreSQL Server version.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
AdministratorLogin Changes to this property will trigger replacement. string
The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
AdministratorLoginPassword string
The administrator login password (required for server creation).
AuthConfig AuthConfigArgs
AuthConfig properties of a server.
AvailabilityZone Changes to this property will trigger replacement. string
availability zone information of the server.
Backup BackupTypeArgs
Backup properties of a server.
CreateMode string | CreateMode
The mode to create a new PostgreSQL server.
DataEncryption DataEncryptionArgs
Data encryption properties of a server.
HighAvailability HighAvailabilityArgs
High availability properties of a server.
Identity UserAssignedIdentityArgs
Describes the identity of the application.
Location Changes to this property will trigger replacement. string
The geo-location where the resource lives
MaintenanceWindow MaintenanceWindowArgs
Maintenance window properties of a server.
Network NetworkArgs
Network properties of a server. This Network property is required to be passed only in case you want the server to be Private access server.
PointInTimeUTC Changes to this property will trigger replacement. string
Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'ReviveDropped'.
Replica ReplicaArgs
Replica properties of a server. These Replica properties are required to be passed only in case you want to Promote a server.
ReplicationRole string | ReplicationRole
Replication role of the server
ServerName Changes to this property will trigger replacement. string
The name of the server.
Sku SkuArgs
The SKU (pricing tier) of the server.
SourceServerResourceId Changes to this property will trigger replacement. string
The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica' or 'ReviveDropped'. This property is returned only for Replica server
Storage StorageArgs
Storage properties of a server.
Tags map[string]string
Resource tags.
Version string | ServerVersion
PostgreSQL Server version.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
administratorLogin Changes to this property will trigger replacement. String
The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
administratorLoginPassword String
The administrator login password (required for server creation).
authConfig AuthConfig
AuthConfig properties of a server.
availabilityZone Changes to this property will trigger replacement. String
availability zone information of the server.
backup Backup
Backup properties of a server.
createMode String | CreateMode
The mode to create a new PostgreSQL server.
dataEncryption DataEncryption
Data encryption properties of a server.
highAvailability HighAvailability
High availability properties of a server.
identity UserAssignedIdentity
Describes the identity of the application.
location Changes to this property will trigger replacement. String
The geo-location where the resource lives
maintenanceWindow MaintenanceWindow
Maintenance window properties of a server.
network Network
Network properties of a server. This Network property is required to be passed only in case you want the server to be Private access server.
pointInTimeUTC Changes to this property will trigger replacement. String
Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'ReviveDropped'.
replica Replica
Replica properties of a server. These Replica properties are required to be passed only in case you want to Promote a server.
replicationRole String | ReplicationRole
Replication role of the server
serverName Changes to this property will trigger replacement. String
The name of the server.
sku Sku
The SKU (pricing tier) of the server.
sourceServerResourceId Changes to this property will trigger replacement. String
The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica' or 'ReviveDropped'. This property is returned only for Replica server
storage Storage
Storage properties of a server.
tags Map<String,String>
Resource tags.
version String | ServerVersion
PostgreSQL Server version.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
administratorLogin Changes to this property will trigger replacement. string
The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
administratorLoginPassword string
The administrator login password (required for server creation).
authConfig AuthConfig
AuthConfig properties of a server.
availabilityZone Changes to this property will trigger replacement. string
availability zone information of the server.
backup Backup
Backup properties of a server.
createMode string | CreateMode
The mode to create a new PostgreSQL server.
dataEncryption DataEncryption
Data encryption properties of a server.
highAvailability HighAvailability
High availability properties of a server.
identity UserAssignedIdentity
Describes the identity of the application.
location Changes to this property will trigger replacement. string
The geo-location where the resource lives
maintenanceWindow MaintenanceWindow
Maintenance window properties of a server.
network Network
Network properties of a server. This Network property is required to be passed only in case you want the server to be Private access server.
pointInTimeUTC Changes to this property will trigger replacement. string
Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'ReviveDropped'.
replica Replica
Replica properties of a server. These Replica properties are required to be passed only in case you want to Promote a server.
replicationRole string | ReplicationRole
Replication role of the server
serverName Changes to this property will trigger replacement. string
The name of the server.
sku Sku
The SKU (pricing tier) of the server.
sourceServerResourceId Changes to this property will trigger replacement. string
The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica' or 'ReviveDropped'. This property is returned only for Replica server
storage Storage
Storage properties of a server.
tags {[key: string]: string}
Resource tags.
version string | ServerVersion
PostgreSQL Server version.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
administrator_login Changes to this property will trigger replacement. str
The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
administrator_login_password str
The administrator login password (required for server creation).
auth_config AuthConfigArgs
AuthConfig properties of a server.
availability_zone Changes to this property will trigger replacement. str
availability zone information of the server.
backup BackupArgs
Backup properties of a server.
create_mode str | CreateMode
The mode to create a new PostgreSQL server.
data_encryption DataEncryptionArgs
Data encryption properties of a server.
high_availability HighAvailabilityArgs
High availability properties of a server.
identity UserAssignedIdentityArgs
Describes the identity of the application.
location Changes to this property will trigger replacement. str
The geo-location where the resource lives
maintenance_window MaintenanceWindowArgs
Maintenance window properties of a server.
network NetworkArgs
Network properties of a server. This Network property is required to be passed only in case you want the server to be Private access server.
point_in_time_utc Changes to this property will trigger replacement. str
Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'ReviveDropped'.
replica ReplicaArgs
Replica properties of a server. These Replica properties are required to be passed only in case you want to Promote a server.
replication_role str | ReplicationRole
Replication role of the server
server_name Changes to this property will trigger replacement. str
The name of the server.
sku SkuArgs
The SKU (pricing tier) of the server.
source_server_resource_id Changes to this property will trigger replacement. str
The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica' or 'ReviveDropped'. This property is returned only for Replica server
storage StorageArgs
Storage properties of a server.
tags Mapping[str, str]
Resource tags.
version str | ServerVersion
PostgreSQL Server version.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
administratorLogin Changes to this property will trigger replacement. String
The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
administratorLoginPassword String
The administrator login password (required for server creation).
authConfig Property Map
AuthConfig properties of a server.
availabilityZone Changes to this property will trigger replacement. String
availability zone information of the server.
backup Property Map
Backup properties of a server.
createMode String | "Default" | "Create" | "Update" | "PointInTimeRestore" | "GeoRestore" | "Replica" | "ReviveDropped"
The mode to create a new PostgreSQL server.
dataEncryption Property Map
Data encryption properties of a server.
highAvailability Property Map
High availability properties of a server.
identity Property Map
Describes the identity of the application.
location Changes to this property will trigger replacement. String
The geo-location where the resource lives
maintenanceWindow Property Map
Maintenance window properties of a server.
network Property Map
Network properties of a server. This Network property is required to be passed only in case you want the server to be Private access server.
pointInTimeUTC Changes to this property will trigger replacement. String
Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'ReviveDropped'.
replica Property Map
Replica properties of a server. These Replica properties are required to be passed only in case you want to Promote a server.
replicationRole String | "None" | "Primary" | "AsyncReplica" | "GeoAsyncReplica"
Replication role of the server
serverName Changes to this property will trigger replacement. String
The name of the server.
sku Property Map
The SKU (pricing tier) of the server.
sourceServerResourceId Changes to this property will trigger replacement. String
The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica' or 'ReviveDropped'. This property is returned only for Replica server
storage Property Map
Storage properties of a server.
tags Map<String>
Resource tags.
version String | "16" | "15" | "14" | "13" | "12" | "11"
PostgreSQL Server version.

Outputs

All input properties are implicitly available as output properties. Additionally, the Server resource produces the following output properties:

AzureApiVersion string
The Azure API version of the resource.
FullyQualifiedDomainName string
The fully qualified domain name of a server.
Id string
The provider-assigned unique ID for this managed resource.
MinorVersion string
The minor version of the server.
Name string
The name of the resource
PrivateEndpointConnections List<Pulumi.AzureNative.DBforPostgreSQL.Outputs.PrivateEndpointConnectionResponse>
List of private endpoint connections associated with the specified resource.
ReplicaCapacity int
Replicas allowed for a server.
State string
A state of a server that is visible to user.
SystemData Pulumi.AzureNative.DBforPostgreSQL.Outputs.SystemDataResponse
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"
AzureApiVersion string
The Azure API version of the resource.
FullyQualifiedDomainName string
The fully qualified domain name of a server.
Id string
The provider-assigned unique ID for this managed resource.
MinorVersion string
The minor version of the server.
Name string
The name of the resource
PrivateEndpointConnections []PrivateEndpointConnectionResponse
List of private endpoint connections associated with the specified resource.
ReplicaCapacity int
Replicas allowed for a server.
State string
A state of a server that is visible to user.
SystemData SystemDataResponse
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"
azureApiVersion String
The Azure API version of the resource.
fullyQualifiedDomainName String
The fully qualified domain name of a server.
id String
The provider-assigned unique ID for this managed resource.
minorVersion String
The minor version of the server.
name String
The name of the resource
privateEndpointConnections List<PrivateEndpointConnectionResponse>
List of private endpoint connections associated with the specified resource.
replicaCapacity Integer
Replicas allowed for a server.
state String
A state of a server that is visible to user.
systemData SystemDataResponse
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"
azureApiVersion string
The Azure API version of the resource.
fullyQualifiedDomainName string
The fully qualified domain name of a server.
id string
The provider-assigned unique ID for this managed resource.
minorVersion string
The minor version of the server.
name string
The name of the resource
privateEndpointConnections PrivateEndpointConnectionResponse[]
List of private endpoint connections associated with the specified resource.
replicaCapacity number
Replicas allowed for a server.
state string
A state of a server that is visible to user.
systemData SystemDataResponse
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_version str
The Azure API version of the resource.
fully_qualified_domain_name str
The fully qualified domain name of a server.
id str
The provider-assigned unique ID for this managed resource.
minor_version str
The minor version of the server.
name str
The name of the resource
private_endpoint_connections Sequence[PrivateEndpointConnectionResponse]
List of private endpoint connections associated with the specified resource.
replica_capacity int
Replicas allowed for a server.
state str
A state of a server that is visible to user.
system_data SystemDataResponse
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"
azureApiVersion String
The Azure API version of the resource.
fullyQualifiedDomainName String
The fully qualified domain name of a server.
id String
The provider-assigned unique ID for this managed resource.
minorVersion String
The minor version of the server.
name String
The name of the resource
privateEndpointConnections List<Property Map>
List of private endpoint connections associated with the specified resource.
replicaCapacity Number
Replicas allowed for a server.
state String
A state of a server that is visible to user.
systemData 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

ActiveDirectoryAuth
, ActiveDirectoryAuthArgs

Enabled
enabled
Disabled
disabled
ActiveDirectoryAuthEnabled
enabled
ActiveDirectoryAuthDisabled
disabled
Enabled
enabled
Disabled
disabled
Enabled
enabled
Disabled
disabled
ENABLED
enabled
DISABLED
disabled
"enabled"
enabled
"disabled"
disabled

ActiveDirectoryAuthEnum
, ActiveDirectoryAuthEnumArgs

Enabled
Enabled
Disabled
Disabled
ActiveDirectoryAuthEnumEnabled
Enabled
ActiveDirectoryAuthEnumDisabled
Disabled
Enabled
Enabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
ENABLED
Enabled
DISABLED
Disabled
"Enabled"
Enabled
"Disabled"
Disabled

ArmServerKeyType
, ArmServerKeyTypeArgs

SystemManaged
SystemManaged
AzureKeyVault
AzureKeyVault
ArmServerKeyTypeSystemManaged
SystemManaged
ArmServerKeyTypeAzureKeyVault
AzureKeyVault
SystemManaged
SystemManaged
AzureKeyVault
AzureKeyVault
SystemManaged
SystemManaged
AzureKeyVault
AzureKeyVault
SYSTEM_MANAGED
SystemManaged
AZURE_KEY_VAULT
AzureKeyVault
"SystemManaged"
SystemManaged
"AzureKeyVault"
AzureKeyVault

AuthConfig
, AuthConfigArgs

AuthConfigResponse
, AuthConfigResponseArgs

ActiveDirectoryAuth string
PasswordAuth string
TenantId string
Tenant id of the server.
ActiveDirectoryAuth string
PasswordAuth string
TenantId string
Tenant id of the server.
activeDirectoryAuth String
passwordAuth String
tenantId String
Tenant id of the server.
activeDirectoryAuth string
passwordAuth string
tenantId string
Tenant id of the server.
active_directory_auth str
password_auth str
tenant_id str
Tenant id of the server.
activeDirectoryAuth String
passwordAuth String
tenantId String
Tenant id of the server.

AzureManagedDiskPerformanceTiers
, AzureManagedDiskPerformanceTiersArgs

P1
P1
P2
P2
P3
P3
P4
P4
P6
P6
P10
P10
P15
P15
P20
P20
P30
P30
P40
P40
P50
P50
P60
P60
P70
P70
P80
P80
AzureManagedDiskPerformanceTiersP1
P1
AzureManagedDiskPerformanceTiersP2
P2
AzureManagedDiskPerformanceTiersP3
P3
AzureManagedDiskPerformanceTiersP4
P4
AzureManagedDiskPerformanceTiersP6
P6
AzureManagedDiskPerformanceTiersP10
P10
AzureManagedDiskPerformanceTiersP15
P15
AzureManagedDiskPerformanceTiersP20
P20
AzureManagedDiskPerformanceTiersP30
P30
AzureManagedDiskPerformanceTiersP40
P40
AzureManagedDiskPerformanceTiersP50
P50
AzureManagedDiskPerformanceTiersP60
P60
AzureManagedDiskPerformanceTiersP70
P70
AzureManagedDiskPerformanceTiersP80
P80
P1
P1
P2
P2
P3
P3
P4
P4
P6
P6
P10
P10
P15
P15
P20
P20
P30
P30
P40
P40
P50
P50
P60
P60
P70
P70
P80
P80
P1
P1
P2
P2
P3
P3
P4
P4
P6
P6
P10
P10
P15
P15
P20
P20
P30
P30
P40
P40
P50
P50
P60
P60
P70
P70
P80
P80
P1
P1
P2
P2
P3
P3
P4
P4
P6
P6
P10
P10
P15
P15
P20
P20
P30
P30
P40
P40
P50
P50
P60
P60
P70
P70
P80
P80
"P1"
P1
"P2"
P2
"P3"
P3
"P4"
P4
"P6"
P6
"P10"
P10
"P15"
P15
"P20"
P20
"P30"
P30
"P40"
P40
"P50"
P50
"P60"
P60
"P70"
P70
"P80"
P80

Backup
, BackupArgs

BackupRetentionDays int
Backup retention days for the server.
GeoRedundantBackup string | Pulumi.AzureNative.DBforPostgreSQL.GeoRedundantBackupEnum
A value indicating whether Geo-Redundant backup is enabled on the server.
BackupRetentionDays int
Backup retention days for the server.
GeoRedundantBackup string | GeoRedundantBackupEnum
A value indicating whether Geo-Redundant backup is enabled on the server.
backupRetentionDays Integer
Backup retention days for the server.
geoRedundantBackup String | GeoRedundantBackupEnum
A value indicating whether Geo-Redundant backup is enabled on the server.
backupRetentionDays number
Backup retention days for the server.
geoRedundantBackup string | GeoRedundantBackupEnum
A value indicating whether Geo-Redundant backup is enabled on the server.
backup_retention_days int
Backup retention days for the server.
geo_redundant_backup str | GeoRedundantBackupEnum
A value indicating whether Geo-Redundant backup is enabled on the server.
backupRetentionDays Number
Backup retention days for the server.
geoRedundantBackup String | "Enabled" | "Disabled"
A value indicating whether Geo-Redundant backup is enabled on the server.

BackupResponse
, BackupResponseArgs

EarliestRestoreDate This property is required. string
The earliest restore point time (ISO8601 format) for server.
BackupRetentionDays int
Backup retention days for the server.
GeoRedundantBackup string
A value indicating whether Geo-Redundant backup is enabled on the server.
EarliestRestoreDate This property is required. string
The earliest restore point time (ISO8601 format) for server.
BackupRetentionDays int
Backup retention days for the server.
GeoRedundantBackup string
A value indicating whether Geo-Redundant backup is enabled on the server.
earliestRestoreDate This property is required. String
The earliest restore point time (ISO8601 format) for server.
backupRetentionDays Integer
Backup retention days for the server.
geoRedundantBackup String
A value indicating whether Geo-Redundant backup is enabled on the server.
earliestRestoreDate This property is required. string
The earliest restore point time (ISO8601 format) for server.
backupRetentionDays number
Backup retention days for the server.
geoRedundantBackup string
A value indicating whether Geo-Redundant backup is enabled on the server.
earliest_restore_date This property is required. str
The earliest restore point time (ISO8601 format) for server.
backup_retention_days int
Backup retention days for the server.
geo_redundant_backup str
A value indicating whether Geo-Redundant backup is enabled on the server.
earliestRestoreDate This property is required. String
The earliest restore point time (ISO8601 format) for server.
backupRetentionDays Number
Backup retention days for the server.
geoRedundantBackup String
A value indicating whether Geo-Redundant backup is enabled on the server.

CreateMode
, CreateModeArgs

Default
Default
Create
Create
Update
Update
PointInTimeRestore
PointInTimeRestore
GeoRestore
GeoRestore
Replica
Replica
ReviveDropped
ReviveDropped
CreateModeDefault
Default
CreateModeCreate
Create
CreateModeUpdate
Update
CreateModePointInTimeRestore
PointInTimeRestore
CreateModeGeoRestore
GeoRestore
CreateModeReplica
Replica
CreateModeReviveDropped
ReviveDropped
Default
Default
Create
Create
Update
Update
PointInTimeRestore
PointInTimeRestore
GeoRestore
GeoRestore
Replica
Replica
ReviveDropped
ReviveDropped
Default
Default
Create
Create
Update
Update
PointInTimeRestore
PointInTimeRestore
GeoRestore
GeoRestore
Replica
Replica
ReviveDropped
ReviveDropped
DEFAULT
Default
CREATE
Create
UPDATE
Update
POINT_IN_TIME_RESTORE
PointInTimeRestore
GEO_RESTORE
GeoRestore
REPLICA
Replica
REVIVE_DROPPED
ReviveDropped
"Default"
Default
"Create"
Create
"Update"
Update
"PointInTimeRestore"
PointInTimeRestore
"GeoRestore"
GeoRestore
"Replica"
Replica
"ReviveDropped"
ReviveDropped

DataEncryption
, DataEncryptionArgs

GeoBackupEncryptionKeyStatus string | Pulumi.AzureNative.DBforPostgreSQL.KeyStatusEnum
Geo-backup encryption key status for Data encryption enabled server.
GeoBackupKeyURI string
URI for the key in keyvault for data encryption for geo-backup of server.
GeoBackupUserAssignedIdentityId string
Resource Id for the User assigned identity to be used for data encryption for geo-backup of server.
PrimaryEncryptionKeyStatus string | Pulumi.AzureNative.DBforPostgreSQL.KeyStatusEnum
Primary encryption key status for Data encryption enabled server.
PrimaryKeyURI string
URI for the key in keyvault for data encryption of the primary server.
PrimaryKeyUri string
URI for the key in keyvault for data encryption of the primary server.
PrimaryUserAssignedIdentityId string
Resource Id for the User assigned identity to be used for data encryption of the primary server.
Type string | Pulumi.AzureNative.DBforPostgreSQL.DataEncryptionType | Pulumi.AzureNative.DBforPostgreSQL.ArmServerKeyType
GeoBackupEncryptionKeyStatus string | KeyStatusEnum
Geo-backup encryption key status for Data encryption enabled server.
GeoBackupKeyURI string
URI for the key in keyvault for data encryption for geo-backup of server.
GeoBackupUserAssignedIdentityId string
Resource Id for the User assigned identity to be used for data encryption for geo-backup of server.
PrimaryEncryptionKeyStatus string | KeyStatusEnum
Primary encryption key status for Data encryption enabled server.
PrimaryKeyURI string
URI for the key in keyvault for data encryption of the primary server.
PrimaryKeyUri string
URI for the key in keyvault for data encryption of the primary server.
PrimaryUserAssignedIdentityId string
Resource Id for the User assigned identity to be used for data encryption of the primary server.
Type string | DataEncryptionType | ArmServerKeyType
geoBackupEncryptionKeyStatus String | KeyStatusEnum
Geo-backup encryption key status for Data encryption enabled server.
geoBackupKeyURI String
URI for the key in keyvault for data encryption for geo-backup of server.
geoBackupUserAssignedIdentityId String
Resource Id for the User assigned identity to be used for data encryption for geo-backup of server.
primaryEncryptionKeyStatus String | KeyStatusEnum
Primary encryption key status for Data encryption enabled server.
primaryKeyURI String
URI for the key in keyvault for data encryption of the primary server.
primaryKeyUri String
URI for the key in keyvault for data encryption of the primary server.
primaryUserAssignedIdentityId String
Resource Id for the User assigned identity to be used for data encryption of the primary server.
type String | DataEncryptionType | ArmServerKeyType
geoBackupEncryptionKeyStatus string | KeyStatusEnum
Geo-backup encryption key status for Data encryption enabled server.
geoBackupKeyURI string
URI for the key in keyvault for data encryption for geo-backup of server.
geoBackupUserAssignedIdentityId string
Resource Id for the User assigned identity to be used for data encryption for geo-backup of server.
primaryEncryptionKeyStatus string | KeyStatusEnum
Primary encryption key status for Data encryption enabled server.
primaryKeyURI string
URI for the key in keyvault for data encryption of the primary server.
primaryKeyUri string
URI for the key in keyvault for data encryption of the primary server.
primaryUserAssignedIdentityId string
Resource Id for the User assigned identity to be used for data encryption of the primary server.
type string | DataEncryptionType | ArmServerKeyType
geo_backup_encryption_key_status str | KeyStatusEnum
Geo-backup encryption key status for Data encryption enabled server.
geo_backup_key_uri str
URI for the key in keyvault for data encryption for geo-backup of server.
geo_backup_user_assigned_identity_id str
Resource Id for the User assigned identity to be used for data encryption for geo-backup of server.
primary_encryption_key_status str | KeyStatusEnum
Primary encryption key status for Data encryption enabled server.
primary_key_uri str
URI for the key in keyvault for data encryption of the primary server.
primary_key_uri str
URI for the key in keyvault for data encryption of the primary server.
primary_user_assigned_identity_id str
Resource Id for the User assigned identity to be used for data encryption of the primary server.
type str | DataEncryptionType | ArmServerKeyType
geoBackupEncryptionKeyStatus String | "Valid" | "Invalid"
Geo-backup encryption key status for Data encryption enabled server.
geoBackupKeyURI String
URI for the key in keyvault for data encryption for geo-backup of server.
geoBackupUserAssignedIdentityId String
Resource Id for the User assigned identity to be used for data encryption for geo-backup of server.
primaryEncryptionKeyStatus String | "Valid" | "Invalid"
Primary encryption key status for Data encryption enabled server.
primaryKeyURI String
URI for the key in keyvault for data encryption of the primary server.
primaryKeyUri String
URI for the key in keyvault for data encryption of the primary server.
primaryUserAssignedIdentityId String
Resource Id for the User assigned identity to be used for data encryption of the primary server.
type String | "AzureKeyVault" | "SystemAssigned" | "SystemManaged" | "AzureKeyVault"

DataEncryptionResponse
, DataEncryptionResponseArgs

GeoBackupEncryptionKeyStatus string
Geo-backup encryption key status for Data encryption enabled server.
GeoBackupKeyURI string
URI for the key in keyvault for data encryption for geo-backup of server.
GeoBackupUserAssignedIdentityId string
Resource Id for the User assigned identity to be used for data encryption for geo-backup of server.
PrimaryEncryptionKeyStatus string
Primary encryption key status for Data encryption enabled server.
PrimaryKeyURI string
URI for the key in keyvault for data encryption of the primary server.
PrimaryKeyUri string
URI for the key in keyvault for data encryption of the primary server.
PrimaryUserAssignedIdentityId string
Resource Id for the User assigned identity to be used for data encryption of the primary server.
Type string
GeoBackupEncryptionKeyStatus string
Geo-backup encryption key status for Data encryption enabled server.
GeoBackupKeyURI string
URI for the key in keyvault for data encryption for geo-backup of server.
GeoBackupUserAssignedIdentityId string
Resource Id for the User assigned identity to be used for data encryption for geo-backup of server.
PrimaryEncryptionKeyStatus string
Primary encryption key status for Data encryption enabled server.
PrimaryKeyURI string
URI for the key in keyvault for data encryption of the primary server.
PrimaryKeyUri string
URI for the key in keyvault for data encryption of the primary server.
PrimaryUserAssignedIdentityId string
Resource Id for the User assigned identity to be used for data encryption of the primary server.
Type string
geoBackupEncryptionKeyStatus String
Geo-backup encryption key status for Data encryption enabled server.
geoBackupKeyURI String
URI for the key in keyvault for data encryption for geo-backup of server.
geoBackupUserAssignedIdentityId String
Resource Id for the User assigned identity to be used for data encryption for geo-backup of server.
primaryEncryptionKeyStatus String
Primary encryption key status for Data encryption enabled server.
primaryKeyURI String
URI for the key in keyvault for data encryption of the primary server.
primaryKeyUri String
URI for the key in keyvault for data encryption of the primary server.
primaryUserAssignedIdentityId String
Resource Id for the User assigned identity to be used for data encryption of the primary server.
type String
geoBackupEncryptionKeyStatus string
Geo-backup encryption key status for Data encryption enabled server.
geoBackupKeyURI string
URI for the key in keyvault for data encryption for geo-backup of server.
geoBackupUserAssignedIdentityId string
Resource Id for the User assigned identity to be used for data encryption for geo-backup of server.
primaryEncryptionKeyStatus string
Primary encryption key status for Data encryption enabled server.
primaryKeyURI string
URI for the key in keyvault for data encryption of the primary server.
primaryKeyUri string
URI for the key in keyvault for data encryption of the primary server.
primaryUserAssignedIdentityId string
Resource Id for the User assigned identity to be used for data encryption of the primary server.
type string
geo_backup_encryption_key_status str
Geo-backup encryption key status for Data encryption enabled server.
geo_backup_key_uri str
URI for the key in keyvault for data encryption for geo-backup of server.
geo_backup_user_assigned_identity_id str
Resource Id for the User assigned identity to be used for data encryption for geo-backup of server.
primary_encryption_key_status str
Primary encryption key status for Data encryption enabled server.
primary_key_uri str
URI for the key in keyvault for data encryption of the primary server.
primary_key_uri str
URI for the key in keyvault for data encryption of the primary server.
primary_user_assigned_identity_id str
Resource Id for the User assigned identity to be used for data encryption of the primary server.
type str
geoBackupEncryptionKeyStatus String
Geo-backup encryption key status for Data encryption enabled server.
geoBackupKeyURI String
URI for the key in keyvault for data encryption for geo-backup of server.
geoBackupUserAssignedIdentityId String
Resource Id for the User assigned identity to be used for data encryption for geo-backup of server.
primaryEncryptionKeyStatus String
Primary encryption key status for Data encryption enabled server.
primaryKeyURI String
URI for the key in keyvault for data encryption of the primary server.
primaryKeyUri String
URI for the key in keyvault for data encryption of the primary server.
primaryUserAssignedIdentityId String
Resource Id for the User assigned identity to be used for data encryption of the primary server.
type String

DataEncryptionType
, DataEncryptionTypeArgs

AzureKeyVault
AzureKeyVault
SystemAssigned
SystemAssigned
DataEncryptionTypeAzureKeyVault
AzureKeyVault
DataEncryptionTypeSystemAssigned
SystemAssigned
AzureKeyVault
AzureKeyVault
SystemAssigned
SystemAssigned
AzureKeyVault
AzureKeyVault
SystemAssigned
SystemAssigned
AZURE_KEY_VAULT
AzureKeyVault
SYSTEM_ASSIGNED
SystemAssigned
"AzureKeyVault"
AzureKeyVault
"SystemAssigned"
SystemAssigned

GeoRedundantBackupEnum
, GeoRedundantBackupEnumArgs

Enabled
Enabled
Disabled
Disabled
GeoRedundantBackupEnumEnabled
Enabled
GeoRedundantBackupEnumDisabled
Disabled
Enabled
Enabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
ENABLED
Enabled
DISABLED
Disabled
"Enabled"
Enabled
"Disabled"
Disabled

HighAvailability
, HighAvailabilityArgs

Mode string | Pulumi.AzureNative.DBforPostgreSQL.HighAvailabilityMode
The HA mode for the server.
StandbyAvailabilityZone string
availability zone information of the standby.
Mode string | HighAvailabilityMode
The HA mode for the server.
StandbyAvailabilityZone string
availability zone information of the standby.
mode String | HighAvailabilityMode
The HA mode for the server.
standbyAvailabilityZone String
availability zone information of the standby.
mode string | HighAvailabilityMode
The HA mode for the server.
standbyAvailabilityZone string
availability zone information of the standby.
mode str | HighAvailabilityMode
The HA mode for the server.
standby_availability_zone str
availability zone information of the standby.
mode String | "Disabled" | "ZoneRedundant" | "SameZone"
The HA mode for the server.
standbyAvailabilityZone String
availability zone information of the standby.

HighAvailabilityMode
, HighAvailabilityModeArgs

Disabled
Disabled
ZoneRedundant
ZoneRedundant
SameZone
SameZone
HighAvailabilityModeDisabled
Disabled
HighAvailabilityModeZoneRedundant
ZoneRedundant
HighAvailabilityModeSameZone
SameZone
Disabled
Disabled
ZoneRedundant
ZoneRedundant
SameZone
SameZone
Disabled
Disabled
ZoneRedundant
ZoneRedundant
SameZone
SameZone
DISABLED
Disabled
ZONE_REDUNDANT
ZoneRedundant
SAME_ZONE
SameZone
"Disabled"
Disabled
"ZoneRedundant"
ZoneRedundant
"SameZone"
SameZone

HighAvailabilityResponse
, HighAvailabilityResponseArgs

State This property is required. string
A state of a HA server that is visible to user.
Mode string
The HA mode for the server.
StandbyAvailabilityZone string
availability zone information of the standby.
State This property is required. string
A state of a HA server that is visible to user.
Mode string
The HA mode for the server.
StandbyAvailabilityZone string
availability zone information of the standby.
state This property is required. String
A state of a HA server that is visible to user.
mode String
The HA mode for the server.
standbyAvailabilityZone String
availability zone information of the standby.
state This property is required. string
A state of a HA server that is visible to user.
mode string
The HA mode for the server.
standbyAvailabilityZone string
availability zone information of the standby.
state This property is required. str
A state of a HA server that is visible to user.
mode str
The HA mode for the server.
standby_availability_zone str
availability zone information of the standby.
state This property is required. String
A state of a HA server that is visible to user.
mode String
The HA mode for the server.
standbyAvailabilityZone String
availability zone information of the standby.

IdentityType
, IdentityTypeArgs

UserAssigned
UserAssigned
SystemAssigned
SystemAssigned
IdentityTypeUserAssigned
UserAssigned
IdentityTypeSystemAssigned
SystemAssigned
UserAssigned
UserAssigned
SystemAssigned
SystemAssigned
UserAssigned
UserAssigned
SystemAssigned
SystemAssigned
USER_ASSIGNED
UserAssigned
SYSTEM_ASSIGNED
SystemAssigned
"UserAssigned"
UserAssigned
"SystemAssigned"
SystemAssigned

KeyStatusEnum
, KeyStatusEnumArgs

Valid
Valid
Invalid
Invalid
KeyStatusEnumValid
Valid
KeyStatusEnumInvalid
Invalid
Valid
Valid
Invalid
Invalid
Valid
Valid
Invalid
Invalid
VALID
Valid
INVALID
Invalid
"Valid"
Valid
"Invalid"
Invalid

MaintenanceWindow
, MaintenanceWindowArgs

CustomWindow string
Indicates whether custom maintenance window is enabled or not.
DayOfWeek int
Preferred day of the week for maintenance window.
StartHour int
Start hour within preferred day of the week for maintenance window.
StartMinute int
Start minute within the start hour for maintenance window.
CustomWindow string
Indicates whether custom maintenance window is enabled or not.
DayOfWeek int
Preferred day of the week for maintenance window.
StartHour int
Start hour within preferred day of the week for maintenance window.
StartMinute int
Start minute within the start hour for maintenance window.
customWindow String
Indicates whether custom maintenance window is enabled or not.
dayOfWeek Integer
Preferred day of the week for maintenance window.
startHour Integer
Start hour within preferred day of the week for maintenance window.
startMinute Integer
Start minute within the start hour for maintenance window.
customWindow string
Indicates whether custom maintenance window is enabled or not.
dayOfWeek number
Preferred day of the week for maintenance window.
startHour number
Start hour within preferred day of the week for maintenance window.
startMinute number
Start minute within the start hour for maintenance window.
custom_window str
Indicates whether custom maintenance window is enabled or not.
day_of_week int
Preferred day of the week for maintenance window.
start_hour int
Start hour within preferred day of the week for maintenance window.
start_minute int
Start minute within the start hour for maintenance window.
customWindow String
Indicates whether custom maintenance window is enabled or not.
dayOfWeek Number
Preferred day of the week for maintenance window.
startHour Number
Start hour within preferred day of the week for maintenance window.
startMinute Number
Start minute within the start hour for maintenance window.

MaintenanceWindowResponse
, MaintenanceWindowResponseArgs

CustomWindow string
Indicates whether custom maintenance window is enabled or not.
DayOfWeek int
Preferred day of the week for maintenance window.
StartHour int
Start hour within preferred day of the week for maintenance window.
StartMinute int
Start minute within the start hour for maintenance window.
CustomWindow string
Indicates whether custom maintenance window is enabled or not.
DayOfWeek int
Preferred day of the week for maintenance window.
StartHour int
Start hour within preferred day of the week for maintenance window.
StartMinute int
Start minute within the start hour for maintenance window.
customWindow String
Indicates whether custom maintenance window is enabled or not.
dayOfWeek Integer
Preferred day of the week for maintenance window.
startHour Integer
Start hour within preferred day of the week for maintenance window.
startMinute Integer
Start minute within the start hour for maintenance window.
customWindow string
Indicates whether custom maintenance window is enabled or not.
dayOfWeek number
Preferred day of the week for maintenance window.
startHour number
Start hour within preferred day of the week for maintenance window.
startMinute number
Start minute within the start hour for maintenance window.
custom_window str
Indicates whether custom maintenance window is enabled or not.
day_of_week int
Preferred day of the week for maintenance window.
start_hour int
Start hour within preferred day of the week for maintenance window.
start_minute int
Start minute within the start hour for maintenance window.
customWindow String
Indicates whether custom maintenance window is enabled or not.
dayOfWeek Number
Preferred day of the week for maintenance window.
startHour Number
Start hour within preferred day of the week for maintenance window.
startMinute Number
Start minute within the start hour for maintenance window.

Network
, NetworkArgs

DelegatedSubnetResourceId string
Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
PrivateDnsZoneArmResourceId string
Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
PublicNetworkAccess string | Pulumi.AzureNative.DBforPostgreSQL.ServerPublicNetworkAccessState
public network access is enabled or not
DelegatedSubnetResourceId string
Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
PrivateDnsZoneArmResourceId string
Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
PublicNetworkAccess string | ServerPublicNetworkAccessState
public network access is enabled or not
delegatedSubnetResourceId String
Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
privateDnsZoneArmResourceId String
Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
publicNetworkAccess String | ServerPublicNetworkAccessState
public network access is enabled or not
delegatedSubnetResourceId string
Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
privateDnsZoneArmResourceId string
Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
publicNetworkAccess string | ServerPublicNetworkAccessState
public network access is enabled or not
delegated_subnet_resource_id str
Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
private_dns_zone_arm_resource_id str
Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
public_network_access str | ServerPublicNetworkAccessState
public network access is enabled or not
delegatedSubnetResourceId String
Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
privateDnsZoneArmResourceId String
Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
publicNetworkAccess String | "Enabled" | "Disabled"
public network access is enabled or not

NetworkResponse
, NetworkResponseArgs

DelegatedSubnetResourceId string
Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
PrivateDnsZoneArmResourceId string
Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
PublicNetworkAccess string
public network access is enabled or not
DelegatedSubnetResourceId string
Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
PrivateDnsZoneArmResourceId string
Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
PublicNetworkAccess string
public network access is enabled or not
delegatedSubnetResourceId String
Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
privateDnsZoneArmResourceId String
Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
publicNetworkAccess String
public network access is enabled or not
delegatedSubnetResourceId string
Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
privateDnsZoneArmResourceId string
Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
publicNetworkAccess string
public network access is enabled or not
delegated_subnet_resource_id str
Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
private_dns_zone_arm_resource_id str
Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
public_network_access str
public network access is enabled or not
delegatedSubnetResourceId String
Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
privateDnsZoneArmResourceId String
Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
publicNetworkAccess String
public network access is enabled or not

PasswordAuth
, PasswordAuthArgs

Enabled
enabled
Disabled
disabled
PasswordAuthEnabled
enabled
PasswordAuthDisabled
disabled
Enabled
enabled
Disabled
disabled
Enabled
enabled
Disabled
disabled
ENABLED
enabled
DISABLED
disabled
"enabled"
enabled
"disabled"
disabled

PasswordAuthEnum
, PasswordAuthEnumArgs

Enabled
Enabled
Disabled
Disabled
PasswordAuthEnumEnabled
Enabled
PasswordAuthEnumDisabled
Disabled
Enabled
Enabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
ENABLED
Enabled
DISABLED
Disabled
"Enabled"
Enabled
"Disabled"
Disabled

PrivateEndpointConnectionResponse
, PrivateEndpointConnectionResponseArgs

GroupIds This property is required. List<string>
The group ids for the private endpoint resource.
Id This property is required. string
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
Name This property is required. string
The name of the resource
PrivateLinkServiceConnectionState This property is required. Pulumi.AzureNative.DBforPostgreSQL.Inputs.PrivateLinkServiceConnectionStateResponse
A collection of information about the state of the connection between service consumer and provider.
ProvisioningState This property is required. string
The provisioning state of the private endpoint connection resource.
SystemData This property is required. Pulumi.AzureNative.DBforPostgreSQL.Inputs.SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type This property is required. string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
PrivateEndpoint Pulumi.AzureNative.DBforPostgreSQL.Inputs.PrivateEndpointResponse
The private endpoint resource.
GroupIds This property is required. []string
The group ids for the private endpoint resource.
Id This property is required. string
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
Name This property is required. string
The name of the resource
PrivateLinkServiceConnectionState This property is required. PrivateLinkServiceConnectionStateResponse
A collection of information about the state of the connection between service consumer and provider.
ProvisioningState This property is required. string
The provisioning state of the private endpoint connection resource.
SystemData This property is required. SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type This property is required. string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
PrivateEndpoint PrivateEndpointResponse
The private endpoint resource.
groupIds This property is required. List<String>
The group ids for the private endpoint resource.
id This property is required. String
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
name This property is required. String
The name of the resource
privateLinkServiceConnectionState This property is required. PrivateLinkServiceConnectionStateResponse
A collection of information about the state of the connection between service consumer and provider.
provisioningState This property is required. String
The provisioning state of the private endpoint connection resource.
systemData This property is required. SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type This property is required. String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
privateEndpoint PrivateEndpointResponse
The private endpoint resource.
groupIds This property is required. string[]
The group ids for the private endpoint resource.
id This property is required. string
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
name This property is required. string
The name of the resource
privateLinkServiceConnectionState This property is required. PrivateLinkServiceConnectionStateResponse
A collection of information about the state of the connection between service consumer and provider.
provisioningState This property is required. string
The provisioning state of the private endpoint connection resource.
systemData This property is required. SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type This property is required. string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
privateEndpoint PrivateEndpointResponse
The private endpoint resource.
group_ids This property is required. Sequence[str]
The group ids for the private endpoint resource.
id This property is required. str
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
name This property is required. str
The name of the resource
private_link_service_connection_state This property is required. PrivateLinkServiceConnectionStateResponse
A collection of information about the state of the connection between service consumer and provider.
provisioning_state This property is required. str
The provisioning state of the private endpoint connection resource.
system_data This property is required. SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type This property is required. str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
private_endpoint PrivateEndpointResponse
The private endpoint resource.
groupIds This property is required. List<String>
The group ids for the private endpoint resource.
id This property is required. String
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
name This property is required. String
The name of the resource
privateLinkServiceConnectionState This property is required. Property Map
A collection of information about the state of the connection between service consumer and provider.
provisioningState This property is required. String
The provisioning state of the private endpoint connection resource.
systemData This property is required. Property Map
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type This property is required. String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
privateEndpoint Property Map
The private endpoint resource.

PrivateEndpointResponse
, PrivateEndpointResponseArgs

Id This property is required. string
The ARM identifier for private endpoint.
Id This property is required. string
The ARM identifier for private endpoint.
id This property is required. String
The ARM identifier for private endpoint.
id This property is required. string
The ARM identifier for private endpoint.
id This property is required. str
The ARM identifier for private endpoint.
id This property is required. String
The ARM identifier for private endpoint.

PrivateLinkServiceConnectionStateResponse
, PrivateLinkServiceConnectionStateResponseArgs

ActionsRequired 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.
ActionsRequired 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.
actionsRequired 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.
actionsRequired 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.
actionsRequired 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
standalone
Switchover
switchover
ReadReplicaPromoteModeStandalone
standalone
ReadReplicaPromoteModeSwitchover
switchover
Standalone
standalone
Switchover
switchover
Standalone
standalone
Switchover
switchover
STANDALONE
standalone
SWITCHOVER
switchover
"standalone"
standalone
"switchover"
switchover

Replica
, ReplicaArgs

PromoteMode string | Pulumi.AzureNative.DBforPostgreSQL.ReadReplicaPromoteMode
Sets the promote mode for a replica server. This is a write only property.
PromoteOption string | Pulumi.AzureNative.DBforPostgreSQL.ReplicationPromoteOption
Sets the promote options for a replica server. This is a write only property.
Role string | Pulumi.AzureNative.DBforPostgreSQL.ReplicationRole
Used to indicate role of the server in replication set.
PromoteMode string | ReadReplicaPromoteMode
Sets the promote mode for a replica server. This is a write only property.
PromoteOption string | ReplicationPromoteOption
Sets the promote options for a replica server. This is a write only property.
Role string | ReplicationRole
Used to indicate role of the server in replication set.
promoteMode String | ReadReplicaPromoteMode
Sets the promote mode for a replica server. This is a write only property.
promoteOption String | ReplicationPromoteOption
Sets the promote options for a replica server. This is a write only property.
role String | ReplicationRole
Used to indicate role of the server in replication set.
promoteMode string | ReadReplicaPromoteMode
Sets the promote mode for a replica server. This is a write only property.
promoteOption string | ReplicationPromoteOption
Sets the promote options for a replica server. This is a write only property.
role string | ReplicationRole
Used to indicate role of the server in replication set.
promote_mode str | ReadReplicaPromoteMode
Sets the promote mode for a replica server. This is a write only property.
promote_option str | ReplicationPromoteOption
Sets the promote options for a replica server. This is a write only property.
role str | ReplicationRole
Used to indicate role of the server in replication set.
promoteMode String | "standalone" | "switchover"
Sets the promote mode for a replica server. This is a write only property.
promoteOption String | "planned" | "forced"
Sets the promote options for a replica server. This is a write only property.
role String | "None" | "Primary" | "AsyncReplica" | "GeoAsyncReplica"
Used to indicate role of the server in replication set.

ReplicaResponse
, ReplicaResponseArgs

Capacity This property is required. int
Replicas allowed for a server.
ReplicationState This property is required. string
Gets the replication state of a replica server. This property is returned only for replicas api call. Supported values are Active, Catchup, Provisioning, Updating, Broken, Reconfiguring
Role string
Used to indicate role of the server in replication set.
Capacity This property is required. int
Replicas allowed for a server.
ReplicationState This property is required. string
Gets the replication state of a replica server. This property is returned only for replicas api call. Supported values are Active, Catchup, Provisioning, Updating, Broken, Reconfiguring
Role string
Used to indicate role of the server in replication set.
capacity This property is required. Integer
Replicas allowed for a server.
replicationState This property is required. String
Gets the replication state of a replica server. This property is returned only for replicas api call. Supported values are Active, Catchup, Provisioning, Updating, Broken, Reconfiguring
role String
Used to indicate role of the server in replication set.
capacity This property is required. number
Replicas allowed for a server.
replicationState This property is required. string
Gets the replication state of a replica server. This property is returned only for replicas api call. Supported values are Active, Catchup, Provisioning, Updating, Broken, Reconfiguring
role string
Used to indicate role of the server in replication set.
capacity This property is required. int
Replicas allowed for a server.
replication_state This property is required. str
Gets the replication state of a replica server. This property is returned only for replicas api call. Supported values are Active, Catchup, Provisioning, Updating, Broken, Reconfiguring
role str
Used to indicate role of the server in replication set.
capacity This property is required. Number
Replicas allowed for a server.
replicationState This property is required. String
Gets the replication state of a replica server. This property is returned only for replicas api call. Supported values are Active, Catchup, Provisioning, Updating, Broken, Reconfiguring
role String
Used to indicate role of the server in replication set.

ReplicationPromoteOption
, ReplicationPromoteOptionArgs

Planned
planned
Forced
forced
ReplicationPromoteOptionPlanned
planned
ReplicationPromoteOptionForced
forced
Planned
planned
Forced
forced
Planned
planned
Forced
forced
PLANNED
planned
FORCED
forced
"planned"
planned
"forced"
forced

ReplicationRole
, ReplicationRoleArgs

None
None
Primary
Primary
AsyncReplica
AsyncReplica
GeoAsyncReplica
GeoAsyncReplica
ReplicationRoleNone
None
ReplicationRolePrimary
Primary
ReplicationRoleAsyncReplica
AsyncReplica
ReplicationRoleGeoAsyncReplica
GeoAsyncReplica
None
None
Primary
Primary
AsyncReplica
AsyncReplica
GeoAsyncReplica
GeoAsyncReplica
None
None
Primary
Primary
AsyncReplica
AsyncReplica
GeoAsyncReplica
GeoAsyncReplica
NONE
None
PRIMARY
Primary
ASYNC_REPLICA
AsyncReplica
GEO_ASYNC_REPLICA
GeoAsyncReplica
"None"
None
"Primary"
Primary
"AsyncReplica"
AsyncReplica
"GeoAsyncReplica"
GeoAsyncReplica

ServerPublicNetworkAccessState
, ServerPublicNetworkAccessStateArgs

Enabled
Enabled
Disabled
Disabled
ServerPublicNetworkAccessStateEnabled
Enabled
ServerPublicNetworkAccessStateDisabled
Disabled
Enabled
Enabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
ENABLED
Enabled
DISABLED
Disabled
"Enabled"
Enabled
"Disabled"
Disabled

ServerVersion
, ServerVersionArgs

ServerVersion_16
16
ServerVersion_15
15
ServerVersion_14
14
ServerVersion_13
13
ServerVersion_12
12
ServerVersion_11
11
ServerVersion_16
16
ServerVersion_15
15
ServerVersion_14
14
ServerVersion_13
13
ServerVersion_12
12
ServerVersion_11
11
_16
16
_15
15
_14
14
_13
13
_12
12
_11
11
ServerVersion_16
16
ServerVersion_15
15
ServerVersion_14
14
ServerVersion_13
13
ServerVersion_12
12
ServerVersion_11
11
SERVER_VERSION_16
16
SERVER_VERSION_15
15
SERVER_VERSION_14
14
SERVER_VERSION_13
13
SERVER_VERSION_12
12
SERVER_VERSION_11
11
"16"
16
"15"
15
"14"
14
"13"
13
"12"
12
"11"
11

Sku
, SkuArgs

Name This property is required. string
The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3.
Tier This property is required. string | Pulumi.AzureNative.DBforPostgreSQL.SkuTier
The tier of the particular SKU, e.g. Burstable.
Name This property is required. string
The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3.
Tier This property is required. string | SkuTier
The tier of the particular SKU, e.g. Burstable.
name This property is required. String
The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3.
tier This property is required. String | SkuTier
The tier of the particular SKU, e.g. Burstable.
name This property is required. string
The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3.
tier This property is required. string | SkuTier
The tier of the particular SKU, e.g. Burstable.
name This property is required. str
The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3.
tier This property is required. str | SkuTier
The tier of the particular SKU, e.g. Burstable.
name This property is required. String
The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3.
tier This property is required. String | "Burstable" | "GeneralPurpose" | "MemoryOptimized"
The tier of the particular SKU, e.g. Burstable.

SkuResponse
, SkuResponseArgs

Name This property is required. string
The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3.
Tier This property is required. string
The tier of the particular SKU, e.g. Burstable.
Name This property is required. string
The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3.
Tier This property is required. string
The tier of the particular SKU, e.g. Burstable.
name This property is required. String
The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3.
tier This property is required. String
The tier of the particular SKU, e.g. Burstable.
name This property is required. string
The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3.
tier This property is required. string
The tier of the particular SKU, e.g. Burstable.
name This property is required. str
The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3.
tier This property is required. str
The tier of the particular SKU, e.g. Burstable.
name This property is required. String
The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3.
tier This property is required. String
The tier of the particular SKU, e.g. Burstable.

SkuTier
, SkuTierArgs

Burstable
Burstable
GeneralPurpose
GeneralPurpose
MemoryOptimized
MemoryOptimized
SkuTierBurstable
Burstable
SkuTierGeneralPurpose
GeneralPurpose
SkuTierMemoryOptimized
MemoryOptimized
Burstable
Burstable
GeneralPurpose
GeneralPurpose
MemoryOptimized
MemoryOptimized
Burstable
Burstable
GeneralPurpose
GeneralPurpose
MemoryOptimized
MemoryOptimized
BURSTABLE
Burstable
GENERAL_PURPOSE
GeneralPurpose
MEMORY_OPTIMIZED
MemoryOptimized
"Burstable"
Burstable
"GeneralPurpose"
GeneralPurpose
"MemoryOptimized"
MemoryOptimized

Storage
, StorageArgs

AutoGrow string | Pulumi.AzureNative.DBforPostgreSQL.StorageAutoGrow
Flag to enable / disable Storage Auto grow for flexible server.
Iops int
Storage tier IOPS quantity. This property is required to be set for storage Type PremiumV2_LRS
StorageSizeGB int
Max storage allowed for a server.
Throughput int
Storage throughput for the server. This is required to be set for storage Type PremiumV2_LRS
Tier string | Pulumi.AzureNative.DBforPostgreSQL.AzureManagedDiskPerformanceTiers
Name of storage tier for IOPS.
Type string | Pulumi.AzureNative.DBforPostgreSQL.StorageType
Storage type for the server. Allowed values are Premium_LRS and PremiumV2_LRS, and default is Premium_LRS if not specified
AutoGrow string | StorageAutoGrow
Flag to enable / disable Storage Auto grow for flexible server.
Iops int
Storage tier IOPS quantity. This property is required to be set for storage Type PremiumV2_LRS
StorageSizeGB int
Max storage allowed for a server.
Throughput int
Storage throughput for the server. This is required to be set for storage Type PremiumV2_LRS
Tier string | AzureManagedDiskPerformanceTiers
Name of storage tier for IOPS.
Type string | StorageType
Storage type for the server. Allowed values are Premium_LRS and PremiumV2_LRS, and default is Premium_LRS if not specified
autoGrow String | StorageAutoGrow
Flag to enable / disable Storage Auto grow for flexible server.
iops Integer
Storage tier IOPS quantity. This property is required to be set for storage Type PremiumV2_LRS
storageSizeGB Integer
Max storage allowed for a server.
throughput Integer
Storage throughput for the server. This is required to be set for storage Type PremiumV2_LRS
tier String | AzureManagedDiskPerformanceTiers
Name of storage tier for IOPS.
type String | StorageType
Storage type for the server. Allowed values are Premium_LRS and PremiumV2_LRS, and default is Premium_LRS if not specified
autoGrow string | StorageAutoGrow
Flag to enable / disable Storage Auto grow for flexible server.
iops number
Storage tier IOPS quantity. This property is required to be set for storage Type PremiumV2_LRS
storageSizeGB number
Max storage allowed for a server.
throughput number
Storage throughput for the server. This is required to be set for storage Type PremiumV2_LRS
tier string | AzureManagedDiskPerformanceTiers
Name of storage tier for IOPS.
type string | StorageType
Storage type for the server. Allowed values are Premium_LRS and PremiumV2_LRS, and default is Premium_LRS if not specified
auto_grow str | StorageAutoGrow
Flag to enable / disable Storage Auto grow for flexible server.
iops int
Storage tier IOPS quantity. This property is required to be set for storage Type PremiumV2_LRS
storage_size_gb int
Max storage allowed for a server.
throughput int
Storage throughput for the server. This is required to be set for storage Type PremiumV2_LRS
tier str | AzureManagedDiskPerformanceTiers
Name of storage tier for IOPS.
type str | StorageType
Storage type for the server. Allowed values are Premium_LRS and PremiumV2_LRS, and default is Premium_LRS if not specified
autoGrow String | "Enabled" | "Disabled"
Flag to enable / disable Storage Auto grow for flexible server.
iops Number
Storage tier IOPS quantity. This property is required to be set for storage Type PremiumV2_LRS
storageSizeGB Number
Max storage allowed for a server.
throughput Number
Storage throughput for the server. This is required to be set for storage Type PremiumV2_LRS
tier String | "P1" | "P2" | "P3" | "P4" | "P6" | "P10" | "P15" | "P20" | "P30" | "P40" | "P50" | "P60" | "P70" | "P80"
Name of storage tier for IOPS.
type String | "Premium_LRS" | "PremiumV2_LRS"
Storage type for the server. Allowed values are Premium_LRS and PremiumV2_LRS, and default is Premium_LRS if not specified

StorageAutoGrow
, StorageAutoGrowArgs

Enabled
Enabled
Disabled
Disabled
StorageAutoGrowEnabled
Enabled
StorageAutoGrowDisabled
Disabled
Enabled
Enabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
ENABLED
Enabled
DISABLED
Disabled
"Enabled"
Enabled
"Disabled"
Disabled

StorageResponse
, StorageResponseArgs

AutoGrow string
Flag to enable / disable Storage Auto grow for flexible server.
Iops int
Storage tier IOPS quantity. This property is required to be set for storage Type PremiumV2_LRS
StorageSizeGB int
Max storage allowed for a server.
Throughput int
Storage throughput for the server. This is required to be set for storage Type PremiumV2_LRS
Tier string
Name of storage tier for IOPS.
Type string
Storage type for the server. Allowed values are Premium_LRS and PremiumV2_LRS, and default is Premium_LRS if not specified
AutoGrow string
Flag to enable / disable Storage Auto grow for flexible server.
Iops int
Storage tier IOPS quantity. This property is required to be set for storage Type PremiumV2_LRS
StorageSizeGB int
Max storage allowed for a server.
Throughput int
Storage throughput for the server. This is required to be set for storage Type PremiumV2_LRS
Tier string
Name of storage tier for IOPS.
Type string
Storage type for the server. Allowed values are Premium_LRS and PremiumV2_LRS, and default is Premium_LRS if not specified
autoGrow String
Flag to enable / disable Storage Auto grow for flexible server.
iops Integer
Storage tier IOPS quantity. This property is required to be set for storage Type PremiumV2_LRS
storageSizeGB Integer
Max storage allowed for a server.
throughput Integer
Storage throughput for the server. This is required to be set for storage Type PremiumV2_LRS
tier String
Name of storage tier for IOPS.
type String
Storage type for the server. Allowed values are Premium_LRS and PremiumV2_LRS, and default is Premium_LRS if not specified
autoGrow string
Flag to enable / disable Storage Auto grow for flexible server.
iops number
Storage tier IOPS quantity. This property is required to be set for storage Type PremiumV2_LRS
storageSizeGB number
Max storage allowed for a server.
throughput number
Storage throughput for the server. This is required to be set for storage Type PremiumV2_LRS
tier string
Name of storage tier for IOPS.
type string
Storage type for the server. Allowed values are Premium_LRS and PremiumV2_LRS, and default is Premium_LRS if not specified
auto_grow str
Flag to enable / disable Storage Auto grow for flexible server.
iops int
Storage tier IOPS quantity. This property is required to be set for storage Type PremiumV2_LRS
storage_size_gb int
Max storage allowed for a server.
throughput int
Storage throughput for the server. This is required to be set for storage Type PremiumV2_LRS
tier str
Name of storage tier for IOPS.
type str
Storage type for the server. Allowed values are Premium_LRS and PremiumV2_LRS, and default is Premium_LRS if not specified
autoGrow String
Flag to enable / disable Storage Auto grow for flexible server.
iops Number
Storage tier IOPS quantity. This property is required to be set for storage Type PremiumV2_LRS
storageSizeGB Number
Max storage allowed for a server.
throughput Number
Storage throughput for the server. This is required to be set for storage Type PremiumV2_LRS
tier String
Name of storage tier for IOPS.
type String
Storage type for the server. Allowed values are Premium_LRS and PremiumV2_LRS, and default is Premium_LRS if not specified

StorageType
, StorageTypeArgs

Premium_LRS
Premium_LRS
PremiumV2_LRS
PremiumV2_LRS
StorageType_Premium_LRS
Premium_LRS
StorageType_PremiumV2_LRS
PremiumV2_LRS
Premium_LRS
Premium_LRS
PremiumV2_LRS
PremiumV2_LRS
Premium_LRS
Premium_LRS
PremiumV2_LRS
PremiumV2_LRS
PREMIUM_LRS
Premium_LRS
PREMIUM_V2_LRS
PremiumV2_LRS
"Premium_LRS"
Premium_LRS
"PremiumV2_LRS"
PremiumV2_LRS

SystemDataResponse
, SystemDataResponseArgs

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
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_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

UserAssignedIdentity
, UserAssignedIdentityArgs

Type This property is required. string | Pulumi.AzureNative.DBforPostgreSQL.IdentityType
the types of identities associated with this resource
PrincipalId string
the identity principal Id of the server.
UserAssignedIdentities Dictionary<string, Pulumi.AzureNative.DBforPostgreSQL.Inputs.UserIdentity>
represents user assigned identities map.
Type This property is required. string | IdentityType
the types of identities associated with this resource
PrincipalId string
the identity principal Id of the server.
UserAssignedIdentities map[string]UserIdentity
represents user assigned identities map.
type This property is required. String | IdentityType
the types of identities associated with this resource
principalId String
the identity principal Id of the server.
userAssignedIdentities Map<String,UserIdentity>
represents user assigned identities map.
type This property is required. string | IdentityType
the types of identities associated with this resource
principalId string
the identity principal Id of the server.
userAssignedIdentities {[key: string]: UserIdentity}
represents user assigned identities map.
type This property is required. str | IdentityType
the types of identities associated with this resource
principal_id str
the identity principal Id of the server.
user_assigned_identities Mapping[str, UserIdentity]
represents user assigned identities map.
type This property is required. String | "UserAssigned" | "SystemAssigned"
the types of identities associated with this resource
principalId String
the identity principal Id of the server.
userAssignedIdentities Map<Property Map>
represents user assigned identities map.

UserAssignedIdentityResponse
, UserAssignedIdentityResponseArgs

ClientId This property is required. string
The client ID of the assigned identity.
PrincipalId This property is required. string
The principal ID of the assigned identity.
TenantId string
Tenant id of the server.
Type string
the types of identities associated with this resource
UserAssignedIdentities Dictionary<string, Pulumi.AzureNative.DBforPostgreSQL.Inputs.UserIdentityResponse>
represents user assigned identities map.
ClientId This property is required. string
The client ID of the assigned identity.
PrincipalId This property is required. string
The principal ID of the assigned identity.
TenantId string
Tenant id of the server.
Type string
the types of identities associated with this resource
UserAssignedIdentities map[string]UserIdentityResponse
represents user assigned identities map.
clientId This property is required. String
The client ID of the assigned identity.
principalId This property is required. String
The principal ID of the assigned identity.
tenantId String
Tenant id of the server.
type String
the types of identities associated with this resource
userAssignedIdentities Map<String,UserIdentityResponse>
represents user assigned identities map.
clientId This property is required. string
The client ID of the assigned identity.
principalId This property is required. string
The principal ID of the assigned identity.
tenantId string
Tenant id of the server.
type string
the types of identities associated with this resource
userAssignedIdentities {[key: string]: UserIdentityResponse}
represents user assigned identities map.
client_id This property is required. str
The client ID of the assigned identity.
principal_id This property is required. str
The principal ID of the assigned identity.
tenant_id str
Tenant id of the server.
type str
the types of identities associated with this resource
user_assigned_identities Mapping[str, UserIdentityResponse]
represents user assigned identities map.
clientId This property is required. String
The client ID of the assigned identity.
principalId This property is required. String
The principal ID of the assigned identity.
tenantId String
Tenant id of the server.
type String
the types of identities associated with this resource
userAssignedIdentities Map<Property Map>
represents user assigned identities map.

UserIdentity
, UserIdentityArgs

ClientId string
the client identifier of the Service Principal which this identity represents.
PrincipalId string
the object identifier of the Service Principal which this identity represents.
ClientId string
the client identifier of the Service Principal which this identity represents.
PrincipalId string
the object identifier of the Service Principal which this identity represents.
clientId String
the client identifier of the Service Principal which this identity represents.
principalId String
the object identifier of the Service Principal which this identity represents.
clientId string
the client identifier of the Service Principal which this identity represents.
principalId string
the object identifier of the Service Principal which this identity represents.
client_id str
the client identifier of the Service Principal which this identity represents.
principal_id str
the object identifier of the Service Principal which this identity represents.
clientId String
the client identifier of the Service Principal which this identity represents.
principalId String
the object identifier of the Service Principal which this identity represents.

UserIdentityResponse
, UserIdentityResponseArgs

ClientId string
the client identifier of the Service Principal which this identity represents.
PrincipalId string
the object identifier of the Service Principal which this identity represents.
ClientId string
the client identifier of the Service Principal which this identity represents.
PrincipalId string
the object identifier of the Service Principal which this identity represents.
clientId String
the client identifier of the Service Principal which this identity represents.
principalId String
the object identifier of the Service Principal which this identity represents.
clientId string
the client identifier of the Service Principal which this identity represents.
principalId string
the object identifier of the Service Principal which this identity represents.
client_id str
the client identifier of the Service Principal which this identity represents.
principal_id str
the object identifier of the Service Principal which this identity represents.
clientId String
the client identifier of the Service Principal which this identity represents.
principalId String
the object identifier of the Service Principal which this identity represents.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:dbforpostgresql:Server pgtestsvc4 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0