We recommend using Azure Native.
azure.postgresql.FlexibleServer
Explore with Pulumi AI
Manages a PostgreSQL Flexible 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 exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
    name: "example-vn",
    location: example.location,
    resourceGroupName: example.name,
    addressSpaces: ["10.0.0.0/16"],
});
const exampleSubnet = new azure.network.Subnet("example", {
    name: "example-sn",
    resourceGroupName: example.name,
    virtualNetworkName: exampleVirtualNetwork.name,
    addressPrefixes: ["10.0.2.0/24"],
    serviceEndpoints: ["Microsoft.Storage"],
    delegations: [{
        name: "fs",
        serviceDelegation: {
            name: "Microsoft.DBforPostgreSQL/flexibleServers",
            actions: ["Microsoft.Network/virtualNetworks/subnets/join/action"],
        },
    }],
});
const exampleZone = new azure.privatedns.Zone("example", {
    name: "example.postgres.database.azure.com",
    resourceGroupName: example.name,
});
const exampleZoneVirtualNetworkLink = new azure.privatedns.ZoneVirtualNetworkLink("example", {
    name: "exampleVnetZone.com",
    privateDnsZoneName: exampleZone.name,
    virtualNetworkId: exampleVirtualNetwork.id,
    resourceGroupName: example.name,
}, {
    dependsOn: [exampleSubnet],
});
const exampleFlexibleServer = new azure.postgresql.FlexibleServer("example", {
    name: "example-psqlflexibleserver",
    resourceGroupName: example.name,
    location: example.location,
    version: "12",
    delegatedSubnetId: exampleSubnet.id,
    privateDnsZoneId: exampleZone.id,
    publicNetworkAccessEnabled: false,
    administratorLogin: "psqladmin",
    administratorPassword: "H@Sh1CoR3!",
    zone: "1",
    storageMb: 32768,
    storageTier: "P4",
    skuName: "B_Standard_B1ms",
}, {
    dependsOn: [exampleZoneVirtualNetworkLink],
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_virtual_network = azure.network.VirtualNetwork("example",
    name="example-vn",
    location=example.location,
    resource_group_name=example.name,
    address_spaces=["10.0.0.0/16"])
example_subnet = azure.network.Subnet("example",
    name="example-sn",
    resource_group_name=example.name,
    virtual_network_name=example_virtual_network.name,
    address_prefixes=["10.0.2.0/24"],
    service_endpoints=["Microsoft.Storage"],
    delegations=[{
        "name": "fs",
        "service_delegation": {
            "name": "Microsoft.DBforPostgreSQL/flexibleServers",
            "actions": ["Microsoft.Network/virtualNetworks/subnets/join/action"],
        },
    }])
example_zone = azure.privatedns.Zone("example",
    name="example.postgres.database.azure.com",
    resource_group_name=example.name)
example_zone_virtual_network_link = azure.privatedns.ZoneVirtualNetworkLink("example",
    name="exampleVnetZone.com",
    private_dns_zone_name=example_zone.name,
    virtual_network_id=example_virtual_network.id,
    resource_group_name=example.name,
    opts = pulumi.ResourceOptions(depends_on=[example_subnet]))
example_flexible_server = azure.postgresql.FlexibleServer("example",
    name="example-psqlflexibleserver",
    resource_group_name=example.name,
    location=example.location,
    version="12",
    delegated_subnet_id=example_subnet.id,
    private_dns_zone_id=example_zone.id,
    public_network_access_enabled=False,
    administrator_login="psqladmin",
    administrator_password="H@Sh1CoR3!",
    zone="1",
    storage_mb=32768,
    storage_tier="P4",
    sku_name="B_Standard_B1ms",
    opts = pulumi.ResourceOptions(depends_on=[example_zone_virtual_network_link]))
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/postgresql"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/privatedns"
	"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
		}
		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
			Name:              pulumi.String("example-vn"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			AddressSpaces: pulumi.StringArray{
				pulumi.String("10.0.0.0/16"),
			},
		})
		if err != nil {
			return err
		}
		exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
			Name:               pulumi.String("example-sn"),
			ResourceGroupName:  example.Name,
			VirtualNetworkName: exampleVirtualNetwork.Name,
			AddressPrefixes: pulumi.StringArray{
				pulumi.String("10.0.2.0/24"),
			},
			ServiceEndpoints: pulumi.StringArray{
				pulumi.String("Microsoft.Storage"),
			},
			Delegations: network.SubnetDelegationArray{
				&network.SubnetDelegationArgs{
					Name: pulumi.String("fs"),
					ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{
						Name: pulumi.String("Microsoft.DBforPostgreSQL/flexibleServers"),
						Actions: pulumi.StringArray{
							pulumi.String("Microsoft.Network/virtualNetworks/subnets/join/action"),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		exampleZone, err := privatedns.NewZone(ctx, "example", &privatedns.ZoneArgs{
			Name:              pulumi.String("example.postgres.database.azure.com"),
			ResourceGroupName: example.Name,
		})
		if err != nil {
			return err
		}
		exampleZoneVirtualNetworkLink, err := privatedns.NewZoneVirtualNetworkLink(ctx, "example", &privatedns.ZoneVirtualNetworkLinkArgs{
			Name:               pulumi.String("exampleVnetZone.com"),
			PrivateDnsZoneName: exampleZone.Name,
			VirtualNetworkId:   exampleVirtualNetwork.ID(),
			ResourceGroupName:  example.Name,
		}, pulumi.DependsOn([]pulumi.Resource{
			exampleSubnet,
		}))
		if err != nil {
			return err
		}
		_, err = postgresql.NewFlexibleServer(ctx, "example", &postgresql.FlexibleServerArgs{
			Name:                       pulumi.String("example-psqlflexibleserver"),
			ResourceGroupName:          example.Name,
			Location:                   example.Location,
			Version:                    pulumi.String("12"),
			DelegatedSubnetId:          exampleSubnet.ID(),
			PrivateDnsZoneId:           exampleZone.ID(),
			PublicNetworkAccessEnabled: pulumi.Bool(false),
			AdministratorLogin:         pulumi.String("psqladmin"),
			AdministratorPassword:      pulumi.String("H@Sh1CoR3!"),
			Zone:                       pulumi.String("1"),
			StorageMb:                  pulumi.Int(32768),
			StorageTier:                pulumi.String("P4"),
			SkuName:                    pulumi.String("B_Standard_B1ms"),
		}, pulumi.DependsOn([]pulumi.Resource{
			exampleZoneVirtualNetworkLink,
		}))
		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 exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
    {
        Name = "example-vn",
        Location = example.Location,
        ResourceGroupName = example.Name,
        AddressSpaces = new[]
        {
            "10.0.0.0/16",
        },
    });
    var exampleSubnet = new Azure.Network.Subnet("example", new()
    {
        Name = "example-sn",
        ResourceGroupName = example.Name,
        VirtualNetworkName = exampleVirtualNetwork.Name,
        AddressPrefixes = new[]
        {
            "10.0.2.0/24",
        },
        ServiceEndpoints = new[]
        {
            "Microsoft.Storage",
        },
        Delegations = new[]
        {
            new Azure.Network.Inputs.SubnetDelegationArgs
            {
                Name = "fs",
                ServiceDelegation = new Azure.Network.Inputs.SubnetDelegationServiceDelegationArgs
                {
                    Name = "Microsoft.DBforPostgreSQL/flexibleServers",
                    Actions = new[]
                    {
                        "Microsoft.Network/virtualNetworks/subnets/join/action",
                    },
                },
            },
        },
    });
    var exampleZone = new Azure.PrivateDns.Zone("example", new()
    {
        Name = "example.postgres.database.azure.com",
        ResourceGroupName = example.Name,
    });
    var exampleZoneVirtualNetworkLink = new Azure.PrivateDns.ZoneVirtualNetworkLink("example", new()
    {
        Name = "exampleVnetZone.com",
        PrivateDnsZoneName = exampleZone.Name,
        VirtualNetworkId = exampleVirtualNetwork.Id,
        ResourceGroupName = example.Name,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            exampleSubnet,
        },
    });
    var exampleFlexibleServer = new Azure.PostgreSql.FlexibleServer("example", new()
    {
        Name = "example-psqlflexibleserver",
        ResourceGroupName = example.Name,
        Location = example.Location,
        Version = "12",
        DelegatedSubnetId = exampleSubnet.Id,
        PrivateDnsZoneId = exampleZone.Id,
        PublicNetworkAccessEnabled = false,
        AdministratorLogin = "psqladmin",
        AdministratorPassword = "H@Sh1CoR3!",
        Zone = "1",
        StorageMb = 32768,
        StorageTier = "P4",
        SkuName = "B_Standard_B1ms",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            exampleZoneVirtualNetworkLink,
        },
    });
});
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.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.network.Subnet;
import com.pulumi.azure.network.SubnetArgs;
import com.pulumi.azure.network.inputs.SubnetDelegationArgs;
import com.pulumi.azure.network.inputs.SubnetDelegationServiceDelegationArgs;
import com.pulumi.azure.privatedns.Zone;
import com.pulumi.azure.privatedns.ZoneArgs;
import com.pulumi.azure.privatedns.ZoneVirtualNetworkLink;
import com.pulumi.azure.privatedns.ZoneVirtualNetworkLinkArgs;
import com.pulumi.azure.postgresql.FlexibleServer;
import com.pulumi.azure.postgresql.FlexibleServerArgs;
import com.pulumi.resources.CustomResourceOptions;
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 exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
            .name("example-vn")
            .location(example.location())
            .resourceGroupName(example.name())
            .addressSpaces("10.0.0.0/16")
            .build());
        var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
            .name("example-sn")
            .resourceGroupName(example.name())
            .virtualNetworkName(exampleVirtualNetwork.name())
            .addressPrefixes("10.0.2.0/24")
            .serviceEndpoints("Microsoft.Storage")
            .delegations(SubnetDelegationArgs.builder()
                .name("fs")
                .serviceDelegation(SubnetDelegationServiceDelegationArgs.builder()
                    .name("Microsoft.DBforPostgreSQL/flexibleServers")
                    .actions("Microsoft.Network/virtualNetworks/subnets/join/action")
                    .build())
                .build())
            .build());
        var exampleZone = new Zone("exampleZone", ZoneArgs.builder()
            .name("example.postgres.database.azure.com")
            .resourceGroupName(example.name())
            .build());
        var exampleZoneVirtualNetworkLink = new ZoneVirtualNetworkLink("exampleZoneVirtualNetworkLink", ZoneVirtualNetworkLinkArgs.builder()
            .name("exampleVnetZone.com")
            .privateDnsZoneName(exampleZone.name())
            .virtualNetworkId(exampleVirtualNetwork.id())
            .resourceGroupName(example.name())
            .build(), CustomResourceOptions.builder()
                .dependsOn(exampleSubnet)
                .build());
        var exampleFlexibleServer = new FlexibleServer("exampleFlexibleServer", FlexibleServerArgs.builder()
            .name("example-psqlflexibleserver")
            .resourceGroupName(example.name())
            .location(example.location())
            .version("12")
            .delegatedSubnetId(exampleSubnet.id())
            .privateDnsZoneId(exampleZone.id())
            .publicNetworkAccessEnabled(false)
            .administratorLogin("psqladmin")
            .administratorPassword("H@Sh1CoR3!")
            .zone("1")
            .storageMb(32768)
            .storageTier("P4")
            .skuName("B_Standard_B1ms")
            .build(), CustomResourceOptions.builder()
                .dependsOn(exampleZoneVirtualNetworkLink)
                .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  exampleVirtualNetwork:
    type: azure:network:VirtualNetwork
    name: example
    properties:
      name: example-vn
      location: ${example.location}
      resourceGroupName: ${example.name}
      addressSpaces:
        - 10.0.0.0/16
  exampleSubnet:
    type: azure:network:Subnet
    name: example
    properties:
      name: example-sn
      resourceGroupName: ${example.name}
      virtualNetworkName: ${exampleVirtualNetwork.name}
      addressPrefixes:
        - 10.0.2.0/24
      serviceEndpoints:
        - Microsoft.Storage
      delegations:
        - name: fs
          serviceDelegation:
            name: Microsoft.DBforPostgreSQL/flexibleServers
            actions:
              - Microsoft.Network/virtualNetworks/subnets/join/action
  exampleZone:
    type: azure:privatedns:Zone
    name: example
    properties:
      name: example.postgres.database.azure.com
      resourceGroupName: ${example.name}
  exampleZoneVirtualNetworkLink:
    type: azure:privatedns:ZoneVirtualNetworkLink
    name: example
    properties:
      name: exampleVnetZone.com
      privateDnsZoneName: ${exampleZone.name}
      virtualNetworkId: ${exampleVirtualNetwork.id}
      resourceGroupName: ${example.name}
    options:
      dependsOn:
        - ${exampleSubnet}
  exampleFlexibleServer:
    type: azure:postgresql:FlexibleServer
    name: example
    properties:
      name: example-psqlflexibleserver
      resourceGroupName: ${example.name}
      location: ${example.location}
      version: '12'
      delegatedSubnetId: ${exampleSubnet.id}
      privateDnsZoneId: ${exampleZone.id}
      publicNetworkAccessEnabled: false
      administratorLogin: psqladmin
      administratorPassword: H@Sh1CoR3!
      zone: '1'
      storageMb: 32768
      storageTier: P4
      skuName: B_Standard_B1ms
    options:
      dependsOn:
        - ${exampleZoneVirtualNetworkLink}
storage_tier defaults based on storage_mb
| storage_mb | GiB | TiB | Default | Supported storage_tier’s | Provisioned IOPS | 
|---|---|---|---|---|---|
| 32768 | 32 | - | P4 | P4, P6, P10, P15, P20, P30, P40, P50 | 120 | 
| 65536 | 64 | - | P6 | P6, P10, P15, P20, P30, P40, P50 | 240 | 
| 131072 | 128 | - | P10 | P10, P15, P20, P30, P40, P50 | 500 | 
| 262144 | 256 | - | P15 | P15, P20, P30, P40, P50 | 1,100 | 
| 524288 | 512 | - | P20 | P20, P30, P40, P50 | 2,300 | 
| 1048576 | 1024 | 1 | P30 | P30, P40, P50 | 5,000 | 
| 2097152 | 2048 | 2 | P40 | P40, P50 | 7,500 | 
| 4193280 | 4095 | 4 | P50 | P50 | 7,500 | 
| 4194304 | 4096 | 4 | P50 | P50 | 7,500 | 
| 8388608 | 8192 | 8 | P60 | P60, P70 | 16,000 | 
| 16777216 | 16384 | 16 | P70 | P70, P80 | 18,000 | 
| 33553408 | 32767 | 32 | P80 | P80 | 20,000 | 
Note: Host Caching (ReadOnly and Read/Write) is supported on disk sizes less than 4194304 MiB. This means any disk that is provisioned up to 4193280 MiB can take advantage of Host Caching. Host caching is not supported for disk sizes larger than 4193280 MiB. For example, a P50 premium disk provisioned at 4193280 GiB can take advantage of Host caching while a P50 disk provisioned at 4194304 MiB cannot. Moving from a smaller disk size to a larger disk size, greater than 4193280 MiB, will cause the disk to lose the disk caching ability.
Create FlexibleServer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FlexibleServer(name: string, args: FlexibleServerArgs, opts?: CustomResourceOptions);@overload
def FlexibleServer(resource_name: str,
                   args: FlexibleServerArgs,
                   opts: Optional[ResourceOptions] = None)
@overload
def FlexibleServer(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   resource_group_name: Optional[str] = None,
                   location: Optional[str] = None,
                   authentication: Optional[FlexibleServerAuthenticationArgs] = None,
                   name: Optional[str] = None,
                   point_in_time_restore_time_in_utc: Optional[str] = None,
                   backup_retention_days: Optional[int] = None,
                   create_mode: Optional[str] = None,
                   customer_managed_key: Optional[FlexibleServerCustomerManagedKeyArgs] = None,
                   delegated_subnet_id: Optional[str] = None,
                   geo_redundant_backup_enabled: Optional[bool] = None,
                   high_availability: Optional[FlexibleServerHighAvailabilityArgs] = None,
                   identity: Optional[FlexibleServerIdentityArgs] = None,
                   administrator_login: Optional[str] = None,
                   zone: Optional[str] = None,
                   administrator_password_wo_version: Optional[int] = None,
                   auto_grow_enabled: Optional[bool] = None,
                   private_dns_zone_id: Optional[str] = None,
                   public_network_access_enabled: Optional[bool] = None,
                   replication_role: Optional[str] = None,
                   administrator_password: Optional[str] = None,
                   sku_name: Optional[str] = None,
                   source_server_id: Optional[str] = None,
                   storage_mb: Optional[int] = None,
                   storage_tier: Optional[str] = None,
                   tags: Optional[Mapping[str, str]] = None,
                   version: Optional[str] = None,
                   maintenance_window: Optional[FlexibleServerMaintenanceWindowArgs] = None)func NewFlexibleServer(ctx *Context, name string, args FlexibleServerArgs, opts ...ResourceOption) (*FlexibleServer, error)public FlexibleServer(string name, FlexibleServerArgs args, CustomResourceOptions? opts = null)
public FlexibleServer(String name, FlexibleServerArgs args)
public FlexibleServer(String name, FlexibleServerArgs args, CustomResourceOptions options)
type: azure:postgresql:FlexibleServer
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 FlexibleServerArgs
- 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 FlexibleServerArgs
- 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 FlexibleServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FlexibleServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FlexibleServerArgs
- 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 azureFlexibleServerResource = new Azure.PostgreSql.FlexibleServer("azureFlexibleServerResource", new()
{
    ResourceGroupName = "string",
    Location = "string",
    Authentication = new Azure.PostgreSql.Inputs.FlexibleServerAuthenticationArgs
    {
        ActiveDirectoryAuthEnabled = false,
        PasswordAuthEnabled = false,
        TenantId = "string",
    },
    Name = "string",
    PointInTimeRestoreTimeInUtc = "string",
    BackupRetentionDays = 0,
    CreateMode = "string",
    CustomerManagedKey = new Azure.PostgreSql.Inputs.FlexibleServerCustomerManagedKeyArgs
    {
        KeyVaultKeyId = "string",
        GeoBackupKeyVaultKeyId = "string",
        GeoBackupUserAssignedIdentityId = "string",
        PrimaryUserAssignedIdentityId = "string",
    },
    DelegatedSubnetId = "string",
    GeoRedundantBackupEnabled = false,
    HighAvailability = new Azure.PostgreSql.Inputs.FlexibleServerHighAvailabilityArgs
    {
        Mode = "string",
        StandbyAvailabilityZone = "string",
    },
    Identity = new Azure.PostgreSql.Inputs.FlexibleServerIdentityArgs
    {
        IdentityIds = new[]
        {
            "string",
        },
        Type = "string",
    },
    AdministratorLogin = "string",
    Zone = "string",
    AdministratorPasswordWoVersion = 0,
    AutoGrowEnabled = false,
    PrivateDnsZoneId = "string",
    PublicNetworkAccessEnabled = false,
    ReplicationRole = "string",
    AdministratorPassword = "string",
    SkuName = "string",
    SourceServerId = "string",
    StorageMb = 0,
    StorageTier = "string",
    Tags = 
    {
        { "string", "string" },
    },
    Version = "string",
    MaintenanceWindow = new Azure.PostgreSql.Inputs.FlexibleServerMaintenanceWindowArgs
    {
        DayOfWeek = 0,
        StartHour = 0,
        StartMinute = 0,
    },
});
example, err := postgresql.NewFlexibleServer(ctx, "azureFlexibleServerResource", &postgresql.FlexibleServerArgs{
	ResourceGroupName: pulumi.String("string"),
	Location:          pulumi.String("string"),
	Authentication: &postgresql.FlexibleServerAuthenticationArgs{
		ActiveDirectoryAuthEnabled: pulumi.Bool(false),
		PasswordAuthEnabled:        pulumi.Bool(false),
		TenantId:                   pulumi.String("string"),
	},
	Name:                        pulumi.String("string"),
	PointInTimeRestoreTimeInUtc: pulumi.String("string"),
	BackupRetentionDays:         pulumi.Int(0),
	CreateMode:                  pulumi.String("string"),
	CustomerManagedKey: &postgresql.FlexibleServerCustomerManagedKeyArgs{
		KeyVaultKeyId:                   pulumi.String("string"),
		GeoBackupKeyVaultKeyId:          pulumi.String("string"),
		GeoBackupUserAssignedIdentityId: pulumi.String("string"),
		PrimaryUserAssignedIdentityId:   pulumi.String("string"),
	},
	DelegatedSubnetId:         pulumi.String("string"),
	GeoRedundantBackupEnabled: pulumi.Bool(false),
	HighAvailability: &postgresql.FlexibleServerHighAvailabilityArgs{
		Mode:                    pulumi.String("string"),
		StandbyAvailabilityZone: pulumi.String("string"),
	},
	Identity: &postgresql.FlexibleServerIdentityArgs{
		IdentityIds: pulumi.StringArray{
			pulumi.String("string"),
		},
		Type: pulumi.String("string"),
	},
	AdministratorLogin:             pulumi.String("string"),
	Zone:                           pulumi.String("string"),
	AdministratorPasswordWoVersion: pulumi.Int(0),
	AutoGrowEnabled:                pulumi.Bool(false),
	PrivateDnsZoneId:               pulumi.String("string"),
	PublicNetworkAccessEnabled:     pulumi.Bool(false),
	ReplicationRole:                pulumi.String("string"),
	AdministratorPassword:          pulumi.String("string"),
	SkuName:                        pulumi.String("string"),
	SourceServerId:                 pulumi.String("string"),
	StorageMb:                      pulumi.Int(0),
	StorageTier:                    pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Version: pulumi.String("string"),
	MaintenanceWindow: &postgresql.FlexibleServerMaintenanceWindowArgs{
		DayOfWeek:   pulumi.Int(0),
		StartHour:   pulumi.Int(0),
		StartMinute: pulumi.Int(0),
	},
})
var azureFlexibleServerResource = new FlexibleServer("azureFlexibleServerResource", FlexibleServerArgs.builder()
    .resourceGroupName("string")
    .location("string")
    .authentication(FlexibleServerAuthenticationArgs.builder()
        .activeDirectoryAuthEnabled(false)
        .passwordAuthEnabled(false)
        .tenantId("string")
        .build())
    .name("string")
    .pointInTimeRestoreTimeInUtc("string")
    .backupRetentionDays(0)
    .createMode("string")
    .customerManagedKey(FlexibleServerCustomerManagedKeyArgs.builder()
        .keyVaultKeyId("string")
        .geoBackupKeyVaultKeyId("string")
        .geoBackupUserAssignedIdentityId("string")
        .primaryUserAssignedIdentityId("string")
        .build())
    .delegatedSubnetId("string")
    .geoRedundantBackupEnabled(false)
    .highAvailability(FlexibleServerHighAvailabilityArgs.builder()
        .mode("string")
        .standbyAvailabilityZone("string")
        .build())
    .identity(FlexibleServerIdentityArgs.builder()
        .identityIds("string")
        .type("string")
        .build())
    .administratorLogin("string")
    .zone("string")
    .administratorPasswordWoVersion(0)
    .autoGrowEnabled(false)
    .privateDnsZoneId("string")
    .publicNetworkAccessEnabled(false)
    .replicationRole("string")
    .administratorPassword("string")
    .skuName("string")
    .sourceServerId("string")
    .storageMb(0)
    .storageTier("string")
    .tags(Map.of("string", "string"))
    .version("string")
    .maintenanceWindow(FlexibleServerMaintenanceWindowArgs.builder()
        .dayOfWeek(0)
        .startHour(0)
        .startMinute(0)
        .build())
    .build());
azure_flexible_server_resource = azure.postgresql.FlexibleServer("azureFlexibleServerResource",
    resource_group_name="string",
    location="string",
    authentication={
        "active_directory_auth_enabled": False,
        "password_auth_enabled": False,
        "tenant_id": "string",
    },
    name="string",
    point_in_time_restore_time_in_utc="string",
    backup_retention_days=0,
    create_mode="string",
    customer_managed_key={
        "key_vault_key_id": "string",
        "geo_backup_key_vault_key_id": "string",
        "geo_backup_user_assigned_identity_id": "string",
        "primary_user_assigned_identity_id": "string",
    },
    delegated_subnet_id="string",
    geo_redundant_backup_enabled=False,
    high_availability={
        "mode": "string",
        "standby_availability_zone": "string",
    },
    identity={
        "identity_ids": ["string"],
        "type": "string",
    },
    administrator_login="string",
    zone="string",
    administrator_password_wo_version=0,
    auto_grow_enabled=False,
    private_dns_zone_id="string",
    public_network_access_enabled=False,
    replication_role="string",
    administrator_password="string",
    sku_name="string",
    source_server_id="string",
    storage_mb=0,
    storage_tier="string",
    tags={
        "string": "string",
    },
    version="string",
    maintenance_window={
        "day_of_week": 0,
        "start_hour": 0,
        "start_minute": 0,
    })
const azureFlexibleServerResource = new azure.postgresql.FlexibleServer("azureFlexibleServerResource", {
    resourceGroupName: "string",
    location: "string",
    authentication: {
        activeDirectoryAuthEnabled: false,
        passwordAuthEnabled: false,
        tenantId: "string",
    },
    name: "string",
    pointInTimeRestoreTimeInUtc: "string",
    backupRetentionDays: 0,
    createMode: "string",
    customerManagedKey: {
        keyVaultKeyId: "string",
        geoBackupKeyVaultKeyId: "string",
        geoBackupUserAssignedIdentityId: "string",
        primaryUserAssignedIdentityId: "string",
    },
    delegatedSubnetId: "string",
    geoRedundantBackupEnabled: false,
    highAvailability: {
        mode: "string",
        standbyAvailabilityZone: "string",
    },
    identity: {
        identityIds: ["string"],
        type: "string",
    },
    administratorLogin: "string",
    zone: "string",
    administratorPasswordWoVersion: 0,
    autoGrowEnabled: false,
    privateDnsZoneId: "string",
    publicNetworkAccessEnabled: false,
    replicationRole: "string",
    administratorPassword: "string",
    skuName: "string",
    sourceServerId: "string",
    storageMb: 0,
    storageTier: "string",
    tags: {
        string: "string",
    },
    version: "string",
    maintenanceWindow: {
        dayOfWeek: 0,
        startHour: 0,
        startMinute: 0,
    },
});
type: azure:postgresql:FlexibleServer
properties:
    administratorLogin: string
    administratorPassword: string
    administratorPasswordWoVersion: 0
    authentication:
        activeDirectoryAuthEnabled: false
        passwordAuthEnabled: false
        tenantId: string
    autoGrowEnabled: false
    backupRetentionDays: 0
    createMode: string
    customerManagedKey:
        geoBackupKeyVaultKeyId: string
        geoBackupUserAssignedIdentityId: string
        keyVaultKeyId: string
        primaryUserAssignedIdentityId: string
    delegatedSubnetId: string
    geoRedundantBackupEnabled: false
    highAvailability:
        mode: string
        standbyAvailabilityZone: string
    identity:
        identityIds:
            - string
        type: string
    location: string
    maintenanceWindow:
        dayOfWeek: 0
        startHour: 0
        startMinute: 0
    name: string
    pointInTimeRestoreTimeInUtc: string
    privateDnsZoneId: string
    publicNetworkAccessEnabled: false
    replicationRole: string
    resourceGroupName: string
    skuName: string
    sourceServerId: string
    storageMb: 0
    storageTier: string
    tags:
        string: string
    version: string
    zone: string
FlexibleServer 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 FlexibleServer resource accepts the following input properties:
- ResourceGroup stringName 
- The name of the Resource Group where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- AdministratorLogin string
- The Administrator login for the PostgreSQL Flexible Server. Required when - create_modeis- Defaultand- authentication.password_auth_enabledis- true.- Note: Once - administrator_loginis specified, changing this forces a new PostgreSQL Flexible Server to be created.- Note: To create with - administrator_loginspecified or update with it first specified ,- authentication.password_auth_enabledmust be set to- true.
- AdministratorPassword string
- The Password associated with the administrator_loginfor the PostgreSQL Flexible Server.
- AdministratorPassword intWo Version 
- An integer value used to trigger an update for administrator_password_wo. This property should be incremented when updatingadministrator_password_wo.
- Authentication
FlexibleServer Authentication 
- An authenticationblock as defined below.
- AutoGrow boolEnabled 
- Is the storage auto grow for PostgreSQL Flexible Server enabled? Defaults to false.
- BackupRetention intDays 
- The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7and35days.
- CreateMode string
- The creation mode which can be used to restore or replicate existing servers. Possible values are - Default,- GeoRestore,- PointInTimeRestore,- Replicaand- Update. Changing this forces a new PostgreSQL Flexible Server to be created.- Note: - create_modecannot be changed once it's set since it's a parameter at creation.- Note: While creating the resource, - create_modecannot be set to- Update.
- CustomerManaged FlexibleKey Server Customer Managed Key 
- A customer_managed_keyblock as defined below. Changing this forces a new resource to be created.
- DelegatedSubnet stringId 
- The ID of the virtual network subnet to create the PostgreSQL Flexible Server. The provided subnet should not have any other resource deployed in it and this subnet will be delegated to the PostgreSQL Flexible Server, if not already delegated. Changing this forces a new PostgreSQL Flexible Server to be created.
- GeoRedundant boolBackup Enabled 
- Is Geo-Redundant backup enabled on the PostgreSQL Flexible Server. Defaults to false. Changing this forces a new PostgreSQL Flexible Server to be created.
- HighAvailability FlexibleServer High Availability 
- A high_availabilityblock as defined below.
- Identity
FlexibleServer Identity 
- An identityblock as defined below.
- Location string
- The Azure Region where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- MaintenanceWindow FlexibleServer Maintenance Window 
- A maintenance_windowblock as defined below.
- Name string
- The name which should be used for this PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created. - Note This must be unique across the entire Azure service, not just within the resource group. 
- PointIn stringTime Restore Time In Utc 
- The point in time to restore from source_server_idwhencreate_modeisGeoRestore,PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
- PrivateDns stringZone Id 
- The ID of the private DNS zone to create the PostgreSQL Flexible Server. - Note: There will be a breaking change from upstream service at 15th July 2021, the - private_dns_zone_idwill be required when setting a- delegated_subnet_id. For existing flexible servers who don't want to be recreated, you need to provide the- private_dns_zone_idto the service team to manually migrate to the specified private DNS zone. The- azure.privatedns.Zoneshould end with suffix- .postgres.database.azure.com.
- PublicNetwork boolAccess Enabled 
- Specifies whether this PostgreSQL Flexible Server is publicly accessible. Defaults to - true.- Note: - public_network_access_enabledmust be set to- falsewhen- delegated_subnet_idand- private_dns_zone_idhave a value.
- ReplicationRole string
- The replication role for the PostgreSQL Flexible Server. Possible value is - None.- Note: The - replication_rolecannot be set while creating and only can be updated to- Nonefor replica server.
- SkuName string
- The SKU Name for the PostgreSQL Flexible Server. The name of the SKU, follows the tier+namepattern (e.g.B_Standard_B1ms,GP_Standard_D2s_v3,MO_Standard_E4s_v3).
- SourceServer stringId 
- The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_modeisGeoRestore,PointInTimeRestoreorReplica. Changing this forces a new PostgreSQL Flexible Server to be created.
- StorageMb int
- The max storage allowed for the PostgreSQL Flexible Server. Possible values are - 32768,- 65536,- 131072,- 262144,- 524288,- 1048576,- 2097152,- 4193280,- 4194304,- 8388608,- 16777216and- 33553408.- Note: If the - storage_mbfield is undefined on the initial deployment of the PostgreSQL Flexible Server resource it will default to- 32768. If the- storage_mbfield has been defined and then removed, the- storage_mbfield will retain the previously defined value.- Note: The - storage_mbcan only be scaled up, for example, you can scale the- storage_mbfrom- 32768to- 65536, but not from- 65536to- 32768.
- StorageTier string
- The name of storage performance tier for IOPS of the PostgreSQL Flexible Server. Possible values are - P4,- P6,- P10,- P15,- P20,- P30,- P40,- P50,- P60,- P70or- P80. Default value is dependant on the- storage_mbvalue. Please see the- storage_tierdefaults based on- storage_mbtable below.- Note: The - storage_tiercan be scaled once every 12 hours, this restriction is in place to ensure stability and performance after any changes to your PostgreSQL Flexible Server's configuration.
- Dictionary<string, string>
- A mapping of tags which should be assigned to the PostgreSQL Flexible Server.
- Version string
- The version of PostgreSQL Flexible Server to use. Possible values are - 11,- 12,- 13,- 14,- 15and- 16. Required when- create_modeis- Default.- Note: When - create_modeis- Update, upgrading version wouldn't force a new resource to be created.
- Zone string
- ResourceGroup stringName 
- The name of the Resource Group where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- AdministratorLogin string
- The Administrator login for the PostgreSQL Flexible Server. Required when - create_modeis- Defaultand- authentication.password_auth_enabledis- true.- Note: Once - administrator_loginis specified, changing this forces a new PostgreSQL Flexible Server to be created.- Note: To create with - administrator_loginspecified or update with it first specified ,- authentication.password_auth_enabledmust be set to- true.
- AdministratorPassword string
- The Password associated with the administrator_loginfor the PostgreSQL Flexible Server.
- AdministratorPassword intWo Version 
- An integer value used to trigger an update for administrator_password_wo. This property should be incremented when updatingadministrator_password_wo.
- Authentication
FlexibleServer Authentication Args 
- An authenticationblock as defined below.
- AutoGrow boolEnabled 
- Is the storage auto grow for PostgreSQL Flexible Server enabled? Defaults to false.
- BackupRetention intDays 
- The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7and35days.
- CreateMode string
- The creation mode which can be used to restore or replicate existing servers. Possible values are - Default,- GeoRestore,- PointInTimeRestore,- Replicaand- Update. Changing this forces a new PostgreSQL Flexible Server to be created.- Note: - create_modecannot be changed once it's set since it's a parameter at creation.- Note: While creating the resource, - create_modecannot be set to- Update.
- CustomerManaged FlexibleKey Server Customer Managed Key Args 
- A customer_managed_keyblock as defined below. Changing this forces a new resource to be created.
- DelegatedSubnet stringId 
- The ID of the virtual network subnet to create the PostgreSQL Flexible Server. The provided subnet should not have any other resource deployed in it and this subnet will be delegated to the PostgreSQL Flexible Server, if not already delegated. Changing this forces a new PostgreSQL Flexible Server to be created.
- GeoRedundant boolBackup Enabled 
- Is Geo-Redundant backup enabled on the PostgreSQL Flexible Server. Defaults to false. Changing this forces a new PostgreSQL Flexible Server to be created.
- HighAvailability FlexibleServer High Availability Args 
- A high_availabilityblock as defined below.
- Identity
FlexibleServer Identity Args 
- An identityblock as defined below.
- Location string
- The Azure Region where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- MaintenanceWindow FlexibleServer Maintenance Window Args 
- A maintenance_windowblock as defined below.
- Name string
- The name which should be used for this PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created. - Note This must be unique across the entire Azure service, not just within the resource group. 
- PointIn stringTime Restore Time In Utc 
- The point in time to restore from source_server_idwhencreate_modeisGeoRestore,PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
- PrivateDns stringZone Id 
- The ID of the private DNS zone to create the PostgreSQL Flexible Server. - Note: There will be a breaking change from upstream service at 15th July 2021, the - private_dns_zone_idwill be required when setting a- delegated_subnet_id. For existing flexible servers who don't want to be recreated, you need to provide the- private_dns_zone_idto the service team to manually migrate to the specified private DNS zone. The- azure.privatedns.Zoneshould end with suffix- .postgres.database.azure.com.
- PublicNetwork boolAccess Enabled 
- Specifies whether this PostgreSQL Flexible Server is publicly accessible. Defaults to - true.- Note: - public_network_access_enabledmust be set to- falsewhen- delegated_subnet_idand- private_dns_zone_idhave a value.
- ReplicationRole string
- The replication role for the PostgreSQL Flexible Server. Possible value is - None.- Note: The - replication_rolecannot be set while creating and only can be updated to- Nonefor replica server.
- SkuName string
- The SKU Name for the PostgreSQL Flexible Server. The name of the SKU, follows the tier+namepattern (e.g.B_Standard_B1ms,GP_Standard_D2s_v3,MO_Standard_E4s_v3).
- SourceServer stringId 
- The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_modeisGeoRestore,PointInTimeRestoreorReplica. Changing this forces a new PostgreSQL Flexible Server to be created.
- StorageMb int
- The max storage allowed for the PostgreSQL Flexible Server. Possible values are - 32768,- 65536,- 131072,- 262144,- 524288,- 1048576,- 2097152,- 4193280,- 4194304,- 8388608,- 16777216and- 33553408.- Note: If the - storage_mbfield is undefined on the initial deployment of the PostgreSQL Flexible Server resource it will default to- 32768. If the- storage_mbfield has been defined and then removed, the- storage_mbfield will retain the previously defined value.- Note: The - storage_mbcan only be scaled up, for example, you can scale the- storage_mbfrom- 32768to- 65536, but not from- 65536to- 32768.
- StorageTier string
- The name of storage performance tier for IOPS of the PostgreSQL Flexible Server. Possible values are - P4,- P6,- P10,- P15,- P20,- P30,- P40,- P50,- P60,- P70or- P80. Default value is dependant on the- storage_mbvalue. Please see the- storage_tierdefaults based on- storage_mbtable below.- Note: The - storage_tiercan be scaled once every 12 hours, this restriction is in place to ensure stability and performance after any changes to your PostgreSQL Flexible Server's configuration.
- map[string]string
- A mapping of tags which should be assigned to the PostgreSQL Flexible Server.
- Version string
- The version of PostgreSQL Flexible Server to use. Possible values are - 11,- 12,- 13,- 14,- 15and- 16. Required when- create_modeis- Default.- Note: When - create_modeis- Update, upgrading version wouldn't force a new resource to be created.
- Zone string
- resourceGroup StringName 
- The name of the Resource Group where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- administratorLogin String
- The Administrator login for the PostgreSQL Flexible Server. Required when - create_modeis- Defaultand- authentication.password_auth_enabledis- true.- Note: Once - administrator_loginis specified, changing this forces a new PostgreSQL Flexible Server to be created.- Note: To create with - administrator_loginspecified or update with it first specified ,- authentication.password_auth_enabledmust be set to- true.
- administratorPassword String
- The Password associated with the administrator_loginfor the PostgreSQL Flexible Server.
- administratorPassword IntegerWo Version 
- An integer value used to trigger an update for administrator_password_wo. This property should be incremented when updatingadministrator_password_wo.
- authentication
FlexibleServer Authentication 
- An authenticationblock as defined below.
- autoGrow BooleanEnabled 
- Is the storage auto grow for PostgreSQL Flexible Server enabled? Defaults to false.
- backupRetention IntegerDays 
- The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7and35days.
- createMode String
- The creation mode which can be used to restore or replicate existing servers. Possible values are - Default,- GeoRestore,- PointInTimeRestore,- Replicaand- Update. Changing this forces a new PostgreSQL Flexible Server to be created.- Note: - create_modecannot be changed once it's set since it's a parameter at creation.- Note: While creating the resource, - create_modecannot be set to- Update.
- customerManaged FlexibleKey Server Customer Managed Key 
- A customer_managed_keyblock as defined below. Changing this forces a new resource to be created.
- delegatedSubnet StringId 
- The ID of the virtual network subnet to create the PostgreSQL Flexible Server. The provided subnet should not have any other resource deployed in it and this subnet will be delegated to the PostgreSQL Flexible Server, if not already delegated. Changing this forces a new PostgreSQL Flexible Server to be created.
- geoRedundant BooleanBackup Enabled 
- Is Geo-Redundant backup enabled on the PostgreSQL Flexible Server. Defaults to false. Changing this forces a new PostgreSQL Flexible Server to be created.
- highAvailability FlexibleServer High Availability 
- A high_availabilityblock as defined below.
- identity
FlexibleServer Identity 
- An identityblock as defined below.
- location String
- The Azure Region where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- maintenanceWindow FlexibleServer Maintenance Window 
- A maintenance_windowblock as defined below.
- name String
- The name which should be used for this PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created. - Note This must be unique across the entire Azure service, not just within the resource group. 
- pointIn StringTime Restore Time In Utc 
- The point in time to restore from source_server_idwhencreate_modeisGeoRestore,PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
- privateDns StringZone Id 
- The ID of the private DNS zone to create the PostgreSQL Flexible Server. - Note: There will be a breaking change from upstream service at 15th July 2021, the - private_dns_zone_idwill be required when setting a- delegated_subnet_id. For existing flexible servers who don't want to be recreated, you need to provide the- private_dns_zone_idto the service team to manually migrate to the specified private DNS zone. The- azure.privatedns.Zoneshould end with suffix- .postgres.database.azure.com.
- publicNetwork BooleanAccess Enabled 
- Specifies whether this PostgreSQL Flexible Server is publicly accessible. Defaults to - true.- Note: - public_network_access_enabledmust be set to- falsewhen- delegated_subnet_idand- private_dns_zone_idhave a value.
- replicationRole String
- The replication role for the PostgreSQL Flexible Server. Possible value is - None.- Note: The - replication_rolecannot be set while creating and only can be updated to- Nonefor replica server.
- skuName String
- The SKU Name for the PostgreSQL Flexible Server. The name of the SKU, follows the tier+namepattern (e.g.B_Standard_B1ms,GP_Standard_D2s_v3,MO_Standard_E4s_v3).
- sourceServer StringId 
- The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_modeisGeoRestore,PointInTimeRestoreorReplica. Changing this forces a new PostgreSQL Flexible Server to be created.
- storageMb Integer
- The max storage allowed for the PostgreSQL Flexible Server. Possible values are - 32768,- 65536,- 131072,- 262144,- 524288,- 1048576,- 2097152,- 4193280,- 4194304,- 8388608,- 16777216and- 33553408.- Note: If the - storage_mbfield is undefined on the initial deployment of the PostgreSQL Flexible Server resource it will default to- 32768. If the- storage_mbfield has been defined and then removed, the- storage_mbfield will retain the previously defined value.- Note: The - storage_mbcan only be scaled up, for example, you can scale the- storage_mbfrom- 32768to- 65536, but not from- 65536to- 32768.
- storageTier String
- The name of storage performance tier for IOPS of the PostgreSQL Flexible Server. Possible values are - P4,- P6,- P10,- P15,- P20,- P30,- P40,- P50,- P60,- P70or- P80. Default value is dependant on the- storage_mbvalue. Please see the- storage_tierdefaults based on- storage_mbtable below.- Note: The - storage_tiercan be scaled once every 12 hours, this restriction is in place to ensure stability and performance after any changes to your PostgreSQL Flexible Server's configuration.
- Map<String,String>
- A mapping of tags which should be assigned to the PostgreSQL Flexible Server.
- version String
- The version of PostgreSQL Flexible Server to use. Possible values are - 11,- 12,- 13,- 14,- 15and- 16. Required when- create_modeis- Default.- Note: When - create_modeis- Update, upgrading version wouldn't force a new resource to be created.
- zone String
- resourceGroup stringName 
- The name of the Resource Group where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- administratorLogin string
- The Administrator login for the PostgreSQL Flexible Server. Required when - create_modeis- Defaultand- authentication.password_auth_enabledis- true.- Note: Once - administrator_loginis specified, changing this forces a new PostgreSQL Flexible Server to be created.- Note: To create with - administrator_loginspecified or update with it first specified ,- authentication.password_auth_enabledmust be set to- true.
- administratorPassword string
- The Password associated with the administrator_loginfor the PostgreSQL Flexible Server.
- administratorPassword numberWo Version 
- An integer value used to trigger an update for administrator_password_wo. This property should be incremented when updatingadministrator_password_wo.
- authentication
FlexibleServer Authentication 
- An authenticationblock as defined below.
- autoGrow booleanEnabled 
- Is the storage auto grow for PostgreSQL Flexible Server enabled? Defaults to false.
- backupRetention numberDays 
- The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7and35days.
- createMode string
- The creation mode which can be used to restore or replicate existing servers. Possible values are - Default,- GeoRestore,- PointInTimeRestore,- Replicaand- Update. Changing this forces a new PostgreSQL Flexible Server to be created.- Note: - create_modecannot be changed once it's set since it's a parameter at creation.- Note: While creating the resource, - create_modecannot be set to- Update.
- customerManaged FlexibleKey Server Customer Managed Key 
- A customer_managed_keyblock as defined below. Changing this forces a new resource to be created.
- delegatedSubnet stringId 
- The ID of the virtual network subnet to create the PostgreSQL Flexible Server. The provided subnet should not have any other resource deployed in it and this subnet will be delegated to the PostgreSQL Flexible Server, if not already delegated. Changing this forces a new PostgreSQL Flexible Server to be created.
- geoRedundant booleanBackup Enabled 
- Is Geo-Redundant backup enabled on the PostgreSQL Flexible Server. Defaults to false. Changing this forces a new PostgreSQL Flexible Server to be created.
- highAvailability FlexibleServer High Availability 
- A high_availabilityblock as defined below.
- identity
FlexibleServer Identity 
- An identityblock as defined below.
- location string
- The Azure Region where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- maintenanceWindow FlexibleServer Maintenance Window 
- A maintenance_windowblock as defined below.
- name string
- The name which should be used for this PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created. - Note This must be unique across the entire Azure service, not just within the resource group. 
- pointIn stringTime Restore Time In Utc 
- The point in time to restore from source_server_idwhencreate_modeisGeoRestore,PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
- privateDns stringZone Id 
- The ID of the private DNS zone to create the PostgreSQL Flexible Server. - Note: There will be a breaking change from upstream service at 15th July 2021, the - private_dns_zone_idwill be required when setting a- delegated_subnet_id. For existing flexible servers who don't want to be recreated, you need to provide the- private_dns_zone_idto the service team to manually migrate to the specified private DNS zone. The- azure.privatedns.Zoneshould end with suffix- .postgres.database.azure.com.
- publicNetwork booleanAccess Enabled 
- Specifies whether this PostgreSQL Flexible Server is publicly accessible. Defaults to - true.- Note: - public_network_access_enabledmust be set to- falsewhen- delegated_subnet_idand- private_dns_zone_idhave a value.
- replicationRole string
- The replication role for the PostgreSQL Flexible Server. Possible value is - None.- Note: The - replication_rolecannot be set while creating and only can be updated to- Nonefor replica server.
- skuName string
- The SKU Name for the PostgreSQL Flexible Server. The name of the SKU, follows the tier+namepattern (e.g.B_Standard_B1ms,GP_Standard_D2s_v3,MO_Standard_E4s_v3).
- sourceServer stringId 
- The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_modeisGeoRestore,PointInTimeRestoreorReplica. Changing this forces a new PostgreSQL Flexible Server to be created.
- storageMb number
- The max storage allowed for the PostgreSQL Flexible Server. Possible values are - 32768,- 65536,- 131072,- 262144,- 524288,- 1048576,- 2097152,- 4193280,- 4194304,- 8388608,- 16777216and- 33553408.- Note: If the - storage_mbfield is undefined on the initial deployment of the PostgreSQL Flexible Server resource it will default to- 32768. If the- storage_mbfield has been defined and then removed, the- storage_mbfield will retain the previously defined value.- Note: The - storage_mbcan only be scaled up, for example, you can scale the- storage_mbfrom- 32768to- 65536, but not from- 65536to- 32768.
- storageTier string
- The name of storage performance tier for IOPS of the PostgreSQL Flexible Server. Possible values are - P4,- P6,- P10,- P15,- P20,- P30,- P40,- P50,- P60,- P70or- P80. Default value is dependant on the- storage_mbvalue. Please see the- storage_tierdefaults based on- storage_mbtable below.- Note: The - storage_tiercan be scaled once every 12 hours, this restriction is in place to ensure stability and performance after any changes to your PostgreSQL Flexible Server's configuration.
- {[key: string]: string}
- A mapping of tags which should be assigned to the PostgreSQL Flexible Server.
- version string
- The version of PostgreSQL Flexible Server to use. Possible values are - 11,- 12,- 13,- 14,- 15and- 16. Required when- create_modeis- Default.- Note: When - create_modeis- Update, upgrading version wouldn't force a new resource to be created.
- zone string
- resource_group_ strname 
- The name of the Resource Group where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- administrator_login str
- The Administrator login for the PostgreSQL Flexible Server. Required when - create_modeis- Defaultand- authentication.password_auth_enabledis- true.- Note: Once - administrator_loginis specified, changing this forces a new PostgreSQL Flexible Server to be created.- Note: To create with - administrator_loginspecified or update with it first specified ,- authentication.password_auth_enabledmust be set to- true.
- administrator_password str
- The Password associated with the administrator_loginfor the PostgreSQL Flexible Server.
- administrator_password_ intwo_ version 
- An integer value used to trigger an update for administrator_password_wo. This property should be incremented when updatingadministrator_password_wo.
- authentication
FlexibleServer Authentication Args 
- An authenticationblock as defined below.
- auto_grow_ boolenabled 
- Is the storage auto grow for PostgreSQL Flexible Server enabled? Defaults to false.
- backup_retention_ intdays 
- The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7and35days.
- create_mode str
- The creation mode which can be used to restore or replicate existing servers. Possible values are - Default,- GeoRestore,- PointInTimeRestore,- Replicaand- Update. Changing this forces a new PostgreSQL Flexible Server to be created.- Note: - create_modecannot be changed once it's set since it's a parameter at creation.- Note: While creating the resource, - create_modecannot be set to- Update.
- customer_managed_ Flexiblekey Server Customer Managed Key Args 
- A customer_managed_keyblock as defined below. Changing this forces a new resource to be created.
- delegated_subnet_ strid 
- The ID of the virtual network subnet to create the PostgreSQL Flexible Server. The provided subnet should not have any other resource deployed in it and this subnet will be delegated to the PostgreSQL Flexible Server, if not already delegated. Changing this forces a new PostgreSQL Flexible Server to be created.
- geo_redundant_ boolbackup_ enabled 
- Is Geo-Redundant backup enabled on the PostgreSQL Flexible Server. Defaults to false. Changing this forces a new PostgreSQL Flexible Server to be created.
- high_availability FlexibleServer High Availability Args 
- A high_availabilityblock as defined below.
- identity
FlexibleServer Identity Args 
- An identityblock as defined below.
- location str
- The Azure Region where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- maintenance_window FlexibleServer Maintenance Window Args 
- A maintenance_windowblock as defined below.
- name str
- The name which should be used for this PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created. - Note This must be unique across the entire Azure service, not just within the resource group. 
- point_in_ strtime_ restore_ time_ in_ utc 
- The point in time to restore from source_server_idwhencreate_modeisGeoRestore,PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
- private_dns_ strzone_ id 
- The ID of the private DNS zone to create the PostgreSQL Flexible Server. - Note: There will be a breaking change from upstream service at 15th July 2021, the - private_dns_zone_idwill be required when setting a- delegated_subnet_id. For existing flexible servers who don't want to be recreated, you need to provide the- private_dns_zone_idto the service team to manually migrate to the specified private DNS zone. The- azure.privatedns.Zoneshould end with suffix- .postgres.database.azure.com.
- public_network_ boolaccess_ enabled 
- Specifies whether this PostgreSQL Flexible Server is publicly accessible. Defaults to - true.- Note: - public_network_access_enabledmust be set to- falsewhen- delegated_subnet_idand- private_dns_zone_idhave a value.
- replication_role str
- The replication role for the PostgreSQL Flexible Server. Possible value is - None.- Note: The - replication_rolecannot be set while creating and only can be updated to- Nonefor replica server.
- sku_name str
- The SKU Name for the PostgreSQL Flexible Server. The name of the SKU, follows the tier+namepattern (e.g.B_Standard_B1ms,GP_Standard_D2s_v3,MO_Standard_E4s_v3).
- source_server_ strid 
- The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_modeisGeoRestore,PointInTimeRestoreorReplica. Changing this forces a new PostgreSQL Flexible Server to be created.
- storage_mb int
- The max storage allowed for the PostgreSQL Flexible Server. Possible values are - 32768,- 65536,- 131072,- 262144,- 524288,- 1048576,- 2097152,- 4193280,- 4194304,- 8388608,- 16777216and- 33553408.- Note: If the - storage_mbfield is undefined on the initial deployment of the PostgreSQL Flexible Server resource it will default to- 32768. If the- storage_mbfield has been defined and then removed, the- storage_mbfield will retain the previously defined value.- Note: The - storage_mbcan only be scaled up, for example, you can scale the- storage_mbfrom- 32768to- 65536, but not from- 65536to- 32768.
- storage_tier str
- The name of storage performance tier for IOPS of the PostgreSQL Flexible Server. Possible values are - P4,- P6,- P10,- P15,- P20,- P30,- P40,- P50,- P60,- P70or- P80. Default value is dependant on the- storage_mbvalue. Please see the- storage_tierdefaults based on- storage_mbtable below.- Note: The - storage_tiercan be scaled once every 12 hours, this restriction is in place to ensure stability and performance after any changes to your PostgreSQL Flexible Server's configuration.
- Mapping[str, str]
- A mapping of tags which should be assigned to the PostgreSQL Flexible Server.
- version str
- The version of PostgreSQL Flexible Server to use. Possible values are - 11,- 12,- 13,- 14,- 15and- 16. Required when- create_modeis- Default.- Note: When - create_modeis- Update, upgrading version wouldn't force a new resource to be created.
- zone str
- resourceGroup StringName 
- The name of the Resource Group where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- administratorLogin String
- The Administrator login for the PostgreSQL Flexible Server. Required when - create_modeis- Defaultand- authentication.password_auth_enabledis- true.- Note: Once - administrator_loginis specified, changing this forces a new PostgreSQL Flexible Server to be created.- Note: To create with - administrator_loginspecified or update with it first specified ,- authentication.password_auth_enabledmust be set to- true.
- administratorPassword String
- The Password associated with the administrator_loginfor the PostgreSQL Flexible Server.
- administratorPassword NumberWo Version 
- An integer value used to trigger an update for administrator_password_wo. This property should be incremented when updatingadministrator_password_wo.
- authentication Property Map
- An authenticationblock as defined below.
- autoGrow BooleanEnabled 
- Is the storage auto grow for PostgreSQL Flexible Server enabled? Defaults to false.
- backupRetention NumberDays 
- The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7and35days.
- createMode String
- The creation mode which can be used to restore or replicate existing servers. Possible values are - Default,- GeoRestore,- PointInTimeRestore,- Replicaand- Update. Changing this forces a new PostgreSQL Flexible Server to be created.- Note: - create_modecannot be changed once it's set since it's a parameter at creation.- Note: While creating the resource, - create_modecannot be set to- Update.
- customerManaged Property MapKey 
- A customer_managed_keyblock as defined below. Changing this forces a new resource to be created.
- delegatedSubnet StringId 
- The ID of the virtual network subnet to create the PostgreSQL Flexible Server. The provided subnet should not have any other resource deployed in it and this subnet will be delegated to the PostgreSQL Flexible Server, if not already delegated. Changing this forces a new PostgreSQL Flexible Server to be created.
- geoRedundant BooleanBackup Enabled 
- Is Geo-Redundant backup enabled on the PostgreSQL Flexible Server. Defaults to false. Changing this forces a new PostgreSQL Flexible Server to be created.
- highAvailability Property Map
- A high_availabilityblock as defined below.
- identity Property Map
- An identityblock as defined below.
- location String
- The Azure Region where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- maintenanceWindow Property Map
- A maintenance_windowblock as defined below.
- name String
- The name which should be used for this PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created. - Note This must be unique across the entire Azure service, not just within the resource group. 
- pointIn StringTime Restore Time In Utc 
- The point in time to restore from source_server_idwhencreate_modeisGeoRestore,PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
- privateDns StringZone Id 
- The ID of the private DNS zone to create the PostgreSQL Flexible Server. - Note: There will be a breaking change from upstream service at 15th July 2021, the - private_dns_zone_idwill be required when setting a- delegated_subnet_id. For existing flexible servers who don't want to be recreated, you need to provide the- private_dns_zone_idto the service team to manually migrate to the specified private DNS zone. The- azure.privatedns.Zoneshould end with suffix- .postgres.database.azure.com.
- publicNetwork BooleanAccess Enabled 
- Specifies whether this PostgreSQL Flexible Server is publicly accessible. Defaults to - true.- Note: - public_network_access_enabledmust be set to- falsewhen- delegated_subnet_idand- private_dns_zone_idhave a value.
- replicationRole String
- The replication role for the PostgreSQL Flexible Server. Possible value is - None.- Note: The - replication_rolecannot be set while creating and only can be updated to- Nonefor replica server.
- skuName String
- The SKU Name for the PostgreSQL Flexible Server. The name of the SKU, follows the tier+namepattern (e.g.B_Standard_B1ms,GP_Standard_D2s_v3,MO_Standard_E4s_v3).
- sourceServer StringId 
- The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_modeisGeoRestore,PointInTimeRestoreorReplica. Changing this forces a new PostgreSQL Flexible Server to be created.
- storageMb Number
- The max storage allowed for the PostgreSQL Flexible Server. Possible values are - 32768,- 65536,- 131072,- 262144,- 524288,- 1048576,- 2097152,- 4193280,- 4194304,- 8388608,- 16777216and- 33553408.- Note: If the - storage_mbfield is undefined on the initial deployment of the PostgreSQL Flexible Server resource it will default to- 32768. If the- storage_mbfield has been defined and then removed, the- storage_mbfield will retain the previously defined value.- Note: The - storage_mbcan only be scaled up, for example, you can scale the- storage_mbfrom- 32768to- 65536, but not from- 65536to- 32768.
- storageTier String
- The name of storage performance tier for IOPS of the PostgreSQL Flexible Server. Possible values are - P4,- P6,- P10,- P15,- P20,- P30,- P40,- P50,- P60,- P70or- P80. Default value is dependant on the- storage_mbvalue. Please see the- storage_tierdefaults based on- storage_mbtable below.- Note: The - storage_tiercan be scaled once every 12 hours, this restriction is in place to ensure stability and performance after any changes to your PostgreSQL Flexible Server's configuration.
- Map<String>
- A mapping of tags which should be assigned to the PostgreSQL Flexible Server.
- version String
- The version of PostgreSQL Flexible Server to use. Possible values are - 11,- 12,- 13,- 14,- 15and- 16. Required when- create_modeis- Default.- Note: When - create_modeis- Update, upgrading version wouldn't force a new resource to be created.
- zone String
Outputs
All input properties are implicitly available as output properties. Additionally, the FlexibleServer resource produces the following output properties:
Look up Existing FlexibleServer Resource
Get an existing FlexibleServer 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?: FlexibleServerState, opts?: CustomResourceOptions): FlexibleServer@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        administrator_login: Optional[str] = None,
        administrator_password: Optional[str] = None,
        administrator_password_wo_version: Optional[int] = None,
        authentication: Optional[FlexibleServerAuthenticationArgs] = None,
        auto_grow_enabled: Optional[bool] = None,
        backup_retention_days: Optional[int] = None,
        create_mode: Optional[str] = None,
        customer_managed_key: Optional[FlexibleServerCustomerManagedKeyArgs] = None,
        delegated_subnet_id: Optional[str] = None,
        fqdn: Optional[str] = None,
        geo_redundant_backup_enabled: Optional[bool] = None,
        high_availability: Optional[FlexibleServerHighAvailabilityArgs] = None,
        identity: Optional[FlexibleServerIdentityArgs] = None,
        location: Optional[str] = None,
        maintenance_window: Optional[FlexibleServerMaintenanceWindowArgs] = None,
        name: Optional[str] = None,
        point_in_time_restore_time_in_utc: Optional[str] = None,
        private_dns_zone_id: Optional[str] = None,
        public_network_access_enabled: Optional[bool] = None,
        replication_role: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        sku_name: Optional[str] = None,
        source_server_id: Optional[str] = None,
        storage_mb: Optional[int] = None,
        storage_tier: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        version: Optional[str] = None,
        zone: Optional[str] = None) -> FlexibleServerfunc GetFlexibleServer(ctx *Context, name string, id IDInput, state *FlexibleServerState, opts ...ResourceOption) (*FlexibleServer, error)public static FlexibleServer Get(string name, Input<string> id, FlexibleServerState? state, CustomResourceOptions? opts = null)public static FlexibleServer get(String name, Output<String> id, FlexibleServerState state, CustomResourceOptions options)resources:  _:    type: azure:postgresql:FlexibleServer    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 Flexible Server. Required when - create_modeis- Defaultand- authentication.password_auth_enabledis- true.- Note: Once - administrator_loginis specified, changing this forces a new PostgreSQL Flexible Server to be created.- Note: To create with - administrator_loginspecified or update with it first specified ,- authentication.password_auth_enabledmust be set to- true.
