We recommend using Azure Native.
azure.postgresql.Server
Explore with Pulumi AI
Manages a PostgreSQL Server.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleServer = new azure.postgresql.Server("example", {
    name: "example-psqlserver",
    location: example.location,
    resourceGroupName: example.name,
    administratorLogin: "psqladmin",
    administratorLoginPassword: "H@Sh1CoR3!",
    skuName: "GP_Gen5_4",
    version: "11",
    storageMb: 640000,
    backupRetentionDays: 7,
    geoRedundantBackupEnabled: true,
    autoGrowEnabled: true,
    publicNetworkAccessEnabled: false,
    sslEnforcementEnabled: true,
    sslMinimalTlsVersionEnforced: "TLS1_2",
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_server = azure.postgresql.Server("example",
    name="example-psqlserver",
    location=example.location,
    resource_group_name=example.name,
    administrator_login="psqladmin",
    administrator_login_password="H@Sh1CoR3!",
    sku_name="GP_Gen5_4",
    version="11",
    storage_mb=640000,
    backup_retention_days=7,
    geo_redundant_backup_enabled=True,
    auto_grow_enabled=True,
    public_network_access_enabled=False,
    ssl_enforcement_enabled=True,
    ssl_minimal_tls_version_enforced="TLS1_2")
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/postgresql"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		_, err = postgresql.NewServer(ctx, "example", &postgresql.ServerArgs{
			Name:                         pulumi.String("example-psqlserver"),
			Location:                     example.Location,
			ResourceGroupName:            example.Name,
			AdministratorLogin:           pulumi.String("psqladmin"),
			AdministratorLoginPassword:   pulumi.String("H@Sh1CoR3!"),
			SkuName:                      pulumi.String("GP_Gen5_4"),
			Version:                      pulumi.String("11"),
			StorageMb:                    pulumi.Int(640000),
			BackupRetentionDays:          pulumi.Int(7),
			GeoRedundantBackupEnabled:    pulumi.Bool(true),
			AutoGrowEnabled:              pulumi.Bool(true),
			PublicNetworkAccessEnabled:   pulumi.Bool(false),
			SslEnforcementEnabled:        pulumi.Bool(true),
			SslMinimalTlsVersionEnforced: pulumi.String("TLS1_2"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });
    var exampleServer = new Azure.PostgreSql.Server("example", new()
    {
        Name = "example-psqlserver",
        Location = example.Location,
        ResourceGroupName = example.Name,
        AdministratorLogin = "psqladmin",
        AdministratorLoginPassword = "H@Sh1CoR3!",
        SkuName = "GP_Gen5_4",
        Version = "11",
        StorageMb = 640000,
        BackupRetentionDays = 7,
        GeoRedundantBackupEnabled = true,
        AutoGrowEnabled = true,
        PublicNetworkAccessEnabled = false,
        SslEnforcementEnabled = true,
        SslMinimalTlsVersionEnforced = "TLS1_2",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.postgresql.Server;
import com.pulumi.azure.postgresql.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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());
        var exampleServer = new Server("exampleServer", ServerArgs.builder()
            .name("example-psqlserver")
            .location(example.location())
            .resourceGroupName(example.name())
            .administratorLogin("psqladmin")
            .administratorLoginPassword("H@Sh1CoR3!")
            .skuName("GP_Gen5_4")
            .version("11")
            .storageMb(640000)
            .backupRetentionDays(7)
            .geoRedundantBackupEnabled(true)
            .autoGrowEnabled(true)
            .publicNetworkAccessEnabled(false)
            .sslEnforcementEnabled(true)
            .sslMinimalTlsVersionEnforced("TLS1_2")
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  exampleServer:
    type: azure:postgresql:Server
    name: example
    properties:
      name: example-psqlserver
      location: ${example.location}
      resourceGroupName: ${example.name}
      administratorLogin: psqladmin
      administratorLoginPassword: H@Sh1CoR3!
      skuName: GP_Gen5_4
      version: '11'
      storageMb: 640000
      backupRetentionDays: 7
      geoRedundantBackupEnabled: true
      autoGrowEnabled: true
      publicNetworkAccessEnabled: false
      sslEnforcementEnabled: true
      sslMinimalTlsVersionEnforced: TLS1_2
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,
           version: Optional[str] = None,
           ssl_enforcement_enabled: Optional[bool] = None,
           sku_name: Optional[str] = None,
           create_mode: Optional[str] = None,
           backup_retention_days: Optional[int] = None,
           creation_source_server_id: Optional[str] = None,
           geo_redundant_backup_enabled: Optional[bool] = None,
           identity: Optional[ServerIdentityArgs] = None,
           infrastructure_encryption_enabled: Optional[bool] = None,
           location: Optional[str] = None,
           name: Optional[str] = None,
           public_network_access_enabled: Optional[bool] = None,
           administrator_login: Optional[str] = None,
           restore_point_in_time: Optional[str] = None,
           auto_grow_enabled: Optional[bool] = None,
           administrator_login_password_wo_version: Optional[int] = None,
           ssl_minimal_tls_version_enforced: Optional[str] = None,
           storage_mb: Optional[int] = None,
           tags: Optional[Mapping[str, str]] = None,
           threat_detection_policy: Optional[ServerThreatDetectionPolicyArgs] = None,
           administrator_login_password: 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:postgresql: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 exampleserverResourceResourceFromPostgresqlserver = new Azure.PostgreSql.Server("exampleserverResourceResourceFromPostgresqlserver", new()
{
    ResourceGroupName = "string",
    Version = "string",
    SslEnforcementEnabled = false,
    SkuName = "string",
    CreateMode = "string",
    BackupRetentionDays = 0,
    CreationSourceServerId = "string",
    GeoRedundantBackupEnabled = false,
    Identity = new Azure.PostgreSql.Inputs.ServerIdentityArgs
    {
        Type = "string",
        PrincipalId = "string",
        TenantId = "string",
    },
    InfrastructureEncryptionEnabled = false,
    Location = "string",
    Name = "string",
    PublicNetworkAccessEnabled = false,
    AdministratorLogin = "string",
    RestorePointInTime = "string",
    AutoGrowEnabled = false,
    AdministratorLoginPasswordWoVersion = 0,
    SslMinimalTlsVersionEnforced = "string",
    StorageMb = 0,
    Tags = 
    {
        { "string", "string" },
    },
    ThreatDetectionPolicy = new Azure.PostgreSql.Inputs.ServerThreatDetectionPolicyArgs
    {
        DisabledAlerts = new[]
        {
            "string",
        },
        EmailAccountAdmins = false,
        EmailAddresses = new[]
        {
            "string",
        },
        Enabled = false,
        RetentionDays = 0,
        StorageAccountAccessKey = "string",
        StorageEndpoint = "string",
    },
    AdministratorLoginPassword = "string",
});
example, err := postgresql.NewServer(ctx, "exampleserverResourceResourceFromPostgresqlserver", &postgresql.ServerArgs{
	ResourceGroupName:         pulumi.String("string"),
	Version:                   pulumi.String("string"),
	SslEnforcementEnabled:     pulumi.Bool(false),
	SkuName:                   pulumi.String("string"),
	CreateMode:                pulumi.String("string"),
	BackupRetentionDays:       pulumi.Int(0),
	CreationSourceServerId:    pulumi.String("string"),
	GeoRedundantBackupEnabled: pulumi.Bool(false),
	Identity: &postgresql.ServerIdentityArgs{
		Type:        pulumi.String("string"),
		PrincipalId: pulumi.String("string"),
		TenantId:    pulumi.String("string"),
	},
	InfrastructureEncryptionEnabled:     pulumi.Bool(false),
	Location:                            pulumi.String("string"),
	Name:                                pulumi.String("string"),
	PublicNetworkAccessEnabled:          pulumi.Bool(false),
	AdministratorLogin:                  pulumi.String("string"),
	RestorePointInTime:                  pulumi.String("string"),
	AutoGrowEnabled:                     pulumi.Bool(false),
	AdministratorLoginPasswordWoVersion: pulumi.Int(0),
	SslMinimalTlsVersionEnforced:        pulumi.String("string"),
	StorageMb:                           pulumi.Int(0),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	ThreatDetectionPolicy: &postgresql.ServerThreatDetectionPolicyArgs{
		DisabledAlerts: pulumi.StringArray{
			pulumi.String("string"),
		},
		EmailAccountAdmins: pulumi.Bool(false),
		EmailAddresses: pulumi.StringArray{
			pulumi.String("string"),
		},
		Enabled:                 pulumi.Bool(false),
		RetentionDays:           pulumi.Int(0),
		StorageAccountAccessKey: pulumi.String("string"),
		StorageEndpoint:         pulumi.String("string"),
	},
	AdministratorLoginPassword: pulumi.String("string"),
})
var exampleserverResourceResourceFromPostgresqlserver = new Server("exampleserverResourceResourceFromPostgresqlserver", ServerArgs.builder()
    .resourceGroupName("string")
    .version("string")
    .sslEnforcementEnabled(false)
    .skuName("string")
    .createMode("string")
    .backupRetentionDays(0)
    .creationSourceServerId("string")
    .geoRedundantBackupEnabled(false)
    .identity(ServerIdentityArgs.builder()
        .type("string")
        .principalId("string")
        .tenantId("string")
        .build())
    .infrastructureEncryptionEnabled(false)
    .location("string")
    .name("string")
    .publicNetworkAccessEnabled(false)
    .administratorLogin("string")
    .restorePointInTime("string")
    .autoGrowEnabled(false)
    .administratorLoginPasswordWoVersion(0)
    .sslMinimalTlsVersionEnforced("string")
    .storageMb(0)
    .tags(Map.of("string", "string"))
    .threatDetectionPolicy(ServerThreatDetectionPolicyArgs.builder()
        .disabledAlerts("string")
        .emailAccountAdmins(false)
        .emailAddresses("string")
        .enabled(false)
        .retentionDays(0)
        .storageAccountAccessKey("string")
        .storageEndpoint("string")
        .build())
    .administratorLoginPassword("string")
    .build());
exampleserver_resource_resource_from_postgresqlserver = azure.postgresql.Server("exampleserverResourceResourceFromPostgresqlserver",
    resource_group_name="string",
    version="string",
    ssl_enforcement_enabled=False,
    sku_name="string",
    create_mode="string",
    backup_retention_days=0,
    creation_source_server_id="string",
    geo_redundant_backup_enabled=False,
    identity={
        "type": "string",
        "principal_id": "string",
        "tenant_id": "string",
    },
    infrastructure_encryption_enabled=False,
    location="string",
    name="string",
    public_network_access_enabled=False,
    administrator_login="string",
    restore_point_in_time="string",
    auto_grow_enabled=False,
    administrator_login_password_wo_version=0,
    ssl_minimal_tls_version_enforced="string",
    storage_mb=0,
    tags={
        "string": "string",
    },
    threat_detection_policy={
        "disabled_alerts": ["string"],
        "email_account_admins": False,
        "email_addresses": ["string"],
        "enabled": False,
        "retention_days": 0,
        "storage_account_access_key": "string",
        "storage_endpoint": "string",
    },
    administrator_login_password="string")
const exampleserverResourceResourceFromPostgresqlserver = new azure.postgresql.Server("exampleserverResourceResourceFromPostgresqlserver", {
    resourceGroupName: "string",
    version: "string",
    sslEnforcementEnabled: false,
    skuName: "string",
    createMode: "string",
    backupRetentionDays: 0,
    creationSourceServerId: "string",
    geoRedundantBackupEnabled: false,
    identity: {
        type: "string",
        principalId: "string",
        tenantId: "string",
    },
    infrastructureEncryptionEnabled: false,
    location: "string",
    name: "string",
    publicNetworkAccessEnabled: false,
    administratorLogin: "string",
    restorePointInTime: "string",
    autoGrowEnabled: false,
    administratorLoginPasswordWoVersion: 0,
    sslMinimalTlsVersionEnforced: "string",
    storageMb: 0,
    tags: {
        string: "string",
    },
    threatDetectionPolicy: {
        disabledAlerts: ["string"],
        emailAccountAdmins: false,
        emailAddresses: ["string"],
        enabled: false,
        retentionDays: 0,
        storageAccountAccessKey: "string",
        storageEndpoint: "string",
    },
    administratorLoginPassword: "string",
});
type: azure:postgresql:Server
properties:
    administratorLogin: string
    administratorLoginPassword: string
    administratorLoginPasswordWoVersion: 0
    autoGrowEnabled: false
    backupRetentionDays: 0
    createMode: string
    creationSourceServerId: string
    geoRedundantBackupEnabled: false
    identity:
        principalId: string
        tenantId: string
        type: string
    infrastructureEncryptionEnabled: false
    location: string
    name: string
    publicNetworkAccessEnabled: false
    resourceGroupName: string
    restorePointInTime: string
    skuName: string
    sslEnforcementEnabled: false
    sslMinimalTlsVersionEnforced: string
    storageMb: 0
    tags:
        string: string
    threatDetectionPolicy:
        disabledAlerts:
            - string
        emailAccountAdmins: false
        emailAddresses:
            - string
        enabled: false
        retentionDays: 0
        storageAccountAccessKey: string
        storageEndpoint: string
    version: string
Server Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Server resource accepts the following input properties:
- ResourceGroup stringName 
- The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created.
- SkuName string
- Specifies the SKU Name for this PostgreSQL Server. The name of the SKU, follows the - tier+- family+- corespattern (e.g.- B_Gen4_1,- GP_Gen5_8). For more information see the product documentation. Possible values are- B_Gen4_1,- B_Gen4_2,- B_Gen5_1,- B_Gen5_2,- GP_Gen4_2,- GP_Gen4_4,- GP_Gen4_8,- GP_Gen4_16,- GP_Gen4_32,- GP_Gen5_2,- GP_Gen5_4,- GP_Gen5_8,- GP_Gen5_16,- GP_Gen5_32,- GP_Gen5_64,- MO_Gen5_2,- MO_Gen5_4,- MO_Gen5_8,- MO_Gen5_16and- MO_Gen5_32.- NOTE: When replication is set up and - sku_nameis changed to a higher tier or more capacity for the primary, all replicas are scaled up to the same tier/capacity. This is an Azure requirement, for more information see the replica scaling documentation
- SslEnforcement boolEnabled 
- Specifies if SSL should be enforced on connections. Possible values are - trueand- false.- NOTE: - ssl_minimal_tls_version_enforcedmust be set to- TLSEnforcementDisabledwhen- ssl_enforcement_enabledis set to- false.
- Version string
- Specifies the version of PostgreSQL to use. Valid values are 9.5,9.6,10,10.0,10.2and11. Changing this forces a new resource to be created.
- AdministratorLogin string
- The Administrator login for the PostgreSQL Server. Required when create_modeisDefault. Changing this forces a new resource to be created.
- AdministratorLogin stringPassword 
- The Password associated with the administrator_loginfor the PostgreSQL Server.
- AdministratorLogin intPassword Wo Version 
- An integer value used to trigger an update for administrator_login_password_wo. This property should be incremented when updatingadministrator_login_password_wo.
- AutoGrow boolEnabled 
- Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. Defaults to true.
- BackupRetention intDays 
- Backup retention days for the server, supported values are between 7and35days.
- CreateMode string
- The creation mode. Can be used to restore or replicate existing servers. Possible values are Default,Replica,GeoRestore, andPointInTimeRestore. Defaults toDefault.
- CreationSource stringServer Id 
- For creation modes other than Default, the source server ID to use.
- GeoRedundant boolBackup Enabled 
- Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier. Changing this forces a new resource to be created.
- Identity
ServerIdentity 
- An identityblock as defined below.
- InfrastructureEncryption boolEnabled 
- Whether or not infrastructure is encrypted for this server. Changing this forces a new resource to be created. - NOTE: This property is currently still in development and not supported by Microsoft. If the - infrastructure_encryption_enabledattribute is set to- truethe PostgreSQL instance will incur a substantial performance degradation due to a second encryption pass on top of the existing default encryption that is already provided by Azure Storage. It is strongly suggested to leave this value- falseas not doing so can lead to unclear error messages.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created.
- PublicNetwork boolAccess Enabled 
- Whether or not public network access is allowed for this server. Defaults to true.
- RestorePoint stringIn Time 
- When create_modeisPointInTimeRestorethe point in time to restore fromcreation_source_server_id. It should be provided in RFC3339 format, e.g.2013-11-08T22:00:40Z.
- SslMinimal stringTls Version Enforced 
- The minimum TLS version to support on the sever. Possible values are TLSEnforcementDisabled,TLS1_0,TLS1_1, andTLS1_2. Defaults toTLS1_2.
- StorageMb int
- Max storage allowed for a server. Possible values are between 5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and16777216MB(16TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- ThreatDetection ServerPolicy Threat Detection Policy 
- Threat detection policy configuration, known in the API as Server Security Alerts Policy. The threat_detection_policyblock supports fields documented below.
- ResourceGroup stringName 
- The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created.
- SkuName string
- Specifies the SKU Name for this PostgreSQL Server. The name of the SKU, follows the - tier+- family+- corespattern (e.g.- B_Gen4_1,- GP_Gen5_8). For more information see the product documentation. Possible values are- B_Gen4_1,- B_Gen4_2,- B_Gen5_1,- B_Gen5_2,- GP_Gen4_2,- GP_Gen4_4,- GP_Gen4_8,- GP_Gen4_16,- GP_Gen4_32,- GP_Gen5_2,- GP_Gen5_4,- GP_Gen5_8,- GP_Gen5_16,- GP_Gen5_32,- GP_Gen5_64,- MO_Gen5_2,- MO_Gen5_4,- MO_Gen5_8,- MO_Gen5_16and- MO_Gen5_32.- NOTE: When replication is set up and - sku_nameis changed to a higher tier or more capacity for the primary, all replicas are scaled up to the same tier/capacity. This is an Azure requirement, for more information see the replica scaling documentation
- SslEnforcement boolEnabled 
- Specifies if SSL should be enforced on connections. Possible values are - trueand- false.- NOTE: - ssl_minimal_tls_version_enforcedmust be set to- TLSEnforcementDisabledwhen- ssl_enforcement_enabledis set to- false.
- Version string
- Specifies the version of PostgreSQL to use. Valid values are 9.5,9.6,10,10.0,10.2and11. Changing this forces a new resource to be created.
- AdministratorLogin string
- The Administrator login for the PostgreSQL Server. Required when create_modeisDefault. Changing this forces a new resource to be created.
- AdministratorLogin stringPassword 
- The Password associated with the administrator_loginfor the PostgreSQL Server.
- AdministratorLogin intPassword Wo Version 
- An integer value used to trigger an update for administrator_login_password_wo. This property should be incremented when updatingadministrator_login_password_wo.
- AutoGrow boolEnabled 
- Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. Defaults to true.
- BackupRetention intDays 
- Backup retention days for the server, supported values are between 7and35days.
- CreateMode string
- The creation mode. Can be used to restore or replicate existing servers. Possible values are Default,Replica,GeoRestore, andPointInTimeRestore. Defaults toDefault.
- CreationSource stringServer Id 
- For creation modes other than Default, the source server ID to use.
- GeoRedundant boolBackup Enabled 
- Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier. Changing this forces a new resource to be created.
- Identity
ServerIdentity Args 
- An identityblock as defined below.
- InfrastructureEncryption boolEnabled 
- Whether or not infrastructure is encrypted for this server. Changing this forces a new resource to be created. - NOTE: This property is currently still in development and not supported by Microsoft. If the - infrastructure_encryption_enabledattribute is set to- truethe PostgreSQL instance will incur a substantial performance degradation due to a second encryption pass on top of the existing default encryption that is already provided by Azure Storage. It is strongly suggested to leave this value- falseas not doing so can lead to unclear error messages.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created.
- PublicNetwork boolAccess Enabled 
- Whether or not public network access is allowed for this server. Defaults to true.
- RestorePoint stringIn Time 
- When create_modeisPointInTimeRestorethe point in time to restore fromcreation_source_server_id. It should be provided in RFC3339 format, e.g.2013-11-08T22:00:40Z.
- SslMinimal stringTls Version Enforced 
- The minimum TLS version to support on the sever. Possible values are TLSEnforcementDisabled,TLS1_0,TLS1_1, andTLS1_2. Defaults toTLS1_2.
- StorageMb int
- Max storage allowed for a server. Possible values are between 5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and16777216MB(16TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.
- map[string]string
- A mapping of tags to assign to the resource.
- ThreatDetection ServerPolicy Threat Detection Policy Args 
- Threat detection policy configuration, known in the API as Server Security Alerts Policy. The threat_detection_policyblock supports fields documented below.
- resourceGroup StringName 
- The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created.
- skuName String
- Specifies the SKU Name for this PostgreSQL Server. The name of the SKU, follows the - tier+- family+- corespattern (e.g.- B_Gen4_1,- GP_Gen5_8). For more information see the product documentation. Possible values are- B_Gen4_1,- B_Gen4_2,- B_Gen5_1,- B_Gen5_2,- GP_Gen4_2,- GP_Gen4_4,- GP_Gen4_8,- GP_Gen4_16,- GP_Gen4_32,- GP_Gen5_2,- GP_Gen5_4,- GP_Gen5_8,- GP_Gen5_16,- GP_Gen5_32,- GP_Gen5_64,- MO_Gen5_2,- MO_Gen5_4,- MO_Gen5_8,- MO_Gen5_16and- MO_Gen5_32.- NOTE: When replication is set up and - sku_nameis changed to a higher tier or more capacity for the primary, all replicas are scaled up to the same tier/capacity. This is an Azure requirement, for more information see the replica scaling documentation
- sslEnforcement BooleanEnabled 
- Specifies if SSL should be enforced on connections. Possible values are - trueand- false.- NOTE: - ssl_minimal_tls_version_enforcedmust be set to- TLSEnforcementDisabledwhen- ssl_enforcement_enabledis set to- false.
- version String
- Specifies the version of PostgreSQL to use. Valid values are 9.5,9.6,10,10.0,10.2and11. Changing this forces a new resource to be created.
- administratorLogin String
- The Administrator login for the PostgreSQL Server. Required when create_modeisDefault. Changing this forces a new resource to be created.
- administratorLogin StringPassword 
- The Password associated with the administrator_loginfor the PostgreSQL Server.
- administratorLogin IntegerPassword Wo Version 
- An integer value used to trigger an update for administrator_login_password_wo. This property should be incremented when updatingadministrator_login_password_wo.
- autoGrow BooleanEnabled 
- Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. Defaults to true.
- backupRetention IntegerDays 
- Backup retention days for the server, supported values are between 7and35days.
- createMode String
- The creation mode. Can be used to restore or replicate existing servers. Possible values are Default,Replica,GeoRestore, andPointInTimeRestore. Defaults toDefault.
- creationSource StringServer Id 
- For creation modes other than Default, the source server ID to use.
- geoRedundant BooleanBackup Enabled 
- Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier. Changing this forces a new resource to be created.
- identity
ServerIdentity 
- An identityblock as defined below.
- infrastructureEncryption BooleanEnabled 
- Whether or not infrastructure is encrypted for this server. Changing this forces a new resource to be created. - NOTE: This property is currently still in development and not supported by Microsoft. If the - infrastructure_encryption_enabledattribute is set to- truethe PostgreSQL instance will incur a substantial performance degradation due to a second encryption pass on top of the existing default encryption that is already provided by Azure Storage. It is strongly suggested to leave this value- falseas not doing so can lead to unclear error messages.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created.
- publicNetwork BooleanAccess Enabled 
- Whether or not public network access is allowed for this server. Defaults to true.
- restorePoint StringIn Time 
- When create_modeisPointInTimeRestorethe point in time to restore fromcreation_source_server_id. It should be provided in RFC3339 format, e.g.2013-11-08T22:00:40Z.
- sslMinimal StringTls Version Enforced 
- The minimum TLS version to support on the sever. Possible values are TLSEnforcementDisabled,TLS1_0,TLS1_1, andTLS1_2. Defaults toTLS1_2.
- storageMb Integer
- Max storage allowed for a server. Possible values are between 5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and16777216MB(16TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.
- Map<String,String>
- A mapping of tags to assign to the resource.
- threatDetection ServerPolicy Threat Detection Policy 
- Threat detection policy configuration, known in the API as Server Security Alerts Policy. The threat_detection_policyblock supports fields documented below.
- resourceGroup stringName 
- The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created.
- skuName string
- Specifies the SKU Name for this PostgreSQL Server. The name of the SKU, follows the - tier+- family+- corespattern (e.g.- B_Gen4_1,- GP_Gen5_8). For more information see the product documentation. Possible values are- B_Gen4_1,- B_Gen4_2,- B_Gen5_1,- B_Gen5_2,- GP_Gen4_2,- GP_Gen4_4,- GP_Gen4_8,- GP_Gen4_16,- GP_Gen4_32,- GP_Gen5_2,- GP_Gen5_4,- GP_Gen5_8,- GP_Gen5_16,- GP_Gen5_32,- GP_Gen5_64,- MO_Gen5_2,- MO_Gen5_4,- MO_Gen5_8,- MO_Gen5_16and- MO_Gen5_32.- NOTE: When replication is set up and - sku_nameis changed to a higher tier or more capacity for the primary, all replicas are scaled up to the same tier/capacity. This is an Azure requirement, for more information see the replica scaling documentation
- sslEnforcement booleanEnabled 
- Specifies if SSL should be enforced on connections. Possible values are - trueand- false.- NOTE: - ssl_minimal_tls_version_enforcedmust be set to- TLSEnforcementDisabledwhen- ssl_enforcement_enabledis set to- false.
- version string
- Specifies the version of PostgreSQL to use. Valid values are 9.5,9.6,10,10.0,10.2and11. Changing this forces a new resource to be created.
- administratorLogin string
- The Administrator login for the PostgreSQL Server. Required when create_modeisDefault. Changing this forces a new resource to be created.
- administratorLogin stringPassword 
- The Password associated with the administrator_loginfor the PostgreSQL Server.
- administratorLogin numberPassword Wo Version 
- An integer value used to trigger an update for administrator_login_password_wo. This property should be incremented when updatingadministrator_login_password_wo.
- autoGrow booleanEnabled 
- Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. Defaults to true.
- backupRetention numberDays 
- Backup retention days for the server, supported values are between 7and35days.
- createMode string
- The creation mode. Can be used to restore or replicate existing servers. Possible values are Default,Replica,GeoRestore, andPointInTimeRestore. Defaults toDefault.
- creationSource stringServer Id 
- For creation modes other than Default, the source server ID to use.
- geoRedundant booleanBackup Enabled 
- Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier. Changing this forces a new resource to be created.
- identity
ServerIdentity 
- An identityblock as defined below.
- infrastructureEncryption booleanEnabled 
- Whether or not infrastructure is encrypted for this server. Changing this forces a new resource to be created. - NOTE: This property is currently still in development and not supported by Microsoft. If the - infrastructure_encryption_enabledattribute is set to- truethe PostgreSQL instance will incur a substantial performance degradation due to a second encryption pass on top of the existing default encryption that is already provided by Azure Storage. It is strongly suggested to leave this value- falseas not doing so can lead to unclear error messages.
- location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
- Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created.
- publicNetwork booleanAccess Enabled 
- Whether or not public network access is allowed for this server. Defaults to true.
- restorePoint stringIn Time 
- When create_modeisPointInTimeRestorethe point in time to restore fromcreation_source_server_id. It should be provided in RFC3339 format, e.g.2013-11-08T22:00:40Z.
- sslMinimal stringTls Version Enforced 
- The minimum TLS version to support on the sever. Possible values are TLSEnforcementDisabled,TLS1_0,TLS1_1, andTLS1_2. Defaults toTLS1_2.
- storageMb number
- Max storage allowed for a server. Possible values are between 5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and16777216MB(16TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- threatDetection ServerPolicy Threat Detection Policy 
- Threat detection policy configuration, known in the API as Server Security Alerts Policy. The threat_detection_policyblock supports fields documented below.
- resource_group_ strname 
- The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created.
- sku_name str
- Specifies the SKU Name for this PostgreSQL Server. The name of the SKU, follows the - tier+- family+- corespattern (e.g.- B_Gen4_1,- GP_Gen5_8). For more information see the product documentation. Possible values are- B_Gen4_1,- B_Gen4_2,- B_Gen5_1,- B_Gen5_2,- GP_Gen4_2,- GP_Gen4_4,- GP_Gen4_8,- GP_Gen4_16,- GP_Gen4_32,- GP_Gen5_2,- GP_Gen5_4,- GP_Gen5_8,- GP_Gen5_16,- GP_Gen5_32,- GP_Gen5_64,- MO_Gen5_2,- MO_Gen5_4,- MO_Gen5_8,- MO_Gen5_16and- MO_Gen5_32.- NOTE: When replication is set up and - sku_nameis changed to a higher tier or more capacity for the primary, all replicas are scaled up to the same tier/capacity. This is an Azure requirement, for more information see the replica scaling documentation
- ssl_enforcement_ boolenabled 
- Specifies if SSL should be enforced on connections. Possible values are - trueand- false.- NOTE: - ssl_minimal_tls_version_enforcedmust be set to- TLSEnforcementDisabledwhen- ssl_enforcement_enabledis set to- false.
- version str
- Specifies the version of PostgreSQL to use. Valid values are 9.5,9.6,10,10.0,10.2and11. Changing this forces a new resource to be created.
- administrator_login str
- The Administrator login for the PostgreSQL Server. Required when create_modeisDefault. Changing this forces a new resource to be created.
- administrator_login_ strpassword 
- The Password associated with the administrator_loginfor the PostgreSQL Server.
- administrator_login_ intpassword_ wo_ version 
- An integer value used to trigger an update for administrator_login_password_wo. This property should be incremented when updatingadministrator_login_password_wo.
- auto_grow_ boolenabled 
- Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. Defaults to true.
- backup_retention_ intdays 
- Backup retention days for the server, supported values are between 7and35days.
- create_mode str
- The creation mode. Can be used to restore or replicate existing servers. Possible values are Default,Replica,GeoRestore, andPointInTimeRestore. Defaults toDefault.
- creation_source_ strserver_ id 
- For creation modes other than Default, the source server ID to use.
- geo_redundant_ boolbackup_ enabled 
- Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier. Changing this forces a new resource to be created.
- identity
ServerIdentity Args 
- An identityblock as defined below.
- infrastructure_encryption_ boolenabled 
- Whether or not infrastructure is encrypted for this server. Changing this forces a new resource to be created. - NOTE: This property is currently still in development and not supported by Microsoft. If the - infrastructure_encryption_enabledattribute is set to- truethe PostgreSQL instance will incur a substantial performance degradation due to a second encryption pass on top of the existing default encryption that is already provided by Azure Storage. It is strongly suggested to leave this value- falseas not doing so can lead to unclear error messages.
- location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
- Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created.
- public_network_ boolaccess_ enabled 
- Whether or not public network access is allowed for this server. Defaults to true.
- restore_point_ strin_ time 
- When create_modeisPointInTimeRestorethe point in time to restore fromcreation_source_server_id. It should be provided in RFC3339 format, e.g.2013-11-08T22:00:40Z.
- ssl_minimal_ strtls_ version_ enforced 
- The minimum TLS version to support on the sever. Possible values are TLSEnforcementDisabled,TLS1_0,TLS1_1, andTLS1_2. Defaults toTLS1_2.
- storage_mb int
- Max storage allowed for a server. Possible values are between 5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and16777216MB(16TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- threat_detection_ Serverpolicy Threat Detection Policy Args 
- Threat detection policy configuration, known in the API as Server Security Alerts Policy. The threat_detection_policyblock supports fields documented below.
- resourceGroup StringName 
- The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created.
- skuName String
- Specifies the SKU Name for this PostgreSQL Server. The name of the SKU, follows the - tier+- family+- corespattern (e.g.- B_Gen4_1,- GP_Gen5_8). For more information see the product documentation. Possible values are- B_Gen4_1,- B_Gen4_2,- B_Gen5_1,- B_Gen5_2,- GP_Gen4_2,- GP_Gen4_4,- GP_Gen4_8,- GP_Gen4_16,- GP_Gen4_32,- GP_Gen5_2,- GP_Gen5_4,- GP_Gen5_8,- GP_Gen5_16,- GP_Gen5_32,- GP_Gen5_64,- MO_Gen5_2,- MO_Gen5_4,- MO_Gen5_8,- MO_Gen5_16and- MO_Gen5_32.- NOTE: When replication is set up and - sku_nameis changed to a higher tier or more capacity for the primary, all replicas are scaled up to the same tier/capacity. This is an Azure requirement, for more information see the replica scaling documentation
- sslEnforcement BooleanEnabled 
- Specifies if SSL should be enforced on connections. Possible values are - trueand- false.- NOTE: - ssl_minimal_tls_version_enforcedmust be set to- TLSEnforcementDisabledwhen- ssl_enforcement_enabledis set to- false.
- version String
- Specifies the version of PostgreSQL to use. Valid values are 9.5,9.6,10,10.0,10.2and11. Changing this forces a new resource to be created.
- administratorLogin String
- The Administrator login for the PostgreSQL Server. Required when create_modeisDefault. Changing this forces a new resource to be created.
- administratorLogin StringPassword 
- The Password associated with the administrator_loginfor the PostgreSQL Server.
- administratorLogin NumberPassword Wo Version 
- An integer value used to trigger an update for administrator_login_password_wo. This property should be incremented when updatingadministrator_login_password_wo.
- autoGrow BooleanEnabled 
- Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. Defaults to true.
- backupRetention NumberDays 
- Backup retention days for the server, supported values are between 7and35days.
- createMode String
- The creation mode. Can be used to restore or replicate existing servers. Possible values are Default,Replica,GeoRestore, andPointInTimeRestore. Defaults toDefault.
- creationSource StringServer Id 
- For creation modes other than Default, the source server ID to use.
- geoRedundant BooleanBackup Enabled 
- Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier. Changing this forces a new resource to be created.
- identity Property Map
- An identityblock as defined below.
- infrastructureEncryption BooleanEnabled 
- Whether or not infrastructure is encrypted for this server. Changing this forces a new resource to be created. - NOTE: This property is currently still in development and not supported by Microsoft. If the - infrastructure_encryption_enabledattribute is set to- truethe PostgreSQL instance will incur a substantial performance degradation due to a second encryption pass on top of the existing default encryption that is already provided by Azure Storage. It is strongly suggested to leave this value- falseas not doing so can lead to unclear error messages.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created.
- publicNetwork BooleanAccess Enabled 
- Whether or not public network access is allowed for this server. Defaults to true.
- restorePoint StringIn Time 
- When create_modeisPointInTimeRestorethe point in time to restore fromcreation_source_server_id. It should be provided in RFC3339 format, e.g.2013-11-08T22:00:40Z.
- sslMinimal StringTls Version Enforced 
- The minimum TLS version to support on the sever. Possible values are TLSEnforcementDisabled,TLS1_0,TLS1_1, andTLS1_2. Defaults toTLS1_2.
- storageMb Number
- Max storage allowed for a server. Possible values are between 5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and16777216MB(16TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.
- Map<String>
- A mapping of tags to assign to the resource.
- threatDetection Property MapPolicy 
- Threat detection policy configuration, known in the API as Server Security Alerts Policy. The threat_detection_policyblock supports fields documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Server resource produces the following output properties:
Look up Existing Server Resource
Get an existing Server resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ServerState, opts?: CustomResourceOptions): Server@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        administrator_login: Optional[str] = None,
        administrator_login_password: Optional[str] = None,
        administrator_login_password_wo_version: Optional[int] = None,
        auto_grow_enabled: Optional[bool] = None,
        backup_retention_days: Optional[int] = None,
        create_mode: Optional[str] = None,
        creation_source_server_id: Optional[str] = None,
        fqdn: Optional[str] = None,
        geo_redundant_backup_enabled: Optional[bool] = None,
        identity: Optional[ServerIdentityArgs] = None,
        infrastructure_encryption_enabled: Optional[bool] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        public_network_access_enabled: Optional[bool] = None,
        resource_group_name: Optional[str] = None,
        restore_point_in_time: Optional[str] = None,
        sku_name: Optional[str] = None,
        ssl_enforcement_enabled: Optional[bool] = None,
        ssl_minimal_tls_version_enforced: Optional[str] = None,
        storage_mb: Optional[int] = None,
        tags: Optional[Mapping[str, str]] = None,
        threat_detection_policy: Optional[ServerThreatDetectionPolicyArgs] = None,
        version: Optional[str] = None) -> Serverfunc GetServer(ctx *Context, name string, id IDInput, state *ServerState, opts ...ResourceOption) (*Server, error)public static Server Get(string name, Input<string> id, ServerState? state, CustomResourceOptions? opts = null)public static Server get(String name, Output<String> id, ServerState state, CustomResourceOptions options)resources:  _:    type: azure:postgresql:Server    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- AdministratorLogin string
- The Administrator login for the PostgreSQL Server. Required when create_modeisDefault. Changing this forces a new resource to be created.
- AdministratorLogin stringPassword 
- The Password associated with the administrator_loginfor the PostgreSQL Server.
- AdministratorLogin intPassword Wo Version 
- An integer value used to trigger an update for administrator_login_password_wo. This property should be incremented when updatingadministrator_login_password_wo.
- AutoGrow boolEnabled 
- Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. Defaults to true.
- BackupRetention intDays 
- Backup retention days for the server, supported values are between 7and35days.
- CreateMode string
- The creation mode. Can be used to restore or replicate existing servers. Possible values are Default,Replica,GeoRestore, andPointInTimeRestore. Defaults toDefault.
- CreationSource stringServer Id 
- For creation modes other than Default, the source server ID to use.
- Fqdn string
- The FQDN of the PostgreSQL Server.
- GeoRedundant boolBackup Enabled 
- Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier. Changing this forces a new resource to be created.
- Identity
ServerIdentity 
- An identityblock as defined below.
- InfrastructureEncryption boolEnabled 
- Whether or not infrastructure is encrypted for this server. Changing this forces a new resource to be created. - NOTE: This property is currently still in development and not supported by Microsoft. If the - infrastructure_encryption_enabledattribute is set to- truethe PostgreSQL instance will incur a substantial performance degradation due to a second encryption pass on top of the existing default encryption that is already provided by Azure Storage. It is strongly suggested to leave this value- falseas not doing so can lead to unclear error messages.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created.
- PublicNetwork boolAccess Enabled 
- Whether or not public network access is allowed for this server. Defaults to true.
- ResourceGroup stringName 
- The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created.
- RestorePoint stringIn Time 
- When create_modeisPointInTimeRestorethe point in time to restore fromcreation_source_server_id. It should be provided in RFC3339 format, e.g.2013-11-08T22:00:40Z.
- SkuName string
- Specifies the SKU Name for this PostgreSQL Server. The name of the SKU, follows the - tier+- family+- corespattern (e.g.- B_Gen4_1,- GP_Gen5_8). For more information see the product documentation. Possible values are- B_Gen4_1,- B_Gen4_2,- B_Gen5_1,- B_Gen5_2,- GP_Gen4_2,- GP_Gen4_4,- GP_Gen4_8,- GP_Gen4_16,- GP_Gen4_32,- GP_Gen5_2,- GP_Gen5_4,- GP_Gen5_8,- GP_Gen5_16,- GP_Gen5_32,- GP_Gen5_64,- MO_Gen5_2,- MO_Gen5_4,- MO_Gen5_8,- MO_Gen5_16and- MO_Gen5_32.- NOTE: When replication is set up and - sku_nameis changed to a higher tier or more capacity for the primary, all replicas are scaled up to the same tier/capacity. This is an Azure requirement, for more information see the replica scaling documentation
- SslEnforcement boolEnabled 
- Specifies if SSL should be enforced on connections. Possible values are - trueand- false.- NOTE: - ssl_minimal_tls_version_enforcedmust be set to- TLSEnforcementDisabledwhen- ssl_enforcement_enabledis set to- false.
- SslMinimal stringTls Version Enforced 
- The minimum TLS version to support on the sever. Possible values are TLSEnforcementDisabled,TLS1_0,TLS1_1, andTLS1_2. Defaults toTLS1_2.
- StorageMb int
- Max storage allowed for a server. Possible values are between 5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and16777216MB(16TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- ThreatDetection ServerPolicy Threat Detection Policy 
- Threat detection policy configuration, known in the API as Server Security Alerts Policy. The threat_detection_policyblock supports fields documented below.
- Version string
- Specifies the version of PostgreSQL to use. Valid values are 9.5,9.6,10,10.0,10.2and11. Changing this forces a new resource to be created.
- AdministratorLogin string
- The Administrator login for the PostgreSQL Server. Required when create_modeisDefault. Changing this forces a new resource to be created.
- AdministratorLogin stringPassword 
- The Password associated with the administrator_loginfor the PostgreSQL Server.
- AdministratorLogin intPassword Wo Version 
- An integer value used to trigger an update for administrator_login_password_wo. This property should be incremented when updatingadministrator_login_password_wo.
- AutoGrow boolEnabled 
- Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. Defaults to true.
- BackupRetention intDays 
- Backup retention days for the server, supported values are between 7and35days.
- CreateMode string
- The creation mode. Can be used to restore or replicate existing servers. Possible values are Default,Replica,GeoRestore, andPointInTimeRestore. Defaults toDefault.
- CreationSource stringServer Id 
- For creation modes other than Default, the source server ID to use.
- Fqdn string
- The FQDN of the PostgreSQL Server.
- GeoRedundant boolBackup Enabled 
- Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier. Changing this forces a new resource to be created.
- Identity
ServerIdentity Args 
- An identityblock as defined below.
- InfrastructureEncryption boolEnabled 
- Whether or not infrastructure is encrypted for this server. Changing this forces a new resource to be created. - NOTE: This property is currently still in development and not supported by Microsoft. If the - infrastructure_encryption_enabledattribute is set to- truethe PostgreSQL instance will incur a substantial performance degradation due to a second encryption pass on top of the existing default encryption that is already provided by Azure Storage. It is strongly suggested to leave this value- falseas not doing so can lead to unclear error messages.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created.
- PublicNetwork boolAccess Enabled 
- Whether or not public network access is allowed for this server. Defaults to true.
- ResourceGroup stringName 
- The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created.
- RestorePoint stringIn Time 
- When create_modeisPointInTimeRestorethe point in time to restore fromcreation_source_server_id. It should be provided in RFC3339 format, e.g.2013-11-08T22:00:40Z.
- SkuName string
- Specifies the SKU Name for this PostgreSQL Server. The name of the SKU, follows the - tier+- family+- corespattern (e.g.- B_Gen4_1,- GP_Gen5_8). For more information see the product documentation. Possible values are- B_Gen4_1,- B_Gen4_2,- B_Gen5_1,- B_Gen5_2,- GP_Gen4_2,- GP_Gen4_4,- GP_Gen4_8,- GP_Gen4_16,- GP_Gen4_32,- GP_Gen5_2,- GP_Gen5_4,- GP_Gen5_8,- GP_Gen5_16,- GP_Gen5_32,- GP_Gen5_64,- MO_Gen5_2,- MO_Gen5_4,- MO_Gen5_8,- MO_Gen5_16and- MO_Gen5_32.- NOTE: When replication is set up and - sku_nameis changed to a higher tier or more capacity for the primary, all replicas are scaled up to the same tier/capacity. This is an Azure requirement, for more information see the replica scaling documentation
- SslEnforcement boolEnabled 
- Specifies if SSL should be enforced on connections. Possible values are - trueand- false.- NOTE: - ssl_minimal_tls_version_enforcedmust be set to- TLSEnforcementDisabledwhen- ssl_enforcement_enabledis set to- false.
- SslMinimal stringTls Version Enforced 
- The minimum TLS version to support on the sever. Possible values are TLSEnforcementDisabled,TLS1_0,TLS1_1, andTLS1_2. Defaults toTLS1_2.
- StorageMb int
- Max storage allowed for a server. Possible values are between 5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and16777216MB(16TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.
- map[string]string
- A mapping of tags to assign to the resource.
- ThreatDetection ServerPolicy Threat Detection Policy Args 
- Threat detection policy configuration, known in the API as Server Security Alerts Policy. The threat_detection_policyblock supports fields documented below.
- Version string
- Specifies the version of PostgreSQL to use. Valid values are 9.5,9.6,10,10.0,10.2and11. Changing this forces a new resource to be created.
- administratorLogin String
- The Administrator login for the PostgreSQL Server. Required when create_modeisDefault. Changing this forces a new resource to be created.
- administratorLogin StringPassword 
- The Password associated with the administrator_loginfor the PostgreSQL Server.
- administratorLogin IntegerPassword Wo Version 
- An integer value used to trigger an update for administrator_login_password_wo. This property should be incremented when updatingadministrator_login_password_wo.
- autoGrow BooleanEnabled 
- Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. Defaults to true.
- backupRetention IntegerDays 
- Backup retention days for the server, supported values are between 7and35days.
- createMode String
- The creation mode. Can be used to restore or replicate existing servers. Possible values are Default,Replica,GeoRestore, andPointInTimeRestore. Defaults toDefault.
- creationSource StringServer Id 
- For creation modes other than Default, the source server ID to use.
- fqdn String
- The FQDN of the PostgreSQL Server.
- geoRedundant BooleanBackup Enabled 
- Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier. Changing this forces a new resource to be created.
- identity
ServerIdentity 
- An identityblock as defined below.
- infrastructureEncryption BooleanEnabled 
- Whether or not infrastructure is encrypted for this server. Changing this forces a new resource to be created. - NOTE: This property is currently still in development and not supported by Microsoft. If the - infrastructure_encryption_enabledattribute is set to- truethe PostgreSQL instance will incur a substantial performance degradation due to a second encryption pass on top of the existing default encryption that is already provided by Azure Storage. It is strongly suggested to leave this value- falseas not doing so can lead to unclear error messages.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created.
- publicNetwork BooleanAccess Enabled 
- Whether or not public network access is allowed for this server. Defaults to true.
- resourceGroup StringName 
- The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created.
- restorePoint StringIn Time 
- When create_modeisPointInTimeRestorethe point in time to restore fromcreation_source_server_id. It should be provided in RFC3339 format, e.g.2013-11-08T22:00:40Z.
- skuName String
- Specifies the SKU Name for this PostgreSQL Server. The name of the SKU, follows the - tier+- family+- corespattern (e.g.- B_Gen4_1,- GP_Gen5_8). For more information see the product documentation. Possible values are- B_Gen4_1,- B_Gen4_2,- B_Gen5_1,- B_Gen5_2,- GP_Gen4_2,- GP_Gen4_4,- GP_Gen4_8,- GP_Gen4_16,- GP_Gen4_32,- GP_Gen5_2,- GP_Gen5_4,- GP_Gen5_8,- GP_Gen5_16,- GP_Gen5_32,- GP_Gen5_64,- MO_Gen5_2,- MO_Gen5_4,- MO_Gen5_8,- MO_Gen5_16and- MO_Gen5_32.- NOTE: When replication is set up and - sku_nameis changed to a higher tier or more capacity for the primary, all replicas are scaled up to the same tier/capacity. This is an Azure requirement, for more information see the replica scaling documentation
- sslEnforcement BooleanEnabled 
- Specifies if SSL should be enforced on connections. Possible values are - trueand- false.- NOTE: - ssl_minimal_tls_version_enforcedmust be set to- TLSEnforcementDisabledwhen- ssl_enforcement_enabledis set to- false.
- sslMinimal StringTls Version Enforced 
- The minimum TLS version to support on the sever. Possible values are TLSEnforcementDisabled,TLS1_0,TLS1_1, andTLS1_2. Defaults toTLS1_2.
- storageMb Integer
- Max storage allowed for a server. Possible values are between 5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and16777216MB(16TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.
- Map<String,String>
- A mapping of tags to assign to the resource.
- threatDetection ServerPolicy Threat Detection Policy 
- Threat detection policy configuration, known in the API as Server Security Alerts Policy. The threat_detection_policyblock supports fields documented below.
- version String
- Specifies the version of PostgreSQL to use. Valid values are 9.5,9.6,10,10.0,10.2and11. Changing this forces a new resource to be created.
- administratorLogin string
- The Administrator login for the PostgreSQL Server. Required when create_modeisDefault. Changing this forces a new resource to be created.
- administratorLogin stringPassword 
- The Password associated with the administrator_loginfor the PostgreSQL Server.
- administratorLogin numberPassword Wo Version 
- An integer value used to trigger an update for administrator_login_password_wo. This property should be incremented when updatingadministrator_login_password_wo.
- autoGrow booleanEnabled 
- Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. Defaults to true.
- backupRetention numberDays 
- Backup retention days for the server, supported values are between 7and35days.
- createMode string
- The creation mode. Can be used to restore or replicate existing servers. Possible values are Default,Replica,GeoRestore, andPointInTimeRestore. Defaults toDefault.
- creationSource stringServer Id 
- For creation modes other than Default, the source server ID to use.
- fqdn string
- The FQDN of the PostgreSQL Server.
- geoRedundant booleanBackup Enabled 
- Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier. Changing this forces a new resource to be created.
- identity
ServerIdentity 
- An identityblock as defined below.
- infrastructureEncryption booleanEnabled 
- Whether or not infrastructure is encrypted for this server. Changing this forces a new resource to be created. - NOTE: This property is currently still in development and not supported by Microsoft. If the - infrastructure_encryption_enabledattribute is set to- truethe PostgreSQL instance will incur a substantial performance degradation due to a second encryption pass on top of the existing default encryption that is already provided by Azure Storage. It is strongly suggested to leave this value- falseas not doing so can lead to unclear error messages.
- location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
- Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created.
- publicNetwork booleanAccess Enabled 
- Whether or not public network access is allowed for this server. Defaults to true.
- resourceGroup stringName 
- The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created.
- restorePoint stringIn Time 
- When create_modeisPointInTimeRestorethe point in time to restore fromcreation_source_server_id. It should be provided in RFC3339 format, e.g.2013-11-08T22:00:40Z.
- skuName string
- Specifies the SKU Name for this PostgreSQL Server. The name of the SKU, follows the - tier+- family+- corespattern (e.g.- B_Gen4_1,- GP_Gen5_8). For more information see the product documentation. Possible values are- B_Gen4_1,- B_Gen4_2,- B_Gen5_1,- B_Gen5_2,- GP_Gen4_2,- GP_Gen4_4,- GP_Gen4_8,- GP_Gen4_16,- GP_Gen4_32,- GP_Gen5_2,- GP_Gen5_4,- GP_Gen5_8,- GP_Gen5_16,- GP_Gen5_32,- GP_Gen5_64,- MO_Gen5_2,- MO_Gen5_4,- MO_Gen5_8,- MO_Gen5_16and- MO_Gen5_32.- NOTE: When replication is set up and - sku_nameis changed to a higher tier or more capacity for the primary, all replicas are scaled up to the same tier/capacity. This is an Azure requirement, for more information see the replica scaling documentation
- sslEnforcement booleanEnabled 
- Specifies if SSL should be enforced on connections. Possible values are - trueand- false.- NOTE: - ssl_minimal_tls_version_enforcedmust be set to- TLSEnforcementDisabledwhen- ssl_enforcement_enabledis set to- false.
- sslMinimal stringTls Version Enforced 
- The minimum TLS version to support on the sever. Possible values are TLSEnforcementDisabled,TLS1_0,TLS1_1, andTLS1_2. Defaults toTLS1_2.
- storageMb number
- Max storage allowed for a server. Possible values are between 5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and16777216MB(16TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- threatDetection ServerPolicy Threat Detection Policy 
- Threat detection policy configuration, known in the API as Server Security Alerts Policy. The threat_detection_policyblock supports fields documented below.
- version string
- Specifies the version of PostgreSQL to use. Valid values are 9.5,9.6,10,10.0,10.2and11. Changing this forces a new resource to be created.
- administrator_login str
- The Administrator login for the PostgreSQL Server. Required when create_modeisDefault. Changing this forces a new resource to be created.
- administrator_login_ strpassword 
- The Password associated with the administrator_loginfor the PostgreSQL Server.
- administrator_login_ intpassword_ wo_ version 
- An integer value used to trigger an update for administrator_login_password_wo. This property should be incremented when updatingadministrator_login_password_wo.
- auto_grow_ boolenabled 
- Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. Defaults to true.
- backup_retention_ intdays 
- Backup retention days for the server, supported values are between 7and35days.
- create_mode str
- The creation mode. Can be used to restore or replicate existing servers. Possible values are Default,Replica,GeoRestore, andPointInTimeRestore. Defaults toDefault.
- creation_source_ strserver_ id 
- For creation modes other than Default, the source server ID to use.
- fqdn str
- The FQDN of the PostgreSQL Server.
- geo_redundant_ boolbackup_ enabled 
- Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier. Changing this forces a new resource to be created.
- identity
ServerIdentity Args 
- An identityblock as defined below.
- infrastructure_encryption_ boolenabled 
- Whether or not infrastructure is encrypted for this server. Changing this forces a new resource to be created. - NOTE: This property is currently still in development and not supported by Microsoft. If the - infrastructure_encryption_enabledattribute is set to- truethe PostgreSQL instance will incur a substantial performance degradation due to a second encryption pass on top of the existing default encryption that is already provided by Azure Storage. It is strongly suggested to leave this value- falseas not doing so can lead to unclear error messages.
- location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
- Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created.
- public_network_ boolaccess_ enabled 
- Whether or not public network access is allowed for this server. Defaults to true.
- resource_group_ strname 
- The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created.
- restore_point_ strin_ time 
- When create_modeisPointInTimeRestorethe point in time to restore fromcreation_source_server_id. It should be provided in RFC3339 format, e.g.2013-11-08T22:00:40Z.
- sku_name str
- Specifies the SKU Name for this PostgreSQL Server. The name of the SKU, follows the - tier+- family+- corespattern (e.g.- B_Gen4_1,- GP_Gen5_8). For more information see the product documentation. Possible values are- B_Gen4_1,- B_Gen4_2,- B_Gen5_1,- B_Gen5_2,- GP_Gen4_2,- GP_Gen4_4,- GP_Gen4_8,- GP_Gen4_16,- GP_Gen4_32,- GP_Gen5_2,- GP_Gen5_4,- GP_Gen5_8,- GP_Gen5_16,- GP_Gen5_32,- GP_Gen5_64,- MO_Gen5_2,- MO_Gen5_4,- MO_Gen5_8,- MO_Gen5_16and- MO_Gen5_32.- NOTE: When replication is set up and - sku_nameis changed to a higher tier or more capacity for the primary, all replicas are scaled up to the same tier/capacity. This is an Azure requirement, for more information see the replica scaling documentation
- ssl_enforcement_ boolenabled 
- Specifies if SSL should be enforced on connections. Possible values are - trueand- false.- NOTE: - ssl_minimal_tls_version_enforcedmust be set to- TLSEnforcementDisabledwhen- ssl_enforcement_enabledis set to- false.
- ssl_minimal_ strtls_ version_ enforced 
- The minimum TLS version to support on the sever. Possible values are TLSEnforcementDisabled,TLS1_0,TLS1_1, andTLS1_2. Defaults toTLS1_2.
- storage_mb int
- Max storage allowed for a server. Possible values are between 5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and16777216MB(16TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- threat_detection_ Serverpolicy Threat Detection Policy Args 
- Threat detection policy configuration, known in the API as Server Security Alerts Policy. The threat_detection_policyblock supports fields documented below.
- version str
- Specifies the version of PostgreSQL to use. Valid values are 9.5,9.6,10,10.0,10.2and11. Changing this forces a new resource to be created.
- administratorLogin String
- The Administrator login for the PostgreSQL Server. Required when create_modeisDefault. Changing this forces a new resource to be created.
- administratorLogin StringPassword 
- The Password associated with the administrator_loginfor the PostgreSQL Server.
- administratorLogin NumberPassword Wo Version 
- An integer value used to trigger an update for administrator_login_password_wo. This property should be incremented when updatingadministrator_login_password_wo.
- autoGrow BooleanEnabled 
- Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. Defaults to true.
- backupRetention NumberDays 
- Backup retention days for the server, supported values are between 7and35days.
- createMode String
- The creation mode. Can be used to restore or replicate existing servers. Possible values are Default,Replica,GeoRestore, andPointInTimeRestore. Defaults toDefault.
- creationSource StringServer Id 
- For creation modes other than Default, the source server ID to use.
- fqdn String
- The FQDN of the PostgreSQL Server.
- geoRedundant BooleanBackup Enabled 
- Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier. Changing this forces a new resource to be created.
- identity Property Map
- An identityblock as defined below.
- infrastructureEncryption BooleanEnabled 
- Whether or not infrastructure is encrypted for this server. Changing this forces a new resource to be created. - NOTE: This property is currently still in development and not supported by Microsoft. If the - infrastructure_encryption_enabledattribute is set to- truethe PostgreSQL instance will incur a substantial performance degradation due to a second encryption pass on top of the existing default encryption that is already provided by Azure Storage. It is strongly suggested to leave this value- falseas not doing so can lead to unclear error messages.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created.
- publicNetwork BooleanAccess Enabled 
- Whether or not public network access is allowed for this server. Defaults to true.
- resourceGroup StringName 
- The name of the resource group in which to create the PostgreSQL Server. Changing this forces a new resource to be created.
- restorePoint StringIn Time 
- When create_modeisPointInTimeRestorethe point in time to restore fromcreation_source_server_id. It should be provided in RFC3339 format, e.g.2013-11-08T22:00:40Z.
- skuName String
- Specifies the SKU Name for this PostgreSQL Server. The name of the SKU, follows the - tier+- family+- corespattern (e.g.- B_Gen4_1,- GP_Gen5_8). For more information see the product documentation. Possible values are- B_Gen4_1,- B_Gen4_2,- B_Gen5_1,- B_Gen5_2,- GP_Gen4_2,- GP_Gen4_4,- GP_Gen4_8,- GP_Gen4_16,- GP_Gen4_32,- GP_Gen5_2,- GP_Gen5_4,- GP_Gen5_8,- GP_Gen5_16,- GP_Gen5_32,- GP_Gen5_64,- MO_Gen5_2,- MO_Gen5_4,- MO_Gen5_8,- MO_Gen5_16and- MO_Gen5_32.- NOTE: When replication is set up and - sku_nameis changed to a higher tier or more capacity for the primary, all replicas are scaled up to the same tier/capacity. This is an Azure requirement, for more information see the replica scaling documentation
- sslEnforcement BooleanEnabled 
- Specifies if SSL should be enforced on connections. Possible values are - trueand- false.- NOTE: - ssl_minimal_tls_version_enforcedmust be set to- TLSEnforcementDisabledwhen- ssl_enforcement_enabledis set to- false.
- sslMinimal StringTls Version Enforced 
- The minimum TLS version to support on the sever. Possible values are TLSEnforcementDisabled,TLS1_0,TLS1_1, andTLS1_2. Defaults toTLS1_2.
- storageMb Number
- Max storage allowed for a server. Possible values are between 5120MB(5GB) and1048576MB(1TB) for the Basic SKU and between5120MB(5GB) and16777216MB(16TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.
- Map<String>
- A mapping of tags to assign to the resource.
- threatDetection Property MapPolicy 
- Threat detection policy configuration, known in the API as Server Security Alerts Policy. The threat_detection_policyblock supports fields documented below.
- version String
- Specifies the version of PostgreSQL to use. Valid values are 9.5,9.6,10,10.0,10.2and11. Changing this forces a new resource to be created.
Supporting Types
ServerIdentity, ServerIdentityArgs    
- Type string
- Specifies the type of Managed Service Identity that should be configured on this PostgreSQL Server. The only possible value is SystemAssigned.
- PrincipalId string
- The Principal ID associated with this Managed Service Identity.
- TenantId string
- The Tenant ID associated with this Managed Service Identity.
- Type string
- Specifies the type of Managed Service Identity that should be configured on this PostgreSQL Server. The only possible value is SystemAssigned.
- PrincipalId string
- The Principal ID associated with this Managed Service Identity.
- TenantId string
- The Tenant ID associated with this Managed Service Identity.
- type String
- Specifies the type of Managed Service Identity that should be configured on this PostgreSQL Server. The only possible value is SystemAssigned.
- principalId String
- The Principal ID associated with this Managed Service Identity.
- tenantId String
- The Tenant ID associated with this Managed Service Identity.
- type string
- Specifies the type of Managed Service Identity that should be configured on this PostgreSQL Server. The only possible value is SystemAssigned.
- principalId string
- The Principal ID associated with this Managed Service Identity.
- tenantId string
- The Tenant ID associated with this Managed Service Identity.
- type str
- Specifies the type of Managed Service Identity that should be configured on this PostgreSQL Server. The only possible value is SystemAssigned.
- principal_id str
- The Principal ID associated with this Managed Service Identity.
- tenant_id str
- The Tenant ID associated with this Managed Service Identity.
- type String
- Specifies the type of Managed Service Identity that should be configured on this PostgreSQL Server. The only possible value is SystemAssigned.
- principalId String
- The Principal ID associated with this Managed Service Identity.
- tenantId String
- The Tenant ID associated with this Managed Service Identity.
ServerThreatDetectionPolicy, ServerThreatDetectionPolicyArgs        
- DisabledAlerts List<string>
- Specifies a list of alerts which should be disabled. Possible values are Sql_Injection,Sql_Injection_Vulnerability,Access_Anomaly,Data_ExfiltrationandUnsafe_Action.
- EmailAccount boolAdmins 
- Should the account administrators be emailed when this alert is triggered?
- EmailAddresses List<string>
- A list of email addresses which alerts should be sent to.
- Enabled bool
- Is the policy enabled?
- RetentionDays int
- Specifies the number of days to keep in the Threat Detection audit logs.
- StorageAccount stringAccess Key 
- Specifies the identifier key of the Threat Detection audit storage account.
- StorageEndpoint string
- Specifies the blob storage endpoint (e.g. https://example.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.
- DisabledAlerts []string
- Specifies a list of alerts which should be disabled. Possible values are Sql_Injection,Sql_Injection_Vulnerability,Access_Anomaly,Data_ExfiltrationandUnsafe_Action.
- EmailAccount boolAdmins 
- Should the account administrators be emailed when this alert is triggered?
- EmailAddresses []string
- A list of email addresses which alerts should be sent to.
- Enabled bool
- Is the policy enabled?
- RetentionDays int
- Specifies the number of days to keep in the Threat Detection audit logs.
- StorageAccount stringAccess Key 
- Specifies the identifier key of the Threat Detection audit storage account.
- StorageEndpoint string
- Specifies the blob storage endpoint (e.g. https://example.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.
- disabledAlerts List<String>
- Specifies a list of alerts which should be disabled. Possible values are Sql_Injection,Sql_Injection_Vulnerability,Access_Anomaly,Data_ExfiltrationandUnsafe_Action.
- emailAccount BooleanAdmins 
- Should the account administrators be emailed when this alert is triggered?
- emailAddresses List<String>
- A list of email addresses which alerts should be sent to.
- enabled Boolean
- Is the policy enabled?
- retentionDays Integer
- Specifies the number of days to keep in the Threat Detection audit logs.
- storageAccount StringAccess Key 
- Specifies the identifier key of the Threat Detection audit storage account.
- storageEndpoint String
- Specifies the blob storage endpoint (e.g. https://example.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.
- disabledAlerts string[]
- Specifies a list of alerts which should be disabled. Possible values are Sql_Injection,Sql_Injection_Vulnerability,Access_Anomaly,Data_ExfiltrationandUnsafe_Action.
- emailAccount booleanAdmins 
- Should the account administrators be emailed when this alert is triggered?
- emailAddresses string[]
- A list of email addresses which alerts should be sent to.
- enabled boolean
- Is the policy enabled?
- retentionDays number
- Specifies the number of days to keep in the Threat Detection audit logs.
- storageAccount stringAccess Key 
- Specifies the identifier key of the Threat Detection audit storage account.
- storageEndpoint string
- Specifies the blob storage endpoint (e.g. https://example.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.
- disabled_alerts Sequence[str]
- Specifies a list of alerts which should be disabled. Possible values are Sql_Injection,Sql_Injection_Vulnerability,Access_Anomaly,Data_ExfiltrationandUnsafe_Action.
- email_account_ booladmins 
- Should the account administrators be emailed when this alert is triggered?
- email_addresses Sequence[str]
- A list of email addresses which alerts should be sent to.
- enabled bool
- Is the policy enabled?
- retention_days int
- Specifies the number of days to keep in the Threat Detection audit logs.
- storage_account_ straccess_ key 
- Specifies the identifier key of the Threat Detection audit storage account.
- storage_endpoint str
- Specifies the blob storage endpoint (e.g. https://example.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.
- disabledAlerts List<String>
- Specifies a list of alerts which should be disabled. Possible values are Sql_Injection,Sql_Injection_Vulnerability,Access_Anomaly,Data_ExfiltrationandUnsafe_Action.
- emailAccount BooleanAdmins 
- Should the account administrators be emailed when this alert is triggered?
- emailAddresses List<String>
- A list of email addresses which alerts should be sent to.
- enabled Boolean
- Is the policy enabled?
- retentionDays Number
- Specifies the number of days to keep in the Threat Detection audit logs.
- storageAccount StringAccess Key 
- Specifies the identifier key of the Threat Detection audit storage account.
- storageEndpoint String
- Specifies the blob storage endpoint (e.g. https://example.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.
Import
PostgreSQL Server’s can be imported using the resource id, e.g.
$ pulumi import azure:postgresql/server:Server server1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.DBforPostgreSQL/servers/server1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.