azure-native.dbforpostgresql.Server
Explore with Pulumi AI
Represents a server. Azure REST API version: 2022-12-01. Prior API version in Azure Native 1.x: 2017-12-01.
Other available API versions: 2017-12-01, 2017-12-01-preview, 2020-02-14-preview, 2021-04-10-privatepreview, 2021-06-15-privatepreview, 2022-03-08-preview, 2023-03-01-preview, 2023-06-01-preview, 2023-12-01-preview, 2024-03-01-preview, 2024-08-01.
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,
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",
});
});
package main
import (
dbforpostgresql "github.com/pulumi/pulumi-azure-native-sdk/dbforpostgresql/v2"
"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),
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
})
}
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("GeoRestore")
.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());
}
}
import pulumi
import pulumi_azure_native as azure_native
server = azure_native.dbforpostgresql.Server("server",
create_mode=azure_native.dbforpostgresql.CreateMode.GEO_RESTORE,
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")
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,
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",
});
resources:
server:
type: azure-native:dbforpostgresql:Server
properties:
createMode: GeoRestore
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
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",
});
});
package main
import (
dbforpostgresql "github.com/pulumi/pulumi-azure-native-sdk/dbforpostgresql/v2"
"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
})
}
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());
}
}
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")
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",
});
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
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
{
StorageSizeGB = 512,
},
Tags =
{
{ "ElasticServer", "1" },
},
Version = AzureNative.DBforPostgreSQL.ServerVersion.ServerVersion_12,
});
});
package main
import (
dbforpostgresql "github.com/pulumi/pulumi-azure-native-sdk/dbforpostgresql/v2"
"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{
StorageSizeGB: pulumi.Int(512),
},
Tags: pulumi.StringMap{
"ElasticServer": pulumi.String("1"),
},
Version: pulumi.String(dbforpostgresql.ServerVersion_12),
})
if err != nil {
return err
}
return nil
})
}
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()
.storageSizeGB(512)
.build())
.tags(Map.of("ElasticServer", "1"))
.version("12")
.build());
}
}
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={
"storage_size_gb": 512,
},
tags={
"ElasticServer": "1",
},
version=azure_native.dbforpostgresql.ServerVersion.SERVER_VERSION_12)
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: {
storageSizeGB: 512,
},
tags: {
ElasticServer: "1",
},
version: azure_native.dbforpostgresql.ServerVersion.ServerVersion_12,
});
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:
storageSizeGB: 512
tags:
ElasticServer: '1'
version: '12'
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,
TenantId = "tttttt-tttt-tttt-tttt-tttttttttttt",
},
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
{
StorageSizeGB = 512,
},
Tags =
{
{ "ElasticServer", "1" },
},
Version = AzureNative.DBforPostgreSQL.ServerVersion.ServerVersion_12,
});
});
package main
import (
dbforpostgresql "github.com/pulumi/pulumi-azure-native-sdk/dbforpostgresql/v2"
"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),
TenantId: pulumi.String("tttttt-tttt-tttt-tttt-tttttttttttt"),
},
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{
StorageSizeGB: pulumi.Int(512),
},
Tags: pulumi.StringMap{
"ElasticServer": pulumi.String("1"),
},
Version: pulumi.String(dbforpostgresql.ServerVersion_12),
})
if err != nil {
return err
}
return nil
})
}
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")
.tenantId("tttttt-tttt-tttt-tttt-tttttttttttt")
.build())
.availabilityZone("1")
.backup(BackupArgs.builder()
.backupRetentionDays(7)
.geoRedundantBackup("Disabled")
.build())
.createMode("Create")
.dataEncryption(DataEncryptionArgs.builder()
.type("SystemManaged")
.build())
.highAvailability(HighAvailabilityArgs.builder()
.mode("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()
.storageSizeGB(512)
.build())
.tags(Map.of("ElasticServer", "1"))
.version("12")
.build());
}
}
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,
"tenant_id": "tttttt-tttt-tttt-tttt-tttttttttttt",
},
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={
"storage_size_gb": 512,
},
tags={
"ElasticServer": "1",
},
version=azure_native.dbforpostgresql.ServerVersion.SERVER_VERSION_12)
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,
tenantId: "tttttt-tttt-tttt-tttt-tttttttttttt",
},
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: {
storageSizeGB: 512,
},
tags: {
ElasticServer: "1",
},
version: azure_native.dbforpostgresql.ServerVersion.ServerVersion_12,
});
resources:
server:
type: azure-native:dbforpostgresql:Server
properties:
administratorLogin: cloudsa
administratorLoginPassword: password
authConfig:
activeDirectoryAuth: Enabled
passwordAuth: Enabled
tenantId: tttttt-tttt-tttt-tttt-tttttttttttt
availabilityZone: '1'
backup:
backupRetentionDays: 7
geoRedundantBackup: Disabled
createMode: Create
dataEncryption:
type: SystemManaged
highAvailability:
mode: 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:
storageSizeGB: 512
tags:
ElasticServer: '1'
version: '12'
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,
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",
});
});
package main
import (
dbforpostgresql "github.com/pulumi/pulumi-azure-native-sdk/dbforpostgresql/v2"
"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),
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
})
}
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("Replica")
.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());
}
}
import pulumi
import pulumi_azure_native as azure_native
server = azure_native.dbforpostgresql.Server("server",
create_mode=azure_native.dbforpostgresql.CreateMode.REPLICA,
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")
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,
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",
});
resources:
server:
type: azure-native:dbforpostgresql:Server
properties:
createMode: Replica
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
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
{
PrimaryKeyURI = "https://test-kv.vault.azure.net/keys/test-key1/77f57315bab34b0189daa113fbc78787",
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
{
StorageSizeGB = 512,
},
Tags =
{
{ "ElasticServer", "1" },
},
Version = AzureNative.DBforPostgreSQL.ServerVersion.ServerVersion_12,
});
});
package main
import (
dbforpostgresql "github.com/pulumi/pulumi-azure-native-sdk/dbforpostgresql/v2"
"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{
PrimaryKeyURI: pulumi.String("https://test-kv.vault.azure.net/keys/test-key1/77f57315bab34b0189daa113fbc78787"),
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{
StorageSizeGB: pulumi.Int(512),
},
Tags: pulumi.StringMap{
"ElasticServer": pulumi.String("1"),
},
Version: pulumi.String(dbforpostgresql.ServerVersion_12),
})
if err != nil {
return err
}
return nil
})
}
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()
.primaryKeyURI("https://test-kv.vault.azure.net/keys/test-key1/77f57315bab34b0189daa113fbc78787")
.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", ))
.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()
.storageSizeGB(512)
.build())
.tags(Map.of("ElasticServer", "1"))
.version("12")
.build());
}
}
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_key_uri": "https://test-kv.vault.azure.net/keys/test-key1/77f57315bab34b0189daa113fbc78787",
"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_resource_groups_testresourcegroup_providers__microsoft__managed_identity_user_assigned_identities_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={
"storage_size_gb": 512,
},
tags={
"ElasticServer": "1",
},
version=azure_native.dbforpostgresql.ServerVersion.SERVER_VERSION_12)
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: {
primaryKeyURI: "https://test-kv.vault.azure.net/keys/test-key1/77f57315bab34b0189daa113fbc78787",
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: {
storageSizeGB: 512,
},
tags: {
ElasticServer: "1",
},
version: azure_native.dbforpostgresql.ServerVersion.ServerVersion_12,
});
resources:
server:
type: azure-native:dbforpostgresql:Server
properties:
administratorLogin: cloudsa
administratorLoginPassword: password
availabilityZone: '1'
backup:
backupRetentionDays: 7
geoRedundantBackup: Disabled
createMode: Create
dataEncryption:
primaryKeyURI: https://test-kv.vault.azure.net/keys/test-key1/77f57315bab34b0189daa113fbc78787
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:
storageSizeGB: 512
tags:
ElasticServer: '1'
version: '12'
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,
maintenance_window: Optional[MaintenanceWindowArgs] = None,
storage: Optional[StorageArgs] = None,
availability_zone: Optional[str] = None,
backup: Optional[BackupArgs] = None,
create_mode: Optional[Union[str, CreateMode]] = None,
data_encryption: Optional[DataEncryptionArgs] = None,
high_availability: Optional[HighAvailabilityArgs] = None,
network: Optional[NetworkArgs] = None,
version: Optional[Union[str, ServerVersion]] = None,
auth_config: Optional[AuthConfigArgs] = None,
identity: Optional[UserAssignedIdentityArgs] = None,
point_in_time_utc: Optional[str] = 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,
administrator_login: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
location: Optional[str] = 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 string
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleserverResourceResourceFromDbforpostgresql = new AzureNative.DBforPostgreSQL.Server("exampleserverResourceResourceFromDbforpostgresql", new()
{
ResourceGroupName = "string",
MaintenanceWindow = new AzureNative.DBforPostgreSQL.Inputs.MaintenanceWindowArgs
{
CustomWindow = "string",
DayOfWeek = 0,
StartHour = 0,
StartMinute = 0,
},
Storage = new AzureNative.DBforPostgreSQL.Inputs.StorageArgs
{
StorageSizeGB = 0,
},
AvailabilityZone = "string",
Backup = new AzureNative.DBforPostgreSQL.Inputs.BackupArgs
{
BackupRetentionDays = 0,
GeoRedundantBackup = "string",
},
CreateMode = "string",
DataEncryption = new AzureNative.DBforPostgreSQL.Inputs.DataEncryptionArgs
{
PrimaryKeyURI = "string",
PrimaryUserAssignedIdentityId = "string",
Type = "string",
},
HighAvailability = new AzureNative.DBforPostgreSQL.Inputs.HighAvailabilityArgs
{
Mode = "string",
StandbyAvailabilityZone = "string",
},
Network = new AzureNative.DBforPostgreSQL.Inputs.NetworkArgs
{
DelegatedSubnetResourceId = "string",
PrivateDnsZoneArmResourceId = "string",
},
Version = "string",
AuthConfig = new AzureNative.DBforPostgreSQL.Inputs.AuthConfigArgs
{
ActiveDirectoryAuth = "string",
PasswordAuth = "string",
TenantId = "string",
},
Identity = new AzureNative.DBforPostgreSQL.Inputs.UserAssignedIdentityArgs
{
Type = "string",
UserAssignedIdentities =
{
{ "string", new AzureNative.DBforPostgreSQL.Inputs.UserIdentityArgs
{
ClientId = "string",
PrincipalId = "string",
} },
},
},
PointInTimeUTC = "string",
ReplicationRole = "string",
AdministratorLoginPassword = "string",
ServerName = "string",
Sku = new AzureNative.DBforPostgreSQL.Inputs.SkuArgs
{
Name = "string",
Tier = "string",
},
SourceServerResourceId = "string",
AdministratorLogin = "string",
Tags =
{
{ "string", "string" },
},
Location = "string",
});
example, err := dbforpostgresql.NewServer(ctx, "exampleserverResourceResourceFromDbforpostgresql", &dbforpostgresql.ServerArgs{
ResourceGroupName: pulumi.String("string"),
MaintenanceWindow: &dbforpostgresql.MaintenanceWindowArgs{
CustomWindow: pulumi.String("string"),
DayOfWeek: pulumi.Int(0),
StartHour: pulumi.Int(0),
StartMinute: pulumi.Int(0),
},
Storage: &dbforpostgresql.StorageArgs{
StorageSizeGB: pulumi.Int(0),
},
AvailabilityZone: pulumi.String("string"),
Backup: &dbforpostgresql.BackupTypeArgs{
BackupRetentionDays: pulumi.Int(0),
GeoRedundantBackup: pulumi.String("string"),
},
CreateMode: pulumi.String("string"),
DataEncryption: &dbforpostgresql.DataEncryptionArgs{
PrimaryKeyURI: pulumi.String("string"),
PrimaryUserAssignedIdentityId: pulumi.String("string"),
Type: pulumi.String("string"),
},
HighAvailability: &dbforpostgresql.HighAvailabilityArgs{
Mode: pulumi.String("string"),
StandbyAvailabilityZone: pulumi.String("string"),
},
Network: &dbforpostgresql.NetworkArgs{
DelegatedSubnetResourceId: pulumi.String("string"),
PrivateDnsZoneArmResourceId: pulumi.String("string"),
},
Version: pulumi.String("string"),
AuthConfig: &dbforpostgresql.AuthConfigArgs{
ActiveDirectoryAuth: pulumi.String("string"),
PasswordAuth: pulumi.String("string"),
TenantId: pulumi.String("string"),
},
Identity: &dbforpostgresql.UserAssignedIdentityArgs{
Type: pulumi.String("string"),
UserAssignedIdentities: dbforpostgresql.UserIdentityMap{
"string": &dbforpostgresql.UserIdentityArgs{
ClientId: pulumi.String("string"),
PrincipalId: pulumi.String("string"),
},
},
},
PointInTimeUTC: 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"),
AdministratorLogin: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
})
var exampleserverResourceResourceFromDbforpostgresql = new Server("exampleserverResourceResourceFromDbforpostgresql", ServerArgs.builder()
.resourceGroupName("string")
.maintenanceWindow(MaintenanceWindowArgs.builder()
.customWindow("string")
.dayOfWeek(0)
.startHour(0)
.startMinute(0)
.build())
.storage(StorageArgs.builder()
.storageSizeGB(0)
.build())
.availabilityZone("string")
.backup(BackupArgs.builder()
.backupRetentionDays(0)
.geoRedundantBackup("string")
.build())
.createMode("string")
.dataEncryption(DataEncryptionArgs.builder()
.primaryKeyURI("string")
.primaryUserAssignedIdentityId("string")
.type("string")
.build())
.highAvailability(HighAvailabilityArgs.builder()
.mode("string")
.standbyAvailabilityZone("string")
.build())
.network(NetworkArgs.builder()
.delegatedSubnetResourceId("string")
.privateDnsZoneArmResourceId("string")
.build())
.version("string")
.authConfig(AuthConfigArgs.builder()
.activeDirectoryAuth("string")
.passwordAuth("string")
.tenantId("string")
.build())
.identity(UserAssignedIdentityArgs.builder()
.type("string")
.userAssignedIdentities(Map.of("string", Map.ofEntries(
Map.entry("clientId", "string"),
Map.entry("principalId", "string")
)))
.build())
.pointInTimeUTC("string")
.replicationRole("string")
.administratorLoginPassword("string")
.serverName("string")
.sku(SkuArgs.builder()
.name("string")
.tier("string")
.build())
.sourceServerResourceId("string")
.administratorLogin("string")
.tags(Map.of("string", "string"))
.location("string")
.build());
exampleserver_resource_resource_from_dbforpostgresql = azure_native.dbforpostgresql.Server("exampleserverResourceResourceFromDbforpostgresql",
resource_group_name="string",
maintenance_window={
"customWindow": "string",
"dayOfWeek": 0,
"startHour": 0,
"startMinute": 0,
},
storage={
"storageSizeGB": 0,
},
availability_zone="string",
backup={
"backupRetentionDays": 0,
"geoRedundantBackup": "string",
},
create_mode="string",
data_encryption={
"primaryKeyURI": "string",
"primaryUserAssignedIdentityId": "string",
"type": "string",
},
high_availability={
"mode": "string",
"standbyAvailabilityZone": "string",
},
network={
"delegatedSubnetResourceId": "string",
"privateDnsZoneArmResourceId": "string",
},
version="string",
auth_config={
"activeDirectoryAuth": "string",
"passwordAuth": "string",
"tenantId": "string",
},
identity={
"type": "string",
"userAssignedIdentities": {
"string": {
"clientId": "string",
"principalId": "string",
},
},
},
point_in_time_utc="string",
replication_role="string",
administrator_login_password="string",
server_name="string",
sku={
"name": "string",
"tier": "string",
},
source_server_resource_id="string",
administrator_login="string",
tags={
"string": "string",
},
location="string")
const exampleserverResourceResourceFromDbforpostgresql = new azure_native.dbforpostgresql.Server("exampleserverResourceResourceFromDbforpostgresql", {
resourceGroupName: "string",
maintenanceWindow: {
customWindow: "string",
dayOfWeek: 0,
startHour: 0,
startMinute: 0,
},
storage: {
storageSizeGB: 0,
},
availabilityZone: "string",
backup: {
backupRetentionDays: 0,
geoRedundantBackup: "string",
},
createMode: "string",
dataEncryption: {
primaryKeyURI: "string",
primaryUserAssignedIdentityId: "string",
type: "string",
},
highAvailability: {
mode: "string",
standbyAvailabilityZone: "string",
},
network: {
delegatedSubnetResourceId: "string",
privateDnsZoneArmResourceId: "string",
},
version: "string",
authConfig: {
activeDirectoryAuth: "string",
passwordAuth: "string",
tenantId: "string",
},
identity: {
type: "string",
userAssignedIdentities: {
string: {
clientId: "string",
principalId: "string",
},
},
},
pointInTimeUTC: "string",
replicationRole: "string",
administratorLoginPassword: "string",
serverName: "string",
sku: {
name: "string",
tier: "string",
},
sourceServerResourceId: "string",
administratorLogin: "string",
tags: {
string: "string",
},
location: "string",
});
type: azure-native:dbforpostgresql:Server
properties:
administratorLogin: string
administratorLoginPassword: string
authConfig:
activeDirectoryAuth: string
passwordAuth: string
tenantId: string
availabilityZone: string
backup:
backupRetentionDays: 0
geoRedundantBackup: string
createMode: string
dataEncryption:
primaryKeyURI: string
primaryUserAssignedIdentityId: string
type: string
highAvailability:
mode: string
standbyAvailabilityZone: string
identity:
type: string
userAssignedIdentities:
string:
clientId: string
principalId: string
location: string
maintenanceWindow:
customWindow: string
dayOfWeek: 0
startHour: 0
startMinute: 0
network:
delegatedSubnetResourceId: string
privateDnsZoneArmResourceId: string
pointInTimeUTC: string
replicationRole: string
resourceGroupName: string
serverName: string
sku:
name: string
tier: string
sourceServerResourceId: string
storage:
storageSizeGB: 0
tags:
string: string
version: string
Server Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Server resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Administrator
Login string - 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 stringPassword - The administrator login password (required for server creation).
- Auth
Config Pulumi.Azure Native. DBfor Postgre SQL. Inputs. Auth Config - AuthConfig properties of a server.
- Availability
Zone string - availability zone information of the server.
- Backup
Pulumi.
Azure Native. DBfor Postgre SQL. Inputs. Backup - Backup properties of a server.
- Create
Mode string | Pulumi.Azure Native. DBfor Postgre SQL. Create Mode - The mode to create a new PostgreSQL server.
- Data
Encryption Pulumi.Azure Native. DBfor Postgre SQL. Inputs. Data Encryption - Data encryption properties of a server.
- High
Availability Pulumi.Azure Native. DBfor Postgre SQL. Inputs. High Availability - High availability properties of a server.
- Identity
Pulumi.
Azure Native. DBfor Postgre SQL. Inputs. User Assigned Identity - Describes the identity of the application.
- Location string
- The geo-location where the resource lives
- Maintenance
Window Pulumi.Azure Native. DBfor Postgre SQL. Inputs. Maintenance Window - Maintenance window properties of a server.
- Network
Pulumi.
Azure Native. DBfor Postgre SQL. Inputs. Network - Network properties of a server. This Network property is required to be passed only in case you want the server to be Private access server.
- Point
In stringTime UTC - Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore'.
- Replication
Role string | Pulumi.Azure Native. DBfor Postgre SQL. Replication Role - Replication role of the server
- Server
Name string - The name of the server.
- Sku
Pulumi.
Azure Native. DBfor Postgre SQL. Inputs. Sku - The SKU (pricing tier) of the server.
- Source
Server stringResource Id - The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica'. This property is returned only for Replica server
- Storage
Pulumi.
Azure Native. DBfor Postgre SQL. Inputs. Storage - Storage properties of a server.
- Dictionary<string, string>
- Resource tags.
- Version
string | Pulumi.
Azure Native. DBfor Postgre SQL. Server Version - PostgreSQL Server version.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Administrator
Login string - 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 stringPassword - The administrator login password (required for server creation).
- Auth
Config AuthConfig Args - AuthConfig properties of a server.
- Availability
Zone string - availability zone information of the server.
- Backup
Backup
Type Args - Backup properties of a server.
- Create
Mode string | CreateMode - The mode to create a new PostgreSQL server.
- Data
Encryption DataEncryption Args - Data encryption properties of a server.
- High
Availability HighAvailability Args - High availability properties of a server.
- Identity
User
Assigned Identity Args - Describes the identity of the application.
- Location string
- The geo-location where the resource lives
- Maintenance
Window MaintenanceWindow Args - Maintenance window properties of a server.
- Network
Network
Args - Network properties of a server. This Network property is required to be passed only in case you want the server to be Private access server.
- Point
In stringTime UTC - Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore'.
- Replication
Role string | ReplicationRole - Replication role of the server
- Server
Name string - The name of the server.
- Sku
Sku
Args - The SKU (pricing tier) of the server.
- Source
Server stringResource Id - The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica'. This property is returned only for Replica server
- Storage
Storage
Args - Storage properties of a server.
- map[string]string
- Resource tags.
- Version
string | Server
Version - PostgreSQL Server version.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- administrator
Login String - 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 StringPassword - The administrator login password (required for server creation).
- auth
Config AuthConfig - AuthConfig properties of a server.
- availability
Zone String - availability zone information of the server.
- backup Backup
- Backup properties of a server.
- create
Mode String | CreateMode - The mode to create a new PostgreSQL server.
- data
Encryption DataEncryption - Data encryption properties of a server.
- high
Availability HighAvailability - High availability properties of a server.
- identity
User
Assigned Identity - Describes the identity of the application.
- location String
- The geo-location where the resource lives
- maintenance
Window MaintenanceWindow - Maintenance window properties of a server.
- network Network
- Network properties of a server. This Network property is required to be passed only in case you want the server to be Private access server.
- point
In StringTime UTC - Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore'.
- replication
Role String | ReplicationRole - Replication role of the server
- server
Name String - The name of the server.
- sku Sku
- The SKU (pricing tier) of the server.
- source
Server StringResource Id - The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica'. This property is returned only for Replica server
- storage Storage
- Storage properties of a server.
- Map<String,String>
- Resource tags.
- version
String | Server
Version - PostgreSQL Server version.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- administrator
Login string - 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 stringPassword - The administrator login password (required for server creation).
- auth
Config AuthConfig - AuthConfig properties of a server.
- availability
Zone string - availability zone information of the server.
- backup Backup
- Backup properties of a server.
- create
Mode string | CreateMode - The mode to create a new PostgreSQL server.
- data
Encryption DataEncryption - Data encryption properties of a server.
- high
Availability HighAvailability - High availability properties of a server.
- identity
User
Assigned Identity - Describes the identity of the application.
- location string
- The geo-location where the resource lives
- maintenance
Window MaintenanceWindow - Maintenance window properties of a server.
- network Network
- Network properties of a server. This Network property is required to be passed only in case you want the server to be Private access server.
- point
In stringTime UTC - Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore'.
- replication
Role string | ReplicationRole - Replication role of the server
- server
Name string - The name of the server.
- sku Sku
- The SKU (pricing tier) of the server.
- source
Server stringResource Id - The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica'. This property is returned only for Replica server
- storage Storage
- Storage properties of a server.
- {[key: string]: string}
- Resource tags.
- version
string | Server
Version - PostgreSQL Server version.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- administrator_
login 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_ strpassword - The administrator login password (required for server creation).
- auth_
config AuthConfig Args - AuthConfig properties of a server.
- availability_
zone str - availability zone information of the server.
- backup
Backup
Args - Backup properties of a server.
- create_
mode str | CreateMode - The mode to create a new PostgreSQL server.
- data_
encryption DataEncryption Args - Data encryption properties of a server.
- high_
availability HighAvailability Args - High availability properties of a server.
- identity
User
Assigned Identity Args - Describes the identity of the application.
- location str
- The geo-location where the resource lives
- maintenance_
window MaintenanceWindow Args - Maintenance window properties of a server.
- network
Network
Args - Network properties of a server. This Network property is required to be passed only in case you want the server to be Private access server.
- point_
in_ strtime_ utc - Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore'.
- replication_
role str | ReplicationRole - Replication role of the server
- server_
name str - The name of the server.
- sku
Sku
Args - The SKU (pricing tier) of the server.
- source_
server_ strresource_ id - The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica'. This property is returned only for Replica server
- storage
Storage
Args - Storage properties of a server.
- Mapping[str, str]
- Resource tags.
- version
str | Server
Version - PostgreSQL Server version.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- administrator
Login String - 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 StringPassword - The administrator login password (required for server creation).
- auth
Config Property Map - AuthConfig properties of a server.
- availability
Zone String - availability zone information of the server.
- backup Property Map
- Backup properties of a server.
- create
Mode String | "Default" | "Create" | "Update" | "PointIn Time Restore" | "Geo Restore" | "Replica" - The mode to create a new PostgreSQL server.
- data
Encryption Property Map - Data encryption properties of a server.
- high
Availability Property Map - High availability properties of a server.
- identity Property Map
- Describes the identity of the application.
- location String
- The geo-location where the resource lives
- maintenance
Window Property Map - Maintenance window properties of a server.
- network Property Map
- Network properties of a server. This Network property is required to be passed only in case you want the server to be Private access server.
- point
In StringTime UTC - Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore'.
- replication
Role String | "None" | "Primary" | "AsyncReplica" | "Geo Async Replica" - Replication role of the server
- server
Name String - The name of the server.
- sku Property Map
- The SKU (pricing tier) of the server.
- source
Server StringResource Id - The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica'. This property is returned only for Replica server
- storage Property Map
- Storage properties of a server.
- Map<String>
- Resource tags.
- version String | "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:
- Fully
Qualified stringDomain Name - The fully qualified domain name of a server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Minor
Version string - The minor version of the server.
- Name string
- The name of the resource
- Replica
Capacity int - Replicas allowed for a server.
- State string
- A state of a server that is visible to user.
- System
Data Pulumi.Azure Native. DBfor Postgre SQL. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Fully
Qualified stringDomain Name - The fully qualified domain name of a server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Minor
Version string - The minor version of the server.
- Name string
- The name of the resource
- Replica
Capacity int - Replicas allowed for a server.
- State string
- A state of a server that is visible to user.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- fully
Qualified StringDomain Name - The fully qualified domain name of a server.
- id String
- The provider-assigned unique ID for this managed resource.
- minor
Version String - The minor version of the server.
- name String
- The name of the resource
- replica
Capacity Integer - Replicas allowed for a server.
- state String
- A state of a server that is visible to user.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- fully
Qualified stringDomain Name - The fully qualified domain name of a server.
- id string
- The provider-assigned unique ID for this managed resource.
- minor
Version string - The minor version of the server.
- name string
- The name of the resource
- replica
Capacity number - Replicas allowed for a server.
- state string
- A state of a server that is visible to user.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- fully_
qualified_ strdomain_ name - 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
- replica_
capacity int - Replicas allowed for a server.
- state str
- A state of a server that is visible to user.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- fully
Qualified StringDomain Name - The fully qualified domain name of a server.
- id String
- The provider-assigned unique ID for this managed resource.
- minor
Version String - The minor version of the server.
- name String
- The name of the resource
- replica
Capacity Number - Replicas allowed for a server.
- state String
- A state of a server that is visible to user.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ActiveDirectoryAuthEnum, ActiveDirectoryAuthEnumArgs
- Enabled
- Enabled
- Disabled
- Disabled
- Active
Directory Auth Enum Enabled - Enabled
- Active
Directory Auth Enum Disabled - Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- ENABLED
- Enabled
- DISABLED
- Disabled
- "Enabled"
- Enabled
- "Disabled"
- Disabled
ArmServerKeyType, ArmServerKeyTypeArgs
- System
Managed - SystemManaged
- Azure
Key Vault - AzureKeyVault
- Arm
Server Key Type System Managed - SystemManaged
- Arm
Server Key Type Azure Key Vault - AzureKeyVault
- System
Managed - SystemManaged
- Azure
Key Vault - AzureKeyVault
- System
Managed - SystemManaged
- Azure
Key Vault - AzureKeyVault
- SYSTEM_MANAGED
- SystemManaged
- AZURE_KEY_VAULT
- AzureKeyVault
- "System
Managed" - SystemManaged
- "Azure
Key Vault" - AzureKeyVault
AuthConfig, AuthConfigArgs
- Active
Directory string | Pulumi.Auth Azure Native. DBfor Postgre SQL. Active Directory Auth Enum - If Enabled, Azure Active Directory authentication is enabled.
- Password
Auth string | Pulumi.Azure Native. DBfor Postgre SQL. Password Auth Enum - If Enabled, Password authentication is enabled.
- Tenant
Id string - Tenant id of the server.
- Active
Directory string | ActiveAuth Directory Auth Enum - If Enabled, Azure Active Directory authentication is enabled.
- Password
Auth string | PasswordAuth Enum - If Enabled, Password authentication is enabled.
- Tenant
Id string - Tenant id of the server.
- active
Directory String | ActiveAuth Directory Auth Enum - If Enabled, Azure Active Directory authentication is enabled.
- password
Auth String | PasswordAuth Enum - If Enabled, Password authentication is enabled.
- tenant
Id String - Tenant id of the server.
- active
Directory string | ActiveAuth Directory Auth Enum - If Enabled, Azure Active Directory authentication is enabled.
- password
Auth string | PasswordAuth Enum - If Enabled, Password authentication is enabled.
- tenant
Id string - Tenant id of the server.
- active_
directory_ str | Activeauth Directory Auth Enum - If Enabled, Azure Active Directory authentication is enabled.
- password_
auth str | PasswordAuth Enum - If Enabled, Password authentication is enabled.
- tenant_
id str - Tenant id of the server.
- active
Directory String | "Enabled" | "Disabled"Auth - If Enabled, Azure Active Directory authentication is enabled.
- password
Auth String | "Enabled" | "Disabled" - If Enabled, Password authentication is enabled.
- tenant
Id String - Tenant id of the server.
AuthConfigResponse, AuthConfigResponseArgs
- Active
Directory stringAuth - If Enabled, Azure Active Directory authentication is enabled.
- Password
Auth string - If Enabled, Password authentication is enabled.
- Tenant
Id string - Tenant id of the server.
- Active
Directory stringAuth - If Enabled, Azure Active Directory authentication is enabled.
- Password
Auth string - If Enabled, Password authentication is enabled.
- Tenant
Id string - Tenant id of the server.
- active
Directory StringAuth - If Enabled, Azure Active Directory authentication is enabled.
- password
Auth String - If Enabled, Password authentication is enabled.
- tenant
Id String - Tenant id of the server.
- active
Directory stringAuth - If Enabled, Azure Active Directory authentication is enabled.
- password
Auth string - If Enabled, Password authentication is enabled.
- tenant
Id string - Tenant id of the server.
- active_
directory_ strauth - If Enabled, Azure Active Directory authentication is enabled.
- password_
auth str - If Enabled, Password authentication is enabled.
- tenant_
id str - Tenant id of the server.
- active
Directory StringAuth - If Enabled, Azure Active Directory authentication is enabled.
- password
Auth String - If Enabled, Password authentication is enabled.
- tenant
Id String - Tenant id of the server.
Backup, BackupArgs
- Backup
Retention intDays - Backup retention days for the server.
- Geo
Redundant string | Pulumi.Backup Azure Native. DBfor Postgre SQL. Geo Redundant Backup Enum - A value indicating whether Geo-Redundant backup is enabled on the server.
- Backup
Retention intDays - Backup retention days for the server.
- Geo
Redundant string | GeoBackup Redundant Backup Enum - A value indicating whether Geo-Redundant backup is enabled on the server.
- backup
Retention IntegerDays - Backup retention days for the server.
- geo
Redundant String | GeoBackup Redundant Backup Enum - A value indicating whether Geo-Redundant backup is enabled on the server.
- backup
Retention numberDays - Backup retention days for the server.
- geo
Redundant string | GeoBackup Redundant Backup Enum - A value indicating whether Geo-Redundant backup is enabled on the server.
- backup_
retention_ intdays - Backup retention days for the server.
- geo_
redundant_ str | Geobackup Redundant Backup Enum - A value indicating whether Geo-Redundant backup is enabled on the server.
- backup
Retention NumberDays - Backup retention days for the server.
- geo
Redundant String | "Enabled" | "Disabled"Backup - A value indicating whether Geo-Redundant backup is enabled on the server.
BackupResponse, BackupResponseArgs
- Earliest
Restore stringDate - The earliest restore point time (ISO8601 format) for server.
- Backup
Retention intDays - Backup retention days for the server.
- Geo
Redundant stringBackup - A value indicating whether Geo-Redundant backup is enabled on the server.
- Earliest
Restore stringDate - The earliest restore point time (ISO8601 format) for server.
- Backup
Retention intDays - Backup retention days for the server.
- Geo
Redundant stringBackup - A value indicating whether Geo-Redundant backup is enabled on the server.
- earliest
Restore StringDate - The earliest restore point time (ISO8601 format) for server.
- backup
Retention IntegerDays - Backup retention days for the server.
- geo
Redundant StringBackup - A value indicating whether Geo-Redundant backup is enabled on the server.
- earliest
Restore stringDate - The earliest restore point time (ISO8601 format) for server.
- backup
Retention numberDays - Backup retention days for the server.
- geo
Redundant stringBackup - A value indicating whether Geo-Redundant backup is enabled on the server.
- earliest_
restore_ strdate - The earliest restore point time (ISO8601 format) for server.
- backup_
retention_ intdays - Backup retention days for the server.
- geo_
redundant_ strbackup - A value indicating whether Geo-Redundant backup is enabled on the server.
- earliest
Restore StringDate - The earliest restore point time (ISO8601 format) for server.
- backup
Retention NumberDays - Backup retention days for the server.
- geo
Redundant StringBackup - A value indicating whether Geo-Redundant backup is enabled on the server.
CreateMode, CreateModeArgs
- Default
- Default
- Create
- Create
- Update
- Update
- Point
In Time Restore - PointInTimeRestore
- Geo
Restore - GeoRestore
- Replica
- Replica
- Create
Mode Default - Default
- Create
Mode Create - Create
- Create
Mode Update - Update
- Create
Mode Point In Time Restore - PointInTimeRestore
- Create
Mode Geo Restore - GeoRestore
- Create
Mode Replica - Replica
- Default
- Default
- Create
- Create
- Update
- Update
- Point
In Time Restore - PointInTimeRestore
- Geo
Restore - GeoRestore
- Replica
- Replica
- Default
- Default
- Create
- Create
- Update
- Update
- Point
In Time Restore - PointInTimeRestore
- Geo
Restore - GeoRestore
- Replica
- Replica
- DEFAULT
- Default
- CREATE
- Create
- UPDATE
- Update
- POINT_IN_TIME_RESTORE
- PointInTimeRestore
- GEO_RESTORE
- GeoRestore
- REPLICA
- Replica
- "Default"
- Default
- "Create"
- Create
- "Update"
- Update
- "Point
In Time Restore" - PointInTimeRestore
- "Geo
Restore" - GeoRestore
- "Replica"
- Replica
DataEncryption, DataEncryptionArgs
- Primary
Key stringURI - URI for the key for data encryption for primary server.
- Primary
User stringAssigned Identity Id - Resource Id for the User assigned identity to be used for data encryption for primary server.
- Type
string | Pulumi.
Azure Native. DBfor Postgre SQL. Arm Server Key Type - Data encryption type to depict if it is System Managed vs Azure Key vault.
- Primary
Key stringURI - URI for the key for data encryption for primary server.
- Primary
User stringAssigned Identity Id - Resource Id for the User assigned identity to be used for data encryption for primary server.
- Type
string | Arm
Server Key Type - Data encryption type to depict if it is System Managed vs Azure Key vault.
- primary
Key StringURI - URI for the key for data encryption for primary server.
- primary
User StringAssigned Identity Id - Resource Id for the User assigned identity to be used for data encryption for primary server.
- type
String | Arm
Server Key Type - Data encryption type to depict if it is System Managed vs Azure Key vault.
- primary
Key stringURI - URI for the key for data encryption for primary server.
- primary
User stringAssigned Identity Id - Resource Id for the User assigned identity to be used for data encryption for primary server.
- type
string | Arm
Server Key Type - Data encryption type to depict if it is System Managed vs Azure Key vault.
- primary_
key_ struri - URI for the key for data encryption for primary server.
- primary_
user_ strassigned_ identity_ id - Resource Id for the User assigned identity to be used for data encryption for primary server.
- type
str | Arm
Server Key Type - Data encryption type to depict if it is System Managed vs Azure Key vault.
- primary
Key StringURI - URI for the key for data encryption for primary server.
- primary
User StringAssigned Identity Id - Resource Id for the User assigned identity to be used for data encryption for primary server.
- type
String | "System
Managed" | "Azure Key Vault" - Data encryption type to depict if it is System Managed vs Azure Key vault.
DataEncryptionResponse, DataEncryptionResponseArgs
- Primary
Key stringURI - URI for the key for data encryption for primary server.
- Primary
User stringAssigned Identity Id - Resource Id for the User assigned identity to be used for data encryption for primary server.
- Type string
- Data encryption type to depict if it is System Managed vs Azure Key vault.
- Primary
Key stringURI - URI for the key for data encryption for primary server.
- Primary
User stringAssigned Identity Id - Resource Id for the User assigned identity to be used for data encryption for primary server.
- Type string
- Data encryption type to depict if it is System Managed vs Azure Key vault.
- primary
Key StringURI - URI for the key for data encryption for primary server.
- primary
User StringAssigned Identity Id - Resource Id for the User assigned identity to be used for data encryption for primary server.
- type String
- Data encryption type to depict if it is System Managed vs Azure Key vault.
- primary
Key stringURI - URI for the key for data encryption for primary server.
- primary
User stringAssigned Identity Id - Resource Id for the User assigned identity to be used for data encryption for primary server.
- type string
- Data encryption type to depict if it is System Managed vs Azure Key vault.
- primary_
key_ struri - URI for the key for data encryption for primary server.
- primary_
user_ strassigned_ identity_ id - Resource Id for the User assigned identity to be used for data encryption for primary server.
- type str
- Data encryption type to depict if it is System Managed vs Azure Key vault.
- primary
Key StringURI - URI for the key for data encryption for primary server.
- primary
User StringAssigned Identity Id - Resource Id for the User assigned identity to be used for data encryption for primary server.
- type String
- Data encryption type to depict if it is System Managed vs Azure Key vault.
GeoRedundantBackupEnum, GeoRedundantBackupEnumArgs
- Enabled
- Enabled
- Disabled
- Disabled
- Geo
Redundant Backup Enum Enabled - Enabled
- Geo
Redundant Backup Enum Disabled - Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- ENABLED
- Enabled
- DISABLED
- Disabled
- "Enabled"
- Enabled
- "Disabled"
- Disabled
HighAvailability, HighAvailabilityArgs
- Mode
string | Pulumi.
Azure Native. DBfor Postgre SQL. High Availability Mode - The HA mode for the server.
- Standby
Availability stringZone - availability zone information of the standby.
- Mode
string | High
Availability Mode - The HA mode for the server.
- Standby
Availability stringZone - availability zone information of the standby.
- mode
String | High
Availability Mode - The HA mode for the server.
- standby
Availability StringZone - availability zone information of the standby.
- mode
string | High
Availability Mode - The HA mode for the server.
- standby
Availability stringZone - availability zone information of the standby.
- mode
str | High
Availability Mode - The HA mode for the server.
- standby_
availability_ strzone - availability zone information of the standby.
- mode
String | "Disabled" | "Zone
Redundant" | "Same Zone" - The HA mode for the server.
- standby
Availability StringZone - availability zone information of the standby.
HighAvailabilityMode, HighAvailabilityModeArgs
- Disabled
- Disabled
- Zone
Redundant - ZoneRedundant
- Same
Zone - SameZone
- High
Availability Mode Disabled - Disabled
- High
Availability Mode Zone Redundant - ZoneRedundant
- High
Availability Mode Same Zone - SameZone
- Disabled
- Disabled
- Zone
Redundant - ZoneRedundant
- Same
Zone - SameZone
- Disabled
- Disabled
- Zone
Redundant - ZoneRedundant
- Same
Zone - SameZone
- DISABLED
- Disabled
- ZONE_REDUNDANT
- ZoneRedundant
- SAME_ZONE
- SameZone
- "Disabled"
- Disabled
- "Zone
Redundant" - ZoneRedundant
- "Same
Zone" - SameZone
HighAvailabilityResponse, HighAvailabilityResponseArgs
- State string
- A state of a HA server that is visible to user.
- Mode string
- The HA mode for the server.
- Standby
Availability stringZone - availability zone information of the standby.
- State string
- A state of a HA server that is visible to user.
- Mode string
- The HA mode for the server.
- Standby
Availability stringZone - availability zone information of the standby.
- state String
- A state of a HA server that is visible to user.
- mode String
- The HA mode for the server.
- standby
Availability StringZone - availability zone information of the standby.
- state string
- A state of a HA server that is visible to user.
- mode string
- The HA mode for the server.
- standby
Availability stringZone - availability zone information of the standby.
- state str
- A state of a HA server that is visible to user.
- mode str
- The HA mode for the server.
- standby_
availability_ strzone - availability zone information of the standby.
- state String
- A state of a HA server that is visible to user.
- mode String
- The HA mode for the server.
- standby
Availability StringZone - availability zone information of the standby.
IdentityType, IdentityTypeArgs
- None
- None
- User
Assigned - UserAssigned
- Identity
Type None - None
- Identity
Type User Assigned - UserAssigned
- None
- None
- User
Assigned - UserAssigned
- None
- None
- User
Assigned - UserAssigned
- NONE
- None
- USER_ASSIGNED
- UserAssigned
- "None"
- None
- "User
Assigned" - UserAssigned
MaintenanceWindow, MaintenanceWindowArgs
- Custom
Window string - indicates whether custom window is enabled or disabled
- Day
Of intWeek - day of week for maintenance window
- Start
Hour int - start hour for maintenance window
- Start
Minute int - start minute for maintenance window
- Custom
Window string - indicates whether custom window is enabled or disabled
- Day
Of intWeek - day of week for maintenance window
- Start
Hour int - start hour for maintenance window
- Start
Minute int - start minute for maintenance window
- custom
Window String - indicates whether custom window is enabled or disabled
- day
Of IntegerWeek - day of week for maintenance window
- start
Hour Integer - start hour for maintenance window
- start
Minute Integer - start minute for maintenance window
- custom
Window string - indicates whether custom window is enabled or disabled
- day
Of numberWeek - day of week for maintenance window
- start
Hour number - start hour for maintenance window
- start
Minute number - start minute for maintenance window
- custom_
window str - indicates whether custom window is enabled or disabled
- day_
of_ intweek - day of week for maintenance window
- start_
hour int - start hour for maintenance window
- start_
minute int - start minute for maintenance window
- custom
Window String - indicates whether custom window is enabled or disabled
- day
Of NumberWeek - day of week for maintenance window
- start
Hour Number - start hour for maintenance window
- start
Minute Number - start minute for maintenance window
MaintenanceWindowResponse, MaintenanceWindowResponseArgs
- Custom
Window string - indicates whether custom window is enabled or disabled
- Day
Of intWeek - day of week for maintenance window
- Start
Hour int - start hour for maintenance window
- Start
Minute int - start minute for maintenance window
- Custom
Window string - indicates whether custom window is enabled or disabled
- Day
Of intWeek - day of week for maintenance window
- Start
Hour int - start hour for maintenance window
- Start
Minute int - start minute for maintenance window
- custom
Window String - indicates whether custom window is enabled or disabled
- day
Of IntegerWeek - day of week for maintenance window
- start
Hour Integer - start hour for maintenance window
- start
Minute Integer - start minute for maintenance window
- custom
Window string - indicates whether custom window is enabled or disabled
- day
Of numberWeek - day of week for maintenance window
- start
Hour number - start hour for maintenance window
- start
Minute number - start minute for maintenance window
- custom_
window str - indicates whether custom window is enabled or disabled
- day_
of_ intweek - day of week for maintenance window
- start_
hour int - start hour for maintenance window
- start_
minute int - start minute for maintenance window
- custom
Window String - indicates whether custom window is enabled or disabled
- day
Of NumberWeek - day of week for maintenance window
- start
Hour Number - start hour for maintenance window
- start
Minute Number - start minute for maintenance window
Network, NetworkArgs
- Delegated
Subnet stringResource Id - 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 stringZone Arm Resource Id - 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.
- Delegated
Subnet stringResource Id - 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 stringZone Arm Resource Id - 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.
- delegated
Subnet StringResource Id - 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 StringZone Arm Resource Id - 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.
- delegated
Subnet stringResource Id - 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 stringZone Arm Resource Id - 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.
- delegated_
subnet_ strresource_ id - 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_ strzone_ arm_ resource_ id - 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.
- delegated
Subnet StringResource Id - 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 StringZone Arm Resource Id - 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.
NetworkResponse, NetworkResponseArgs
- Public
Network stringAccess - public network access is enabled or not
- Delegated
Subnet stringResource Id - 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 stringZone Arm Resource Id - 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 stringAccess - public network access is enabled or not
- Delegated
Subnet stringResource Id - 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 stringZone Arm Resource Id - 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 StringAccess - public network access is enabled or not
- delegated
Subnet StringResource Id - 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 StringZone Arm Resource Id - 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 stringAccess - public network access is enabled or not
- delegated
Subnet stringResource Id - 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 stringZone Arm Resource Id - 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_ straccess - public network access is enabled or not
- delegated_
subnet_ strresource_ id - 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_ strzone_ arm_ resource_ id - 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 StringAccess - public network access is enabled or not
- delegated
Subnet StringResource Id - 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 StringZone Arm Resource Id - 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.
PasswordAuthEnum, PasswordAuthEnumArgs
- Enabled
- Enabled
- Disabled
- Disabled
- Password
Auth Enum Enabled - Enabled
- Password
Auth Enum Disabled - Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- ENABLED
- Enabled
- DISABLED
- Disabled
- "Enabled"
- Enabled
- "Disabled"
- Disabled
ReplicationRole, ReplicationRoleArgs
- None
- None
- Primary
- Primary
- Async
Replica - AsyncReplica
- Geo
Async Replica - GeoAsyncReplica
- Replication
Role None - None
- Replication
Role Primary - Primary
- Replication
Role Async Replica - AsyncReplica
- Replication
Role Geo Async Replica - GeoAsyncReplica
- None
- None
- Primary
- Primary
- Async
Replica - AsyncReplica
- Geo
Async Replica - GeoAsyncReplica
- None
- None
- Primary
- Primary
- Async
Replica - AsyncReplica
- Geo
Async Replica - GeoAsyncReplica
- NONE
- None
- PRIMARY
- Primary
- ASYNC_REPLICA
- AsyncReplica
- GEO_ASYNC_REPLICA
- GeoAsyncReplica
- "None"
- None
- "Primary"
- Primary
- "Async
Replica" - AsyncReplica
- "Geo
Async Replica" - GeoAsyncReplica
ServerVersion, ServerVersionArgs
- Server
Version_14 - 14
- Server
Version_13 - 13
- Server
Version_12 - 12
- Server
Version_11 - 11
- Server
Version_14 - 14
- Server
Version_13 - 13
- Server
Version_12 - 12
- Server
Version_11 - 11
- _14
- 14
- _13
- 13
- _12
- 12
- _11
- 11
- Server
Version_14 - 14
- Server
Version_13 - 13
- Server
Version_12 - 12
- Server
Version_11 - 11
- SERVER_VERSION_14
- 14
- SERVER_VERSION_13
- 13
- SERVER_VERSION_12
- 12
- SERVER_VERSION_11
- 11
- "14"
- 14
- "13"
- 13
- "12"
- 12
- "11"
- 11
Sku, SkuArgs
- Name string
- The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3.
- Tier
string | Pulumi.
Azure Native. DBfor Postgre SQL. Sku Tier - The tier of the particular SKU, e.g. Burstable.
- name String
- The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3.
- tier
String | "Burstable" | "General
Purpose" | "Memory Optimized" - The tier of the particular SKU, e.g. Burstable.
SkuResponse, SkuResponseArgs
SkuTier, SkuTierArgs
- Burstable
- Burstable
- General
Purpose - GeneralPurpose
- Memory
Optimized - MemoryOptimized
- Sku
Tier Burstable - Burstable
- Sku
Tier General Purpose - GeneralPurpose
- Sku
Tier Memory Optimized - MemoryOptimized
- Burstable
- Burstable
- General
Purpose - GeneralPurpose
- Memory
Optimized - MemoryOptimized
- Burstable
- Burstable
- General
Purpose - GeneralPurpose
- Memory
Optimized - MemoryOptimized
- BURSTABLE
- Burstable
- GENERAL_PURPOSE
- GeneralPurpose
- MEMORY_OPTIMIZED
- MemoryOptimized
- "Burstable"
- Burstable
- "General
Purpose" - GeneralPurpose
- "Memory
Optimized" - MemoryOptimized
Storage, StorageArgs
- Storage
Size intGB - Max storage allowed for a server.
- Storage
Size intGB - Max storage allowed for a server.
- storage
Size IntegerGB - Max storage allowed for a server.
- storage
Size numberGB - Max storage allowed for a server.
- storage_
size_ intgb - Max storage allowed for a server.
- storage
Size NumberGB - Max storage allowed for a server.
StorageResponse, StorageResponseArgs
- Storage
Size intGB - Max storage allowed for a server.
- Storage
Size intGB - Max storage allowed for a server.
- storage
Size IntegerGB - Max storage allowed for a server.
- storage
Size numberGB - Max storage allowed for a server.
- storage_
size_ intgb - Max storage allowed for a server.
- storage
Size NumberGB - Max storage allowed for a server.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
UserAssignedIdentity, UserAssignedIdentityArgs
- Type
string | Pulumi.
Azure Native. DBfor Postgre SQL. Identity Type - the types of identities associated with this resource; currently restricted to 'None and UserAssigned'
- User
Assigned Dictionary<string, Pulumi.Identities Azure Native. DBfor Postgre SQL. Inputs. User Identity> - represents user assigned identities map.
- Type
string | Identity
Type - the types of identities associated with this resource; currently restricted to 'None and UserAssigned'
- User
Assigned map[string]UserIdentities Identity - represents user assigned identities map.
- type
String | Identity
Type - the types of identities associated with this resource; currently restricted to 'None and UserAssigned'
- user
Assigned Map<String,UserIdentities Identity> - represents user assigned identities map.
- type
string | Identity
Type - the types of identities associated with this resource; currently restricted to 'None and UserAssigned'
- user
Assigned {[key: string]: UserIdentities Identity} - represents user assigned identities map.
- type
str | Identity
Type - the types of identities associated with this resource; currently restricted to 'None and UserAssigned'
- user_
assigned_ Mapping[str, Useridentities Identity] - represents user assigned identities map.
- type
String | "None" | "User
Assigned" - the types of identities associated with this resource; currently restricted to 'None and UserAssigned'
- user
Assigned Map<Property Map>Identities - represents user assigned identities map.
UserAssignedIdentityResponse, UserAssignedIdentityResponseArgs
- Tenant
Id string - Tenant id of the server.
- Type string
- the types of identities associated with this resource; currently restricted to 'None and UserAssigned'
- User
Assigned Dictionary<string, Pulumi.Identities Azure Native. DBfor Postgre SQL. Inputs. User Identity Response> - represents user assigned identities map.
- Tenant
Id string - Tenant id of the server.
- Type string
- the types of identities associated with this resource; currently restricted to 'None and UserAssigned'
- User
Assigned map[string]UserIdentities Identity Response - represents user assigned identities map.
- tenant
Id String - Tenant id of the server.
- type String
- the types of identities associated with this resource; currently restricted to 'None and UserAssigned'
- user
Assigned Map<String,UserIdentities Identity Response> - represents user assigned identities map.
- tenant
Id string - Tenant id of the server.
- type string
- the types of identities associated with this resource; currently restricted to 'None and UserAssigned'
- user
Assigned {[key: string]: UserIdentities Identity Response} - represents user assigned identities map.
- tenant_
id str - Tenant id of the server.
- type str
- the types of identities associated with this resource; currently restricted to 'None and UserAssigned'
- user_
assigned_ Mapping[str, Useridentities Identity Response] - represents user assigned identities map.
- tenant
Id String - Tenant id of the server.
- type String
- the types of identities associated with this resource; currently restricted to 'None and UserAssigned'
- user
Assigned Map<Property Map>Identities - represents user assigned identities map.
UserIdentity, UserIdentityArgs
- Client
Id string - the client identifier of the Service Principal which this identity represents.
- Principal
Id string - the object identifier of the Service Principal which this identity represents.
- Client
Id string - the client identifier of the Service Principal which this identity represents.
- Principal
Id string - the object identifier of the Service Principal which this identity represents.
- client
Id String - the client identifier of the Service Principal which this identity represents.
- principal
Id String - the object identifier of the Service Principal which this identity represents.
- client
Id string - the client identifier of the Service Principal which this identity represents.
- principal
Id 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.
- client
Id String - the client identifier of the Service Principal which this identity represents.
- principal
Id String - the object identifier of the Service Principal which this identity represents.
UserIdentityResponse, UserIdentityResponseArgs
- Client
Id string - the client identifier of the Service Principal which this identity represents.
- Principal
Id string - the object identifier of the Service Principal which this identity represents.
- Client
Id string - the client identifier of the Service Principal which this identity represents.
- Principal
Id string - the object identifier of the Service Principal which this identity represents.
- client
Id String - the client identifier of the Service Principal which this identity represents.
- principal
Id String - the object identifier of the Service Principal which this identity represents.
- client
Id string - the client identifier of the Service Principal which this identity represents.
- principal
Id 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.
- client
Id String - the client identifier of the Service Principal which this identity represents.
- principal
Id 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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0