- AdministratorPassword string
- The Password associated with the administrator_loginfor the PostgreSQL Flexible Server.
- AdministratorPassword intWo Version 
- An integer value used to trigger an update for administrator_password_wo. This property should be incremented when updatingadministrator_password_wo.
- Authentication
FlexibleServer Authentication 
- An authenticationblock as defined below.
- AutoGrow boolEnabled 
- Is the storage auto grow for PostgreSQL Flexible Server enabled? Defaults to false.
- BackupRetention intDays 
- The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7and35days.
- CreateMode string
- The creation mode which can be used to restore or replicate existing servers. Possible values are - Default,- GeoRestore,- PointInTimeRestore,- Replicaand- Update. Changing this forces a new PostgreSQL Flexible Server to be created.- Note: - create_modecannot be changed once it's set since it's a parameter at creation.- Note: While creating the resource, - create_modecannot be set to- Update.
- CustomerManaged FlexibleKey Server Customer Managed Key 
- A customer_managed_keyblock as defined below. Changing this forces a new resource to be created.
- DelegatedSubnet stringId 
- The ID of the virtual network subnet to create the PostgreSQL Flexible Server. The provided subnet should not have any other resource deployed in it and this subnet will be delegated to the PostgreSQL Flexible Server, if not already delegated. Changing this forces a new PostgreSQL Flexible Server to be created.
- Fqdn string
- The FQDN of the PostgreSQL Flexible Server.
- GeoRedundant boolBackup Enabled 
- Is Geo-Redundant backup enabled on the PostgreSQL Flexible Server. Defaults to false. Changing this forces a new PostgreSQL Flexible Server to be created.
- HighAvailability FlexibleServer High Availability 
- A high_availabilityblock as defined below.
- Identity
FlexibleServer Identity 
- An identityblock as defined below.
- Location string
- The Azure Region where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- MaintenanceWindow FlexibleServer Maintenance Window 
- A maintenance_windowblock as defined below.
- Name string
- The name which should be used for this PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created. - Note This must be unique across the entire Azure service, not just within the resource group. 
- PointIn stringTime Restore Time In Utc 
- The point in time to restore from source_server_idwhencreate_modeisGeoRestore,PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
- PrivateDns stringZone Id 
- The ID of the private DNS zone to create the PostgreSQL Flexible Server. - Note: There will be a breaking change from upstream service at 15th July 2021, the - private_dns_zone_idwill be required when setting a- delegated_subnet_id. For existing flexible servers who don't want to be recreated, you need to provide the- private_dns_zone_idto the service team to manually migrate to the specified private DNS zone. The- azure.privatedns.Zoneshould end with suffix- .postgres.database.azure.com.
- PublicNetwork boolAccess Enabled 
- Specifies whether this PostgreSQL Flexible Server is publicly accessible. Defaults to - true.- Note: - public_network_access_enabledmust be set to- falsewhen- delegated_subnet_idand- private_dns_zone_idhave a value.
- ReplicationRole string
- The replication role for the PostgreSQL Flexible Server. Possible value is - None.- Note: The - replication_rolecannot be set while creating and only can be updated to- Nonefor replica server.
- ResourceGroup stringName 
- The name of the Resource Group where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- SkuName string
- The SKU Name for the PostgreSQL Flexible Server. The name of the SKU, follows the tier+namepattern (e.g.B_Standard_B1ms,GP_Standard_D2s_v3,MO_Standard_E4s_v3).
- SourceServer stringId 
- The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_modeisGeoRestore,PointInTimeRestoreorReplica. Changing this forces a new PostgreSQL Flexible Server to be created.
- StorageMb int
- The max storage allowed for the PostgreSQL Flexible Server. Possible values are - 32768,- 65536,- 131072,- 262144,- 524288,- 1048576,- 2097152,- 4193280,- 4194304,- 8388608,- 16777216and- 33553408.- Note: If the - storage_mbfield is undefined on the initial deployment of the PostgreSQL Flexible Server resource it will default to- 32768. If the- storage_mbfield has been defined and then removed, the- storage_mbfield will retain the previously defined value.- Note: The - storage_mbcan only be scaled up, for example, you can scale the- storage_mbfrom- 32768to- 65536, but not from- 65536to- 32768.
- StorageTier string
- The name of storage performance tier for IOPS of the PostgreSQL Flexible Server. Possible values are - P4,- P6,- P10,- P15,- P20,- P30,- P40,- P50,- P60,- P70or- P80. Default value is dependant on the- storage_mbvalue. Please see the- storage_tierdefaults based on- storage_mbtable below.- Note: The - storage_tiercan be scaled once every 12 hours, this restriction is in place to ensure stability and performance after any changes to your PostgreSQL Flexible Server's configuration.
- Dictionary<string, string>
- A mapping of tags which should be assigned to the PostgreSQL Flexible Server.
- Version string
- The version of PostgreSQL Flexible Server to use. Possible values are - 11,- 12,- 13,- 14,- 15and- 16. Required when- create_modeis- Default.- Note: When - create_modeis- Update, upgrading version wouldn't force a new resource to be created.
- Zone string
- AdministratorLogin string
- The Administrator login for the PostgreSQL Flexible Server. Required when - create_modeis- Defaultand- authentication.password_auth_enabledis- true.- Note: Once - administrator_loginis specified, changing this forces a new PostgreSQL Flexible Server to be created.- Note: To create with - administrator_loginspecified or update with it first specified ,- authentication.password_auth_enabledmust be set to- true.
- AdministratorPassword string
- The Password associated with the administrator_loginfor the PostgreSQL Flexible Server.
- AdministratorPassword intWo Version 
- An integer value used to trigger an update for administrator_password_wo. This property should be incremented when updatingadministrator_password_wo.
- Authentication
FlexibleServer Authentication Args 
- An authenticationblock as defined below.
- AutoGrow boolEnabled 
- Is the storage auto grow for PostgreSQL Flexible Server enabled? Defaults to false.
- BackupRetention intDays 
- The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7and35days.
- CreateMode string
- The creation mode which can be used to restore or replicate existing servers. Possible values are - Default,- GeoRestore,- PointInTimeRestore,- Replicaand- Update. Changing this forces a new PostgreSQL Flexible Server to be created.- Note: - create_modecannot be changed once it's set since it's a parameter at creation.- Note: While creating the resource, - create_modecannot be set to- Update.
- CustomerManaged FlexibleKey Server Customer Managed Key Args 
- A customer_managed_keyblock as defined below. Changing this forces a new resource to be created.
- DelegatedSubnet stringId 
- The ID of the virtual network subnet to create the PostgreSQL Flexible Server. The provided subnet should not have any other resource deployed in it and this subnet will be delegated to the PostgreSQL Flexible Server, if not already delegated. Changing this forces a new PostgreSQL Flexible Server to be created.
- Fqdn string
- The FQDN of the PostgreSQL Flexible Server.
- GeoRedundant boolBackup Enabled 
- Is Geo-Redundant backup enabled on the PostgreSQL Flexible Server. Defaults to false. Changing this forces a new PostgreSQL Flexible Server to be created.
- HighAvailability FlexibleServer High Availability Args 
- A high_availabilityblock as defined below.
- Identity
FlexibleServer Identity Args 
- An identityblock as defined below.
- Location string
- The Azure Region where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- MaintenanceWindow FlexibleServer Maintenance Window Args 
- A maintenance_windowblock as defined below.
- Name string
- The name which should be used for this PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created. - Note This must be unique across the entire Azure service, not just within the resource group. 
- PointIn stringTime Restore Time In Utc 
- The point in time to restore from source_server_idwhencreate_modeisGeoRestore,PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
- PrivateDns stringZone Id 
- The ID of the private DNS zone to create the PostgreSQL Flexible Server. - Note: There will be a breaking change from upstream service at 15th July 2021, the - private_dns_zone_idwill be required when setting a- delegated_subnet_id. For existing flexible servers who don't want to be recreated, you need to provide the- private_dns_zone_idto the service team to manually migrate to the specified private DNS zone. The- azure.privatedns.Zoneshould end with suffix- .postgres.database.azure.com.
- PublicNetwork boolAccess Enabled 
- Specifies whether this PostgreSQL Flexible Server is publicly accessible. Defaults to - true.- Note: - public_network_access_enabledmust be set to- falsewhen- delegated_subnet_idand- private_dns_zone_idhave a value.
- ReplicationRole string
- The replication role for the PostgreSQL Flexible Server. Possible value is - None.- Note: The - replication_rolecannot be set while creating and only can be updated to- Nonefor replica server.
- ResourceGroup stringName 
- The name of the Resource Group where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- SkuName string
- The SKU Name for the PostgreSQL Flexible Server. The name of the SKU, follows the tier+namepattern (e.g.B_Standard_B1ms,GP_Standard_D2s_v3,MO_Standard_E4s_v3).
- SourceServer stringId 
- The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_modeisGeoRestore,PointInTimeRestoreorReplica. Changing this forces a new PostgreSQL Flexible Server to be created.
- StorageMb int
- The max storage allowed for the PostgreSQL Flexible Server. Possible values are - 32768,- 65536,- 131072,- 262144,- 524288,- 1048576,- 2097152,- 4193280,- 4194304,- 8388608,- 16777216and- 33553408.- Note: If the - storage_mbfield is undefined on the initial deployment of the PostgreSQL Flexible Server resource it will default to- 32768. If the- storage_mbfield has been defined and then removed, the- storage_mbfield will retain the previously defined value.- Note: The - storage_mbcan only be scaled up, for example, you can scale the- storage_mbfrom- 32768to- 65536, but not from- 65536to- 32768.
- StorageTier string
- The name of storage performance tier for IOPS of the PostgreSQL Flexible Server. Possible values are - P4,- P6,- P10,- P15,- P20,- P30,- P40,- P50,- P60,- P70or- P80. Default value is dependant on the- storage_mbvalue. Please see the- storage_tierdefaults based on- storage_mbtable below.- Note: The - storage_tiercan be scaled once every 12 hours, this restriction is in place to ensure stability and performance after any changes to your PostgreSQL Flexible Server's configuration.
- map[string]string
- A mapping of tags which should be assigned to the PostgreSQL Flexible Server.
- Version string
- The version of PostgreSQL Flexible Server to use. Possible values are - 11,- 12,- 13,- 14,- 15and- 16. Required when- create_modeis- Default.- Note: When - create_modeis- Update, upgrading version wouldn't force a new resource to be created.
- Zone string
- administratorLogin String
- The Administrator login for the PostgreSQL Flexible Server. Required when - create_modeis- Defaultand- authentication.password_auth_enabledis- true.- Note: Once - administrator_loginis specified, changing this forces a new PostgreSQL Flexible Server to be created.- Note: To create with - administrator_loginspecified or update with it first specified ,- authentication.password_auth_enabledmust be set to- true.
- administratorPassword String
- The Password associated with the administrator_loginfor the PostgreSQL Flexible Server.
- administratorPassword IntegerWo Version 
- An integer value used to trigger an update for administrator_password_wo. This property should be incremented when updatingadministrator_password_wo.
- authentication
FlexibleServer Authentication 
- An authenticationblock as defined below.
- autoGrow BooleanEnabled 
- Is the storage auto grow for PostgreSQL Flexible Server enabled? Defaults to false.
- backupRetention IntegerDays 
- The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7and35days.
- createMode String
- The creation mode which can be used to restore or replicate existing servers. Possible values are - Default,- GeoRestore,- PointInTimeRestore,- Replicaand- Update. Changing this forces a new PostgreSQL Flexible Server to be created.- Note: - create_modecannot be changed once it's set since it's a parameter at creation.- Note: While creating the resource, - create_modecannot be set to- Update.
- customerManaged FlexibleKey Server Customer Managed Key 
- A customer_managed_keyblock as defined below. Changing this forces a new resource to be created.
- delegatedSubnet StringId 
- The ID of the virtual network subnet to create the PostgreSQL Flexible Server. The provided subnet should not have any other resource deployed in it and this subnet will be delegated to the PostgreSQL Flexible Server, if not already delegated. Changing this forces a new PostgreSQL Flexible Server to be created.
- fqdn String
- The FQDN of the PostgreSQL Flexible Server.
- geoRedundant BooleanBackup Enabled 
- Is Geo-Redundant backup enabled on the PostgreSQL Flexible Server. Defaults to false. Changing this forces a new PostgreSQL Flexible Server to be created.
- highAvailability FlexibleServer High Availability 
- A high_availabilityblock as defined below.
- identity
FlexibleServer Identity 
- An identityblock as defined below.
- location String
- The Azure Region where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- maintenanceWindow FlexibleServer Maintenance Window 
- A maintenance_windowblock as defined below.
- name String
- The name which should be used for this PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created. - Note This must be unique across the entire Azure service, not just within the resource group. 
- pointIn StringTime Restore Time In Utc 
- The point in time to restore from source_server_idwhencreate_modeisGeoRestore,PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
- privateDns StringZone Id 
- The ID of the private DNS zone to create the PostgreSQL Flexible Server. - Note: There will be a breaking change from upstream service at 15th July 2021, the - private_dns_zone_idwill be required when setting a- delegated_subnet_id. For existing flexible servers who don't want to be recreated, you need to provide the- private_dns_zone_idto the service team to manually migrate to the specified private DNS zone. The- azure.privatedns.Zoneshould end with suffix- .postgres.database.azure.com.
- publicNetwork BooleanAccess Enabled 
- Specifies whether this PostgreSQL Flexible Server is publicly accessible. Defaults to - true.- Note: - public_network_access_enabledmust be set to- falsewhen- delegated_subnet_idand- private_dns_zone_idhave a value.
- replicationRole String
- The replication role for the PostgreSQL Flexible Server. Possible value is - None.- Note: The - replication_rolecannot be set while creating and only can be updated to- Nonefor replica server.
- resourceGroup StringName 
- The name of the Resource Group where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- skuName String
- The SKU Name for the PostgreSQL Flexible Server. The name of the SKU, follows the tier+namepattern (e.g.B_Standard_B1ms,GP_Standard_D2s_v3,MO_Standard_E4s_v3).
- sourceServer StringId 
- The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_modeisGeoRestore,PointInTimeRestoreorReplica. Changing this forces a new PostgreSQL Flexible Server to be created.
- storageMb Integer
- The max storage allowed for the PostgreSQL Flexible Server. Possible values are - 32768,- 65536,- 131072,- 262144,- 524288,- 1048576,- 2097152,- 4193280,- 4194304,- 8388608,- 16777216and- 33553408.- Note: If the - storage_mbfield is undefined on the initial deployment of the PostgreSQL Flexible Server resource it will default to- 32768. If the- storage_mbfield has been defined and then removed, the- storage_mbfield will retain the previously defined value.- Note: The - storage_mbcan only be scaled up, for example, you can scale the- storage_mbfrom- 32768to- 65536, but not from- 65536to- 32768.
- storageTier String
- The name of storage performance tier for IOPS of the PostgreSQL Flexible Server. Possible values are - P4,- P6,- P10,- P15,- P20,- P30,- P40,- P50,- P60,- P70or- P80. Default value is dependant on the- storage_mbvalue. Please see the- storage_tierdefaults based on- storage_mbtable below.- Note: The - storage_tiercan be scaled once every 12 hours, this restriction is in place to ensure stability and performance after any changes to your PostgreSQL Flexible Server's configuration.
- Map<String,String>
- A mapping of tags which should be assigned to the PostgreSQL Flexible Server.
- version String
- The version of PostgreSQL Flexible Server to use. Possible values are - 11,- 12,- 13,- 14,- 15and- 16. Required when- create_modeis- Default.- Note: When - create_modeis- Update, upgrading version wouldn't force a new resource to be created.
- zone String
- administratorLogin string
- The Administrator login for the PostgreSQL Flexible Server. Required when - create_modeis- Defaultand- authentication.password_auth_enabledis- true.- Note: Once - administrator_loginis specified, changing this forces a new PostgreSQL Flexible Server to be created.- Note: To create with - administrator_loginspecified or update with it first specified ,- authentication.password_auth_enabledmust be set to- true.
- administratorPassword string
- The Password associated with the administrator_loginfor the PostgreSQL Flexible Server.
- administratorPassword numberWo Version 
- An integer value used to trigger an update for administrator_password_wo. This property should be incremented when updatingadministrator_password_wo.
- authentication
FlexibleServer Authentication 
- An authenticationblock as defined below.
- autoGrow booleanEnabled 
- Is the storage auto grow for PostgreSQL Flexible Server enabled? Defaults to false.
- backupRetention numberDays 
- The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7and35days.
- createMode string
- The creation mode which can be used to restore or replicate existing servers. Possible values are - Default,- GeoRestore,- PointInTimeRestore,- Replicaand- Update. Changing this forces a new PostgreSQL Flexible Server to be created.- Note: - create_modecannot be changed once it's set since it's a parameter at creation.- Note: While creating the resource, - create_modecannot be set to- Update.
- customerManaged FlexibleKey Server Customer Managed Key 
- A customer_managed_keyblock as defined below. Changing this forces a new resource to be created.
- delegatedSubnet stringId 
- The ID of the virtual network subnet to create the PostgreSQL Flexible Server. The provided subnet should not have any other resource deployed in it and this subnet will be delegated to the PostgreSQL Flexible Server, if not already delegated. Changing this forces a new PostgreSQL Flexible Server to be created.
- fqdn string
- The FQDN of the PostgreSQL Flexible Server.
- geoRedundant booleanBackup Enabled 
- Is Geo-Redundant backup enabled on the PostgreSQL Flexible Server. Defaults to false. Changing this forces a new PostgreSQL Flexible Server to be created.
- highAvailability FlexibleServer High Availability 
- A high_availabilityblock as defined below.
- identity
FlexibleServer Identity 
- An identityblock as defined below.
- location string
- The Azure Region where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- maintenanceWindow FlexibleServer Maintenance Window 
- A maintenance_windowblock as defined below.
- name string
- The name which should be used for this PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created. - Note This must be unique across the entire Azure service, not just within the resource group. 
- pointIn stringTime Restore Time In Utc 
- The point in time to restore from source_server_idwhencreate_modeisGeoRestore,PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
- privateDns stringZone Id 
- The ID of the private DNS zone to create the PostgreSQL Flexible Server. - Note: There will be a breaking change from upstream service at 15th July 2021, the - private_dns_zone_idwill be required when setting a- delegated_subnet_id. For existing flexible servers who don't want to be recreated, you need to provide the- private_dns_zone_idto the service team to manually migrate to the specified private DNS zone. The- azure.privatedns.Zoneshould end with suffix- .postgres.database.azure.com.
- publicNetwork booleanAccess Enabled 
- Specifies whether this PostgreSQL Flexible Server is publicly accessible. Defaults to - true.- Note: - public_network_access_enabledmust be set to- falsewhen- delegated_subnet_idand- private_dns_zone_idhave a value.
- replicationRole string
- The replication role for the PostgreSQL Flexible Server. Possible value is - None.- Note: The - replication_rolecannot be set while creating and only can be updated to- Nonefor replica server.
- resourceGroup stringName 
- The name of the Resource Group where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- skuName string
- The SKU Name for the PostgreSQL Flexible Server. The name of the SKU, follows the tier+namepattern (e.g.B_Standard_B1ms,GP_Standard_D2s_v3,MO_Standard_E4s_v3).
- sourceServer stringId 
- The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_modeisGeoRestore,PointInTimeRestoreorReplica. Changing this forces a new PostgreSQL Flexible Server to be created.
- storageMb number
- The max storage allowed for the PostgreSQL Flexible Server. Possible values are - 32768,- 65536,- 131072,- 262144,- 524288,- 1048576,- 2097152,- 4193280,- 4194304,- 8388608,- 16777216and- 33553408.- Note: If the - storage_mbfield is undefined on the initial deployment of the PostgreSQL Flexible Server resource it will default to- 32768. If the- storage_mbfield has been defined and then removed, the- storage_mbfield will retain the previously defined value.- Note: The - storage_mbcan only be scaled up, for example, you can scale the- storage_mbfrom- 32768to- 65536, but not from- 65536to- 32768.
- storageTier string
- The name of storage performance tier for IOPS of the PostgreSQL Flexible Server. Possible values are - P4,- P6,- P10,- P15,- P20,- P30,- P40,- P50,- P60,- P70or- P80. Default value is dependant on the- storage_mbvalue. Please see the- storage_tierdefaults based on- storage_mbtable below.- Note: The - storage_tiercan be scaled once every 12 hours, this restriction is in place to ensure stability and performance after any changes to your PostgreSQL Flexible Server's configuration.
- {[key: string]: string}
- A mapping of tags which should be assigned to the PostgreSQL Flexible Server.
- version string
- The version of PostgreSQL Flexible Server to use. Possible values are - 11,- 12,- 13,- 14,- 15and- 16. Required when- create_modeis- Default.- Note: When - create_modeis- Update, upgrading version wouldn't force a new resource to be created.
- zone string
- administrator_login str
- The Administrator login for the PostgreSQL Flexible Server. Required when - create_modeis- Defaultand- authentication.password_auth_enabledis- true.- Note: Once - administrator_loginis specified, changing this forces a new PostgreSQL Flexible Server to be created.- Note: To create with - administrator_loginspecified or update with it first specified ,- authentication.password_auth_enabledmust be set to- true.
- administrator_password str
- The Password associated with the administrator_loginfor the PostgreSQL Flexible Server.
- administrator_password_ intwo_ version 
- An integer value used to trigger an update for administrator_password_wo. This property should be incremented when updatingadministrator_password_wo.
- authentication
FlexibleServer Authentication Args 
- An authenticationblock as defined below.
- auto_grow_ boolenabled 
- Is the storage auto grow for PostgreSQL Flexible Server enabled? Defaults to false.
- backup_retention_ intdays 
- The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7and35days.
- create_mode str
- The creation mode which can be used to restore or replicate existing servers. Possible values are - Default,- GeoRestore,- PointInTimeRestore,- Replicaand- Update. Changing this forces a new PostgreSQL Flexible Server to be created.- Note: - create_modecannot be changed once it's set since it's a parameter at creation.- Note: While creating the resource, - create_modecannot be set to- Update.
- customer_managed_ Flexiblekey Server Customer Managed Key Args 
- A customer_managed_keyblock as defined below. Changing this forces a new resource to be created.
- delegated_subnet_ strid 
- The ID of the virtual network subnet to create the PostgreSQL Flexible Server. The provided subnet should not have any other resource deployed in it and this subnet will be delegated to the PostgreSQL Flexible Server, if not already delegated. Changing this forces a new PostgreSQL Flexible Server to be created.
- fqdn str
- The FQDN of the PostgreSQL Flexible Server.
- geo_redundant_ boolbackup_ enabled 
- Is Geo-Redundant backup enabled on the PostgreSQL Flexible Server. Defaults to false. Changing this forces a new PostgreSQL Flexible Server to be created.
- high_availability FlexibleServer High Availability Args 
- A high_availabilityblock as defined below.
- identity
FlexibleServer Identity Args 
- An identityblock as defined below.
- location str
- The Azure Region where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- maintenance_window FlexibleServer Maintenance Window Args 
- A maintenance_windowblock as defined below.
- name str
- The name which should be used for this PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created. - Note This must be unique across the entire Azure service, not just within the resource group. 
- point_in_ strtime_ restore_ time_ in_ utc 
- The point in time to restore from source_server_idwhencreate_modeisGeoRestore,PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
- private_dns_ strzone_ id 
- The ID of the private DNS zone to create the PostgreSQL Flexible Server. - Note: There will be a breaking change from upstream service at 15th July 2021, the - private_dns_zone_idwill be required when setting a- delegated_subnet_id. For existing flexible servers who don't want to be recreated, you need to provide the- private_dns_zone_idto the service team to manually migrate to the specified private DNS zone. The- azure.privatedns.Zoneshould end with suffix- .postgres.database.azure.com.
- public_network_ boolaccess_ enabled 
- Specifies whether this PostgreSQL Flexible Server is publicly accessible. Defaults to - true.- Note: - public_network_access_enabledmust be set to- falsewhen- delegated_subnet_idand- private_dns_zone_idhave a value.
- replication_role str
- The replication role for the PostgreSQL Flexible Server. Possible value is - None.- Note: The - replication_rolecannot be set while creating and only can be updated to- Nonefor replica server.
- resource_group_ strname 
- The name of the Resource Group where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- sku_name str
- The SKU Name for the PostgreSQL Flexible Server. The name of the SKU, follows the tier+namepattern (e.g.B_Standard_B1ms,GP_Standard_D2s_v3,MO_Standard_E4s_v3).
- source_server_ strid 
- The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_modeisGeoRestore,PointInTimeRestoreorReplica. Changing this forces a new PostgreSQL Flexible Server to be created.
- storage_mb int
- The max storage allowed for the PostgreSQL Flexible Server. Possible values are - 32768,- 65536,- 131072,- 262144,- 524288,- 1048576,- 2097152,- 4193280,- 4194304,- 8388608,- 16777216and- 33553408.- Note: If the - storage_mbfield is undefined on the initial deployment of the PostgreSQL Flexible Server resource it will default to- 32768. If the- storage_mbfield has been defined and then removed, the- storage_mbfield will retain the previously defined value.- Note: The - storage_mbcan only be scaled up, for example, you can scale the- storage_mbfrom- 32768to- 65536, but not from- 65536to- 32768.
- storage_tier str
- The name of storage performance tier for IOPS of the PostgreSQL Flexible Server. Possible values are - P4,- P6,- P10,- P15,- P20,- P30,- P40,- P50,- P60,- P70or- P80. Default value is dependant on the- storage_mbvalue. Please see the- storage_tierdefaults based on- storage_mbtable below.- Note: The - storage_tiercan be scaled once every 12 hours, this restriction is in place to ensure stability and performance after any changes to your PostgreSQL Flexible Server's configuration.
- Mapping[str, str]
- A mapping of tags which should be assigned to the PostgreSQL Flexible Server.
- version str
- The version of PostgreSQL Flexible Server to use. Possible values are - 11,- 12,- 13,- 14,- 15and- 16. Required when- create_modeis- Default.- Note: When - create_modeis- Update, upgrading version wouldn't force a new resource to be created.
- zone str
- administratorLogin String
- The Administrator login for the PostgreSQL Flexible Server. Required when - create_modeis- Defaultand- authentication.password_auth_enabledis- true.- Note: Once - administrator_loginis specified, changing this forces a new PostgreSQL Flexible Server to be created.- Note: To create with - administrator_loginspecified or update with it first specified ,- authentication.password_auth_enabledmust be set to- true.
- administratorPassword String
- The Password associated with the administrator_loginfor the PostgreSQL Flexible Server.
- administratorPassword NumberWo Version 
- An integer value used to trigger an update for administrator_password_wo. This property should be incremented when updatingadministrator_password_wo.
- authentication Property Map
- An authenticationblock as defined below.
- autoGrow BooleanEnabled 
- Is the storage auto grow for PostgreSQL Flexible Server enabled? Defaults to false.
- backupRetention NumberDays 
- The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7and35days.
- createMode String
- The creation mode which can be used to restore or replicate existing servers. Possible values are - Default,- GeoRestore,- PointInTimeRestore,- Replicaand- Update. Changing this forces a new PostgreSQL Flexible Server to be created.- Note: - create_modecannot be changed once it's set since it's a parameter at creation.- Note: While creating the resource, - create_modecannot be set to- Update.
- customerManaged Property MapKey 
- A customer_managed_keyblock as defined below. Changing this forces a new resource to be created.
- delegatedSubnet StringId 
- The ID of the virtual network subnet to create the PostgreSQL Flexible Server. The provided subnet should not have any other resource deployed in it and this subnet will be delegated to the PostgreSQL Flexible Server, if not already delegated. Changing this forces a new PostgreSQL Flexible Server to be created.
- fqdn String
- The FQDN of the PostgreSQL Flexible Server.
- geoRedundant BooleanBackup Enabled 
- Is Geo-Redundant backup enabled on the PostgreSQL Flexible Server. Defaults to false. Changing this forces a new PostgreSQL Flexible Server to be created.
- highAvailability Property Map
- A high_availabilityblock as defined below.
- identity Property Map
- An identityblock as defined below.
- location String
- The Azure Region where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- maintenanceWindow Property Map
- A maintenance_windowblock as defined below.
- name String
- The name which should be used for this PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created. - Note This must be unique across the entire Azure service, not just within the resource group. 
- pointIn StringTime Restore Time In Utc 
- The point in time to restore from source_server_idwhencreate_modeisGeoRestore,PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
- privateDns StringZone Id 
- The ID of the private DNS zone to create the PostgreSQL Flexible Server. - Note: There will be a breaking change from upstream service at 15th July 2021, the - private_dns_zone_idwill be required when setting a- delegated_subnet_id. For existing flexible servers who don't want to be recreated, you need to provide the- private_dns_zone_idto the service team to manually migrate to the specified private DNS zone. The- azure.privatedns.Zoneshould end with suffix- .postgres.database.azure.com.
- publicNetwork BooleanAccess Enabled 
- Specifies whether this PostgreSQL Flexible Server is publicly accessible. Defaults to - true.- Note: - public_network_access_enabledmust be set to- falsewhen- delegated_subnet_idand- private_dns_zone_idhave a value.
- replicationRole String
- The replication role for the PostgreSQL Flexible Server. Possible value is - None.- Note: The - replication_rolecannot be set while creating and only can be updated to- Nonefor replica server.
- resourceGroup StringName 
- The name of the Resource Group where the PostgreSQL Flexible Server should exist. Changing this forces a new PostgreSQL Flexible Server to be created.
- skuName String
- The SKU Name for the PostgreSQL Flexible Server. The name of the SKU, follows the tier+namepattern (e.g.B_Standard_B1ms,GP_Standard_D2s_v3,MO_Standard_E4s_v3).
- sourceServer StringId 
- The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_modeisGeoRestore,PointInTimeRestoreorReplica. Changing this forces a new PostgreSQL Flexible Server to be created.
- storageMb Number
- The max storage allowed for the PostgreSQL Flexible Server. Possible values are - 32768,- 65536,- 131072,- 262144,- 524288,- 1048576,- 2097152,- 4193280,- 4194304,- 8388608,- 16777216and- 33553408.- Note: If the - storage_mbfield is undefined on the initial deployment of the PostgreSQL Flexible Server resource it will default to- 32768. If the- storage_mbfield has been defined and then removed, the- storage_mbfield will retain the previously defined value.- Note: The - storage_mbcan only be scaled up, for example, you can scale the- storage_mbfrom- 32768to- 65536, but not from- 65536to- 32768.
- storageTier String
- The name of storage performance tier for IOPS of the PostgreSQL Flexible Server. Possible values are - P4,- P6,- P10,- P15,- P20,- P30,- P40,- P50,- P60,- P70or- P80. Default value is dependant on the- storage_mbvalue. Please see the- storage_tierdefaults based on- storage_mbtable below.- Note: The - storage_tiercan be scaled once every 12 hours, this restriction is in place to ensure stability and performance after any changes to your PostgreSQL Flexible Server's configuration.
- Map<String>
- A mapping of tags which should be assigned to the PostgreSQL Flexible Server.
- version String
- The version of PostgreSQL Flexible Server to use. Possible values are - 11,- 12,- 13,- 14,- 15and- 16. Required when- create_modeis- Default.- Note: When - create_modeis- Update, upgrading version wouldn't force a new resource to be created.
- zone String
Supporting Types
FlexibleServerAuthentication, FlexibleServerAuthenticationArgs      
- ActiveDirectory boolAuth Enabled 
- Whether or not Active Directory authentication is allowed to access the PostgreSQL Flexible Server. Defaults to false.
- PasswordAuth boolEnabled 
- Whether or not password authentication is allowed to access the PostgreSQL Flexible Server. Defaults to true.
- TenantId string
- The Tenant ID of the Azure Active Directory which is used by the Active Directory authentication. - active_directory_auth_enabledmust be set to- true.- Note: Setting - active_directory_auth_enabledto- truerequires a Service Principal for the Postgres Flexible Server. For more details see this document.- Note: - tenant_idis required when- active_directory_auth_enabledis set to- true. And it should not be specified when- active_directory_auth_enabledis set to- false
- ActiveDirectory boolAuth Enabled 
- Whether or not Active Directory authentication is allowed to access the PostgreSQL Flexible Server. Defaults to false.
- PasswordAuth boolEnabled 
- Whether or not password authentication is allowed to access the PostgreSQL Flexible Server. Defaults to true.
- TenantId string
- The Tenant ID of the Azure Active Directory which is used by the Active Directory authentication. - active_directory_auth_enabledmust be set to- true.- Note: Setting - active_directory_auth_enabledto- truerequires a Service Principal for the Postgres Flexible Server. For more details see this document.- Note: - tenant_idis required when- active_directory_auth_enabledis set to- true. And it should not be specified when- active_directory_auth_enabledis set to- false
- activeDirectory BooleanAuth Enabled 
- Whether or not Active Directory authentication is allowed to access the PostgreSQL Flexible Server. Defaults to false.
- passwordAuth BooleanEnabled 
- Whether or not password authentication is allowed to access the PostgreSQL Flexible Server. Defaults to true.
- tenantId String
- The Tenant ID of the Azure Active Directory which is used by the Active Directory authentication. - active_directory_auth_enabledmust be set to- true.- Note: Setting - active_directory_auth_enabledto- truerequires a Service Principal for the Postgres Flexible Server. For more details see this document.- Note: - tenant_idis required when- active_directory_auth_enabledis set to- true. And it should not be specified when- active_directory_auth_enabledis set to- false
- activeDirectory booleanAuth Enabled 
- Whether or not Active Directory authentication is allowed to access the PostgreSQL Flexible Server. Defaults to false.
- passwordAuth booleanEnabled 
- Whether or not password authentication is allowed to access the PostgreSQL Flexible Server. Defaults to true.
- tenantId string
- The Tenant ID of the Azure Active Directory which is used by the Active Directory authentication. - active_directory_auth_enabledmust be set to- true.- Note: Setting - active_directory_auth_enabledto- truerequires a Service Principal for the Postgres Flexible Server. For more details see this document.- Note: - tenant_idis required when- active_directory_auth_enabledis set to- true. And it should not be specified when- active_directory_auth_enabledis set to- false
- active_directory_ boolauth_ enabled 
- Whether or not Active Directory authentication is allowed to access the PostgreSQL Flexible Server. Defaults to false.
- password_auth_ boolenabled 
- Whether or not password authentication is allowed to access the PostgreSQL Flexible Server. Defaults to true.
- tenant_id str
- The Tenant ID of the Azure Active Directory which is used by the Active Directory authentication. - active_directory_auth_enabledmust be set to- true.- Note: Setting - active_directory_auth_enabledto- truerequires a Service Principal for the Postgres Flexible Server. For more details see this document.- Note: - tenant_idis required when- active_directory_auth_enabledis set to- true. And it should not be specified when- active_directory_auth_enabledis set to- false
- activeDirectory BooleanAuth Enabled 
- Whether or not Active Directory authentication is allowed to access the PostgreSQL Flexible Server. Defaults to false.
- passwordAuth BooleanEnabled 
- Whether or not password authentication is allowed to access the PostgreSQL Flexible Server. Defaults to true.
- tenantId String
- The Tenant ID of the Azure Active Directory which is used by the Active Directory authentication. - active_directory_auth_enabledmust be set to- true.- Note: Setting - active_directory_auth_enabledto- truerequires a Service Principal for the Postgres Flexible Server. For more details see this document.- Note: - tenant_idis required when- active_directory_auth_enabledis set to- true. And it should not be specified when- active_directory_auth_enabledis set to- false
FlexibleServerCustomerManagedKey, FlexibleServerCustomerManagedKeyArgs          
- KeyVault stringKey Id 
- The ID of the Key Vault Key.
- GeoBackup stringKey Vault Key Id 
- The ID of the geo backup Key Vault Key. It can't cross region and need Customer Managed Key in same region as geo backup.
- GeoBackup stringUser Assigned Identity Id 
- The geo backup user managed identity id for a Customer Managed Key. Should be added with - identity_ids. It can't cross region and need identity in same region as geo backup.- Note: - primary_user_assigned_identity_idor- geo_backup_user_assigned_identity_idis required when- typeis set to- UserAssigned.
- PrimaryUser stringAssigned Identity Id 
- Specifies the primary user managed identity id for a Customer Managed Key. Should be added with identity_ids.
- KeyVault stringKey Id 
- The ID of the Key Vault Key.
- GeoBackup stringKey Vault Key Id 
- The ID of the geo backup Key Vault Key. It can't cross region and need Customer Managed Key in same region as geo backup.
- GeoBackup stringUser Assigned Identity Id 
- The geo backup user managed identity id for a Customer Managed Key. Should be added with - identity_ids. It can't cross region and need identity in same region as geo backup.- Note: - primary_user_assigned_identity_idor- geo_backup_user_assigned_identity_idis required when- typeis set to- UserAssigned.
- PrimaryUser stringAssigned Identity Id 
- Specifies the primary user managed identity id for a Customer Managed Key. Should be added with identity_ids.
- keyVault StringKey Id 
- The ID of the Key Vault Key.
- geoBackup StringKey Vault Key Id 
- The ID of the geo backup Key Vault Key. It can't cross region and need Customer Managed Key in same region as geo backup.
- geoBackup StringUser Assigned Identity Id 
- The geo backup user managed identity id for a Customer Managed Key. Should be added with - identity_ids. It can't cross region and need identity in same region as geo backup.- Note: - primary_user_assigned_identity_idor- geo_backup_user_assigned_identity_idis required when- typeis set to- UserAssigned.
- primaryUser StringAssigned Identity Id 
- Specifies the primary user managed identity id for a Customer Managed Key. Should be added with identity_ids.
- keyVault stringKey Id 
- The ID of the Key Vault Key.
- geoBackup stringKey Vault Key Id 
- The ID of the geo backup Key Vault Key. It can't cross region and need Customer Managed Key in same region as geo backup.
- geoBackup stringUser Assigned Identity Id 
- The geo backup user managed identity id for a Customer Managed Key. Should be added with - identity_ids. It can't cross region and need identity in same region as geo backup.- Note: - primary_user_assigned_identity_idor- geo_backup_user_assigned_identity_idis required when- typeis set to- UserAssigned.
- primaryUser stringAssigned Identity Id 
- Specifies the primary user managed identity id for a Customer Managed Key. Should be added with identity_ids.
- key_vault_ strkey_ id 
- The ID of the Key Vault Key.
- geo_backup_ strkey_ vault_ key_ id 
- The ID of the geo backup Key Vault Key. It can't cross region and need Customer Managed Key in same region as geo backup.
- geo_backup_ struser_ assigned_ identity_ id 
- The geo backup user managed identity id for a Customer Managed Key. Should be added with - identity_ids. It can't cross region and need identity in same region as geo backup.- Note: - primary_user_assigned_identity_idor- geo_backup_user_assigned_identity_idis required when- typeis set to- UserAssigned.
- primary_user_ strassigned_ identity_ id 
- Specifies the primary user managed identity id for a Customer Managed Key. Should be added with identity_ids.
- keyVault StringKey Id 
- The ID of the Key Vault Key.
- geoBackup StringKey Vault Key Id 
- The ID of the geo backup Key Vault Key. It can't cross region and need Customer Managed Key in same region as geo backup.
- geoBackup StringUser Assigned Identity Id 
- The geo backup user managed identity id for a Customer Managed Key. Should be added with - identity_ids. It can't cross region and need identity in same region as geo backup.- Note: - primary_user_assigned_identity_idor- geo_backup_user_assigned_identity_idis required when- typeis set to- UserAssigned.
- primaryUser StringAssigned Identity Id 
- Specifies the primary user managed identity id for a Customer Managed Key. Should be added with identity_ids.
FlexibleServerHighAvailability, FlexibleServerHighAvailabilityArgs        
- Mode string
- The high availability mode for the PostgreSQL Flexible Server. Possible value are SameZoneorZoneRedundant.
- StandbyAvailability stringZone 
- Mode string
- The high availability mode for the PostgreSQL Flexible Server. Possible value are SameZoneorZoneRedundant.
- StandbyAvailability stringZone 
- mode String
- The high availability mode for the PostgreSQL Flexible Server. Possible value are SameZoneorZoneRedundant.
- standbyAvailability StringZone 
- mode string
- The high availability mode for the PostgreSQL Flexible Server. Possible value are SameZoneorZoneRedundant.
- standbyAvailability stringZone 
- mode str
- The high availability mode for the PostgreSQL Flexible Server. Possible value are SameZoneorZoneRedundant.
- standby_availability_ strzone 
- mode String
- The high availability mode for the PostgreSQL Flexible Server. Possible value are SameZoneorZoneRedundant.
- standbyAvailability StringZone 
FlexibleServerIdentity, FlexibleServerIdentityArgs      
- IdentityIds List<string>
- A list of User Assigned Managed Identity IDs to be assigned to this PostgreSQL Flexible Server. Required if used together with customer_managed_keyblock.
- Type string
- Specifies the type of Managed Service Identity that should be configured on this PostgreSQL Flexible Server. The only possible value is UserAssigned.
- IdentityIds []string
- A list of User Assigned Managed Identity IDs to be assigned to this PostgreSQL Flexible Server. Required if used together with customer_managed_keyblock.
- Type string
- Specifies the type of Managed Service Identity that should be configured on this PostgreSQL Flexible Server. The only possible value is UserAssigned.
- identityIds List<String>
- A list of User Assigned Managed Identity IDs to be assigned to this PostgreSQL Flexible Server. Required if used together with customer_managed_keyblock.
- type String
- Specifies the type of Managed Service Identity that should be configured on this PostgreSQL Flexible Server. The only possible value is UserAssigned.
- identityIds string[]
- A list of User Assigned Managed Identity IDs to be assigned to this PostgreSQL Flexible Server. Required if used together with customer_managed_keyblock.
- type string
- Specifies the type of Managed Service Identity that should be configured on this PostgreSQL Flexible Server. The only possible value is UserAssigned.
- identity_ids Sequence[str]
- A list of User Assigned Managed Identity IDs to be assigned to this PostgreSQL Flexible Server. Required if used together with customer_managed_keyblock.
- type str
- Specifies the type of Managed Service Identity that should be configured on this PostgreSQL Flexible Server. The only possible value is UserAssigned.
- identityIds List<String>
- A list of User Assigned Managed Identity IDs to be assigned to this PostgreSQL Flexible Server. Required if used together with customer_managed_keyblock.
- type String
- Specifies the type of Managed Service Identity that should be configured on this PostgreSQL Flexible Server. The only possible value is UserAssigned.
FlexibleServerMaintenanceWindow, FlexibleServerMaintenanceWindowArgs        
- DayOf intWeek 
- The day of week for maintenance window, where the week starts on a Sunday, i.e. Sunday = 0, Monday =1. Defaults to0.
- StartHour int
- The start hour for maintenance window. Defaults to 0.
- StartMinute int
- The start minute for maintenance window. Defaults to - 0.- NOTE The specified - maintenance_windowis always defined in UTC time. When unspecified, the maintenance window falls back to the default system-managed.
- DayOf intWeek 
- The day of week for maintenance window, where the week starts on a Sunday, i.e. Sunday = 0, Monday =1. Defaults to0.
- StartHour int
- The start hour for maintenance window. Defaults to 0.
- StartMinute int
- The start minute for maintenance window. Defaults to - 0.- NOTE The specified - maintenance_windowis always defined in UTC time. When unspecified, the maintenance window falls back to the default system-managed.
- dayOf IntegerWeek 
- The day of week for maintenance window, where the week starts on a Sunday, i.e. Sunday = 0, Monday =1. Defaults to0.
- startHour Integer
- The start hour for maintenance window. Defaults to 0.
- startMinute Integer
- The start minute for maintenance window. Defaults to - 0.- NOTE The specified - maintenance_windowis always defined in UTC time. When unspecified, the maintenance window falls back to the default system-managed.
- dayOf numberWeek 
- The day of week for maintenance window, where the week starts on a Sunday, i.e. Sunday = 0, Monday =1. Defaults to0.
- startHour number
- The start hour for maintenance window. Defaults to 0.
- startMinute number
- The start minute for maintenance window. Defaults to - 0.- NOTE The specified - maintenance_windowis always defined in UTC time. When unspecified, the maintenance window falls back to the default system-managed.
- day_of_ intweek 
- The day of week for maintenance window, where the week starts on a Sunday, i.e. Sunday = 0, Monday =1. Defaults to0.
- start_hour int
- The start hour for maintenance window. Defaults to 0.
- start_minute int
- The start minute for maintenance window. Defaults to - 0.- NOTE The specified - maintenance_windowis always defined in UTC time. When unspecified, the maintenance window falls back to the default system-managed.
- dayOf NumberWeek 
- The day of week for maintenance window, where the week starts on a Sunday, i.e. Sunday = 0, Monday =1. Defaults to0.
- startHour Number
- The start hour for maintenance window. Defaults to 0.
- startMinute Number
- The start minute for maintenance window. Defaults to - 0.- NOTE The specified - maintenance_windowis always defined in UTC time. When unspecified, the maintenance window falls back to the default system-managed.
Import
PostgreSQL Flexible Servers can be imported using the resource id, e.g.
$ pulumi import azure:postgresql/flexibleServer:FlexibleServer example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.DBforPostgreSQL/flexibleServers/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.