1. Packages
  2. Azure Classic
  3. API Docs
  4. postgresql
  5. FlexibleServer

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Manages a PostgreSQL Flexible Server.

    Example Usage

    using Pulumi;
    using Azure = Pulumi.Azure;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
            {
                Location = "West Europe",
            });
            var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("exampleVirtualNetwork", new Azure.Network.VirtualNetworkArgs
            {
                Location = exampleResourceGroup.Location,
                ResourceGroupName = exampleResourceGroup.Name,
                AddressSpaces = 
                {
                    "10.0.0.0/16",
                },
            });
            var exampleSubnet = new Azure.Network.Subnet("exampleSubnet", new Azure.Network.SubnetArgs
            {
                ResourceGroupName = exampleResourceGroup.Name,
                VirtualNetworkName = exampleVirtualNetwork.Name,
                AddressPrefixes = 
                {
                    "10.0.2.0/24",
                },
                ServiceEndpoints = 
                {
                    "Microsoft.Storage",
                },
                Delegations = 
                {
                    new Azure.Network.Inputs.SubnetDelegationArgs
                    {
                        Name = "fs",
                        ServiceDelegation = new Azure.Network.Inputs.SubnetDelegationServiceDelegationArgs
                        {
                            Name = "Microsoft.DBforPostgreSQL/flexibleServers",
                            Actions = 
                            {
                                "Microsoft.Network/virtualNetworks/subnets/join/action",
                            },
                        },
                    },
                },
            });
            var exampleZone = new Azure.PrivateDns.Zone("exampleZone", new Azure.PrivateDns.ZoneArgs
            {
                ResourceGroupName = exampleResourceGroup.Name,
            });
            var exampleZoneVirtualNetworkLink = new Azure.PrivateDns.ZoneVirtualNetworkLink("exampleZoneVirtualNetworkLink", new Azure.PrivateDns.ZoneVirtualNetworkLinkArgs
            {
                PrivateDnsZoneName = exampleZone.Name,
                VirtualNetworkId = exampleVirtualNetwork.Id,
                ResourceGroupName = exampleResourceGroup.Name,
            });
            var exampleFlexibleServer = new Azure.PostgreSql.FlexibleServer("exampleFlexibleServer", new Azure.PostgreSql.FlexibleServerArgs
            {
                ResourceGroupName = exampleResourceGroup.Name,
                Location = exampleResourceGroup.Location,
                Version = "12",
                DelegatedSubnetId = exampleSubnet.Id,
                PrivateDnsZoneId = exampleZone.Id,
                AdministratorLogin = "psqladmin",
                AdministratorPassword = "H@Sh1CoR3!",
                Zone = "1",
                StorageMb = 32768,
                SkuName = "GP_Standard_D4s_v3",
            }, new CustomResourceOptions
            {
                DependsOn = 
                {
                    exampleZoneVirtualNetworkLink,
                },
            });
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/network"
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/postgresql"
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/privatedns"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "exampleVirtualNetwork", &network.VirtualNetworkArgs{
    			Location:          exampleResourceGroup.Location,
    			ResourceGroupName: exampleResourceGroup.Name,
    			AddressSpaces: pulumi.StringArray{
    				pulumi.String("10.0.0.0/16"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleSubnet, err := network.NewSubnet(ctx, "exampleSubnet", &network.SubnetArgs{
    			ResourceGroupName:  exampleResourceGroup.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, "exampleZone", &privatedns.ZoneArgs{
    			ResourceGroupName: exampleResourceGroup.Name,
    		})
    		if err != nil {
    			return err
    		}
    		exampleZoneVirtualNetworkLink, err := privatedns.NewZoneVirtualNetworkLink(ctx, "exampleZoneVirtualNetworkLink", &privatedns.ZoneVirtualNetworkLinkArgs{
    			PrivateDnsZoneName: exampleZone.Name,
    			VirtualNetworkId:   exampleVirtualNetwork.ID(),
    			ResourceGroupName:  exampleResourceGroup.Name,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = postgresql.NewFlexibleServer(ctx, "exampleFlexibleServer", &postgresql.FlexibleServerArgs{
    			ResourceGroupName:     exampleResourceGroup.Name,
    			Location:              exampleResourceGroup.Location,
    			Version:               pulumi.String("12"),
    			DelegatedSubnetId:     exampleSubnet.ID(),
    			PrivateDnsZoneId:      exampleZone.ID(),
    			AdministratorLogin:    pulumi.String("psqladmin"),
    			AdministratorPassword: pulumi.String("H@Sh1CoR3!"),
    			Zone:                  pulumi.String("1"),
    			StorageMb:             pulumi.Int(32768),
    			SkuName:               pulumi.String("GP_Standard_D4s_v3"),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			exampleZoneVirtualNetworkLink,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
    const exampleVirtualNetwork = new azure.network.VirtualNetwork("exampleVirtualNetwork", {
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
        addressSpaces: ["10.0.0.0/16"],
    });
    const exampleSubnet = new azure.network.Subnet("exampleSubnet", {
        resourceGroupName: exampleResourceGroup.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("exampleZone", {resourceGroupName: exampleResourceGroup.name});
    const exampleZoneVirtualNetworkLink = new azure.privatedns.ZoneVirtualNetworkLink("exampleZoneVirtualNetworkLink", {
        privateDnsZoneName: exampleZone.name,
        virtualNetworkId: exampleVirtualNetwork.id,
        resourceGroupName: exampleResourceGroup.name,
    });
    const exampleFlexibleServer = new azure.postgresql.FlexibleServer("exampleFlexibleServer", {
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
        version: "12",
        delegatedSubnetId: exampleSubnet.id,
        privateDnsZoneId: exampleZone.id,
        administratorLogin: "psqladmin",
        administratorPassword: "H@Sh1CoR3!",
        zone: "1",
        storageMb: 32768,
        skuName: "GP_Standard_D4s_v3",
    }, {
        dependsOn: [exampleZoneVirtualNetworkLink],
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
    example_virtual_network = azure.network.VirtualNetwork("exampleVirtualNetwork",
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name,
        address_spaces=["10.0.0.0/16"])
    example_subnet = azure.network.Subnet("exampleSubnet",
        resource_group_name=example_resource_group.name,
        virtual_network_name=example_virtual_network.name,
        address_prefixes=["10.0.2.0/24"],
        service_endpoints=["Microsoft.Storage"],
        delegations=[azure.network.SubnetDelegationArgs(
            name="fs",
            service_delegation=azure.network.SubnetDelegationServiceDelegationArgs(
                name="Microsoft.DBforPostgreSQL/flexibleServers",
                actions=["Microsoft.Network/virtualNetworks/subnets/join/action"],
            ),
        )])
    example_zone = azure.privatedns.Zone("exampleZone", resource_group_name=example_resource_group.name)
    example_zone_virtual_network_link = azure.privatedns.ZoneVirtualNetworkLink("exampleZoneVirtualNetworkLink",
        private_dns_zone_name=example_zone.name,
        virtual_network_id=example_virtual_network.id,
        resource_group_name=example_resource_group.name)
    example_flexible_server = azure.postgresql.FlexibleServer("exampleFlexibleServer",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location,
        version="12",
        delegated_subnet_id=example_subnet.id,
        private_dns_zone_id=example_zone.id,
        administrator_login="psqladmin",
        administrator_password="H@Sh1CoR3!",
        zone="1",
        storage_mb=32768,
        sku_name="GP_Standard_D4s_v3",
        opts=pulumi.ResourceOptions(depends_on=[example_zone_virtual_network_link]))
    

    Example coming soon!

    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,
                       delegated_subnet_id: Optional[str] = None,
                       private_dns_zone_id: Optional[str] = None,
                       create_mode: Optional[str] = None,
                       administrator_login: Optional[str] = None,
                       geo_redundant_backup_enabled: Optional[bool] = None,
                       high_availability: Optional[FlexibleServerHighAvailabilityArgs] = None,
                       location: Optional[str] = None,
                       maintenance_window: Optional[FlexibleServerMaintenanceWindowArgs] = None,
                       backup_retention_days: Optional[int] = None,
                       name: Optional[str] = None,
                       point_in_time_restore_time_in_utc: Optional[str] = None,
                       administrator_password: Optional[str] = None,
                       sku_name: Optional[str] = None,
                       source_server_id: Optional[str] = None,
                       storage_mb: Optional[int] = None,
                       tags: Optional[Mapping[str, str]] = None,
                       version: Optional[str] = None,
                       zone: Optional[str] = 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",
        DelegatedSubnetId = "string",
        PrivateDnsZoneId = "string",
        CreateMode = "string",
        AdministratorLogin = "string",
        GeoRedundantBackupEnabled = false,
        HighAvailability = new Azure.PostgreSql.Inputs.FlexibleServerHighAvailabilityArgs
        {
            Mode = "string",
            StandbyAvailabilityZone = "string",
        },
        Location = "string",
        MaintenanceWindow = new Azure.PostgreSql.Inputs.FlexibleServerMaintenanceWindowArgs
        {
            DayOfWeek = 0,
            StartHour = 0,
            StartMinute = 0,
        },
        BackupRetentionDays = 0,
        Name = "string",
        PointInTimeRestoreTimeInUtc = "string",
        AdministratorPassword = "string",
        SkuName = "string",
        SourceServerId = "string",
        StorageMb = 0,
        Tags = 
        {
            { "string", "string" },
        },
        Version = "string",
        Zone = "string",
    });
    
    example, err := postgresql.NewFlexibleServer(ctx, "azureFlexibleServerResource", &postgresql.FlexibleServerArgs{
    	ResourceGroupName:         pulumi.String("string"),
    	DelegatedSubnetId:         pulumi.String("string"),
    	PrivateDnsZoneId:          pulumi.String("string"),
    	CreateMode:                pulumi.String("string"),
    	AdministratorLogin:        pulumi.String("string"),
    	GeoRedundantBackupEnabled: pulumi.Bool(false),
    	HighAvailability: &postgresql.FlexibleServerHighAvailabilityArgs{
    		Mode:                    pulumi.String("string"),
    		StandbyAvailabilityZone: pulumi.String("string"),
    	},
    	Location: pulumi.String("string"),
    	MaintenanceWindow: &postgresql.FlexibleServerMaintenanceWindowArgs{
    		DayOfWeek:   pulumi.Int(0),
    		StartHour:   pulumi.Int(0),
    		StartMinute: pulumi.Int(0),
    	},
    	BackupRetentionDays:         pulumi.Int(0),
    	Name:                        pulumi.String("string"),
    	PointInTimeRestoreTimeInUtc: pulumi.String("string"),
    	AdministratorPassword:       pulumi.String("string"),
    	SkuName:                     pulumi.String("string"),
    	SourceServerId:              pulumi.String("string"),
    	StorageMb:                   pulumi.Int(0),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Version: pulumi.String("string"),
    	Zone:    pulumi.String("string"),
    })
    
    var azureFlexibleServerResource = new com.pulumi.azure.postgresql.FlexibleServer("azureFlexibleServerResource", com.pulumi.azure.postgresql.FlexibleServerArgs.builder()
        .resourceGroupName("string")
        .delegatedSubnetId("string")
        .privateDnsZoneId("string")
        .createMode("string")
        .administratorLogin("string")
        .geoRedundantBackupEnabled(false)
        .highAvailability(FlexibleServerHighAvailabilityArgs.builder()
            .mode("string")
            .standbyAvailabilityZone("string")
            .build())
        .location("string")
        .maintenanceWindow(FlexibleServerMaintenanceWindowArgs.builder()
            .dayOfWeek(0)
            .startHour(0)
            .startMinute(0)
            .build())
        .backupRetentionDays(0)
        .name("string")
        .pointInTimeRestoreTimeInUtc("string")
        .administratorPassword("string")
        .skuName("string")
        .sourceServerId("string")
        .storageMb(0)
        .tags(Map.of("string", "string"))
        .version("string")
        .zone("string")
        .build());
    
    azure_flexible_server_resource = azure.postgresql.FlexibleServer("azureFlexibleServerResource",
        resource_group_name="string",
        delegated_subnet_id="string",
        private_dns_zone_id="string",
        create_mode="string",
        administrator_login="string",
        geo_redundant_backup_enabled=False,
        high_availability={
            "mode": "string",
            "standby_availability_zone": "string",
        },
        location="string",
        maintenance_window={
            "day_of_week": 0,
            "start_hour": 0,
            "start_minute": 0,
        },
        backup_retention_days=0,
        name="string",
        point_in_time_restore_time_in_utc="string",
        administrator_password="string",
        sku_name="string",
        source_server_id="string",
        storage_mb=0,
        tags={
            "string": "string",
        },
        version="string",
        zone="string")
    
    const azureFlexibleServerResource = new azure.postgresql.FlexibleServer("azureFlexibleServerResource", {
        resourceGroupName: "string",
        delegatedSubnetId: "string",
        privateDnsZoneId: "string",
        createMode: "string",
        administratorLogin: "string",
        geoRedundantBackupEnabled: false,
        highAvailability: {
            mode: "string",
            standbyAvailabilityZone: "string",
        },
        location: "string",
        maintenanceWindow: {
            dayOfWeek: 0,
            startHour: 0,
            startMinute: 0,
        },
        backupRetentionDays: 0,
        name: "string",
        pointInTimeRestoreTimeInUtc: "string",
        administratorPassword: "string",
        skuName: "string",
        sourceServerId: "string",
        storageMb: 0,
        tags: {
            string: "string",
        },
        version: "string",
        zone: "string",
    });
    
    type: azure:postgresql:FlexibleServer
    properties:
        administratorLogin: string
        administratorPassword: string
        backupRetentionDays: 0
        createMode: string
        delegatedSubnetId: string
        geoRedundantBackupEnabled: false
        highAvailability:
            mode: string
            standbyAvailabilityZone: string
        location: string
        maintenanceWindow:
            dayOfWeek: 0
            startHour: 0
            startMinute: 0
        name: string
        pointInTimeRestoreTimeInUtc: string
        privateDnsZoneId: string
        resourceGroupName: string
        skuName: string
        sourceServerId: string
        storageMb: 0
        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:

    ResourceGroupName string
    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_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    AdministratorPassword string
    The Password associated with the administrator_login for the PostgreSQL Flexible Server. Required when create_mode is Default.
    BackupRetentionDays int
    The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7 and 35 days.
    CreateMode string
    The creation mode which can be used to restore or replicate existing servers. Possible values are Default and PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    DelegatedSubnetId string
    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.
    GeoRedundantBackupEnabled bool
    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 FlexibleServerHighAvailability
    A high_availability block 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 FlexibleServerMaintenanceWindow
    A maintenance_window block 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.
    PointInTimeRestoreTimeInUtc string
    The point in time to restore from creation_source_server_id when create_mode is PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    PrivateDnsZoneId string
    The ID of the private dns zone to create the PostgreSQL Flexible Server. 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 + name pattern (e.g. B_Standard_B1ms, GP_Standard_D2s_v3, MO_Standard_E4s_v3).
    SourceServerId string
    The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_mode is PointInTimeRestore. 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, 4194304, 8388608, 16777216, and 33554432.
    Tags 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 and 13. Required when create_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    Zone string
    The Availability Zone of the PostgreSQL Flexible Server. Possible values are 1, 2 and 3.
    ResourceGroupName string
    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_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    AdministratorPassword string
    The Password associated with the administrator_login for the PostgreSQL Flexible Server. Required when create_mode is Default.
    BackupRetentionDays int
    The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7 and 35 days.
    CreateMode string
    The creation mode which can be used to restore or replicate existing servers. Possible values are Default and PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    DelegatedSubnetId string
    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.
    GeoRedundantBackupEnabled bool
    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 FlexibleServerHighAvailabilityArgs
    A high_availability block 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 FlexibleServerMaintenanceWindowArgs
    A maintenance_window block 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.
    PointInTimeRestoreTimeInUtc string
    The point in time to restore from creation_source_server_id when create_mode is PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    PrivateDnsZoneId string
    The ID of the private dns zone to create the PostgreSQL Flexible Server. 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 + name pattern (e.g. B_Standard_B1ms, GP_Standard_D2s_v3, MO_Standard_E4s_v3).
    SourceServerId string
    The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_mode is PointInTimeRestore. 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, 4194304, 8388608, 16777216, and 33554432.
    Tags 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 and 13. Required when create_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    Zone string
    The Availability Zone of the PostgreSQL Flexible Server. Possible values are 1, 2 and 3.
    resourceGroupName String
    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_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    administratorPassword String
    The Password associated with the administrator_login for the PostgreSQL Flexible Server. Required when create_mode is Default.
    backupRetentionDays Integer
    The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7 and 35 days.
    createMode String
    The creation mode which can be used to restore or replicate existing servers. Possible values are Default and PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    delegatedSubnetId String
    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.
    geoRedundantBackupEnabled Boolean
    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 FlexibleServerHighAvailability
    A high_availability block 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 FlexibleServerMaintenanceWindow
    A maintenance_window block 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.
    pointInTimeRestoreTimeInUtc String
    The point in time to restore from creation_source_server_id when create_mode is PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    privateDnsZoneId String
    The ID of the private dns zone to create the PostgreSQL Flexible Server. 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 + name pattern (e.g. B_Standard_B1ms, GP_Standard_D2s_v3, MO_Standard_E4s_v3).
    sourceServerId String
    The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_mode is PointInTimeRestore. 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, 4194304, 8388608, 16777216, and 33554432.
    tags 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 and 13. Required when create_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    zone String
    The Availability Zone of the PostgreSQL Flexible Server. Possible values are 1, 2 and 3.
    resourceGroupName string
    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_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    administratorPassword string
    The Password associated with the administrator_login for the PostgreSQL Flexible Server. Required when create_mode is Default.
    backupRetentionDays number
    The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7 and 35 days.
    createMode string
    The creation mode which can be used to restore or replicate existing servers. Possible values are Default and PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    delegatedSubnetId string
    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.
    geoRedundantBackupEnabled boolean
    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 FlexibleServerHighAvailability
    A high_availability block 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 FlexibleServerMaintenanceWindow
    A maintenance_window block 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.
    pointInTimeRestoreTimeInUtc string
    The point in time to restore from creation_source_server_id when create_mode is PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    privateDnsZoneId string
    The ID of the private dns zone to create the PostgreSQL Flexible Server. 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 + name pattern (e.g. B_Standard_B1ms, GP_Standard_D2s_v3, MO_Standard_E4s_v3).
    sourceServerId string
    The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_mode is PointInTimeRestore. 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, 4194304, 8388608, 16777216, and 33554432.
    tags {[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 and 13. Required when create_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    zone string
    The Availability Zone of the PostgreSQL Flexible Server. Possible values are 1, 2 and 3.
    resource_group_name str
    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_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    administrator_password str
    The Password associated with the administrator_login for the PostgreSQL Flexible Server. Required when create_mode is Default.
    backup_retention_days int
    The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7 and 35 days.
    create_mode str
    The creation mode which can be used to restore or replicate existing servers. Possible values are Default and PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    delegated_subnet_id str
    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_backup_enabled bool
    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 FlexibleServerHighAvailabilityArgs
    A high_availability block 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 FlexibleServerMaintenanceWindowArgs
    A maintenance_window block 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.
    point_in_time_restore_time_in_utc str
    The point in time to restore from creation_source_server_id when create_mode is PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    private_dns_zone_id str
    The ID of the private dns zone to create the PostgreSQL Flexible Server. 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 + name pattern (e.g. B_Standard_B1ms, GP_Standard_D2s_v3, MO_Standard_E4s_v3).
    source_server_id str
    The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_mode is PointInTimeRestore. 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, 4194304, 8388608, 16777216, and 33554432.
    tags 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 and 13. Required when create_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    zone str
    The Availability Zone of the PostgreSQL Flexible Server. Possible values are 1, 2 and 3.
    resourceGroupName String
    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_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    administratorPassword String
    The Password associated with the administrator_login for the PostgreSQL Flexible Server. Required when create_mode is Default.
    backupRetentionDays Number
    The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7 and 35 days.
    createMode String
    The creation mode which can be used to restore or replicate existing servers. Possible values are Default and PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    delegatedSubnetId String
    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.
    geoRedundantBackupEnabled Boolean
    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_availability block 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_window block 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.
    pointInTimeRestoreTimeInUtc String
    The point in time to restore from creation_source_server_id when create_mode is PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    privateDnsZoneId String
    The ID of the private dns zone to create the PostgreSQL Flexible Server. 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 + name pattern (e.g. B_Standard_B1ms, GP_Standard_D2s_v3, MO_Standard_E4s_v3).
    sourceServerId String
    The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_mode is PointInTimeRestore. 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, 4194304, 8388608, 16777216, and 33554432.
    tags 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 and 13. Required when create_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    zone String
    The Availability Zone of the PostgreSQL Flexible Server. Possible values are 1, 2 and 3.

    Outputs

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

    CmkEnabled string
    The status showing whether the data encryption is enabled with a customer-managed key.

    Deprecated: This attribute has been removed from the API and will be removed in version 3.0 of the provider.

    Fqdn string
    The FQDN of the PostgreSQL Flexible Server.
    Id string
    The provider-assigned unique ID for this managed resource.
    PublicNetworkAccessEnabled bool
    Is public network access enabled?
    CmkEnabled string
    The status showing whether the data encryption is enabled with a customer-managed key.

    Deprecated: This attribute has been removed from the API and will be removed in version 3.0 of the provider.

    Fqdn string
    The FQDN of the PostgreSQL Flexible Server.
    Id string
    The provider-assigned unique ID for this managed resource.
    PublicNetworkAccessEnabled bool
    Is public network access enabled?
    cmkEnabled String
    The status showing whether the data encryption is enabled with a customer-managed key.

    Deprecated: This attribute has been removed from the API and will be removed in version 3.0 of the provider.

    fqdn String
    The FQDN of the PostgreSQL Flexible Server.
    id String
    The provider-assigned unique ID for this managed resource.
    publicNetworkAccessEnabled Boolean
    Is public network access enabled?
    cmkEnabled string
    The status showing whether the data encryption is enabled with a customer-managed key.

    Deprecated: This attribute has been removed from the API and will be removed in version 3.0 of the provider.

    fqdn string
    The FQDN of the PostgreSQL Flexible Server.
    id string
    The provider-assigned unique ID for this managed resource.
    publicNetworkAccessEnabled boolean
    Is public network access enabled?
    cmk_enabled str
    The status showing whether the data encryption is enabled with a customer-managed key.

    Deprecated: This attribute has been removed from the API and will be removed in version 3.0 of the provider.

    fqdn str
    The FQDN of the PostgreSQL Flexible Server.
    id str
    The provider-assigned unique ID for this managed resource.
    public_network_access_enabled bool
    Is public network access enabled?
    cmkEnabled String
    The status showing whether the data encryption is enabled with a customer-managed key.

    Deprecated: This attribute has been removed from the API and will be removed in version 3.0 of the provider.

    fqdn String
    The FQDN of the PostgreSQL Flexible Server.
    id String
    The provider-assigned unique ID for this managed resource.
    publicNetworkAccessEnabled Boolean
    Is public network access enabled?

    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,
            backup_retention_days: Optional[int] = None,
            cmk_enabled: Optional[str] = None,
            create_mode: Optional[str] = None,
            delegated_subnet_id: Optional[str] = None,
            fqdn: Optional[str] = None,
            geo_redundant_backup_enabled: Optional[bool] = None,
            high_availability: Optional[FlexibleServerHighAvailabilityArgs] = 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,
            resource_group_name: Optional[str] = None,
            sku_name: Optional[str] = None,
            source_server_id: Optional[str] = None,
            storage_mb: Optional[int] = None,
            tags: Optional[Mapping[str, str]] = None,
            version: Optional[str] = None,
            zone: Optional[str] = None) -> FlexibleServer
    func 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.
    The following state arguments are supported:
    AdministratorLogin string
    The Administrator Login for the PostgreSQL Flexible Server. Required when create_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    AdministratorPassword string
    The Password associated with the administrator_login for the PostgreSQL Flexible Server. Required when create_mode is Default.
    BackupRetentionDays int
    The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7 and 35 days.
    CmkEnabled string
    The status showing whether the data encryption is enabled with a customer-managed key.

    Deprecated: This attribute has been removed from the API and will be removed in version 3.0 of the provider.

    CreateMode string
    The creation mode which can be used to restore or replicate existing servers. Possible values are Default and PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    DelegatedSubnetId string
    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.
    GeoRedundantBackupEnabled bool
    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 FlexibleServerHighAvailability
    A high_availability block 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 FlexibleServerMaintenanceWindow
    A maintenance_window block 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.
    PointInTimeRestoreTimeInUtc string
    The point in time to restore from creation_source_server_id when create_mode is PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    PrivateDnsZoneId string
    The ID of the private dns zone to create the PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created.
    PublicNetworkAccessEnabled bool
    Is public network access enabled?
    ResourceGroupName string
    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 + name pattern (e.g. B_Standard_B1ms, GP_Standard_D2s_v3, MO_Standard_E4s_v3).
    SourceServerId string
    The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_mode is PointInTimeRestore. 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, 4194304, 8388608, 16777216, and 33554432.
    Tags 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 and 13. Required when create_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    Zone string
    The Availability Zone of the PostgreSQL Flexible Server. Possible values are 1, 2 and 3.
    AdministratorLogin string
    The Administrator Login for the PostgreSQL Flexible Server. Required when create_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    AdministratorPassword string
    The Password associated with the administrator_login for the PostgreSQL Flexible Server. Required when create_mode is Default.
    BackupRetentionDays int
    The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7 and 35 days.
    CmkEnabled string
    The status showing whether the data encryption is enabled with a customer-managed key.

    Deprecated: This attribute has been removed from the API and will be removed in version 3.0 of the provider.

    CreateMode string
    The creation mode which can be used to restore or replicate existing servers. Possible values are Default and PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    DelegatedSubnetId string
    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.
    GeoRedundantBackupEnabled bool
    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 FlexibleServerHighAvailabilityArgs
    A high_availability block 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 FlexibleServerMaintenanceWindowArgs
    A maintenance_window block 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.
    PointInTimeRestoreTimeInUtc string
    The point in time to restore from creation_source_server_id when create_mode is PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    PrivateDnsZoneId string
    The ID of the private dns zone to create the PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created.
    PublicNetworkAccessEnabled bool
    Is public network access enabled?
    ResourceGroupName string
    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 + name pattern (e.g. B_Standard_B1ms, GP_Standard_D2s_v3, MO_Standard_E4s_v3).
    SourceServerId string
    The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_mode is PointInTimeRestore. 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, 4194304, 8388608, 16777216, and 33554432.
    Tags 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 and 13. Required when create_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    Zone string
    The Availability Zone of the PostgreSQL Flexible Server. Possible values are 1, 2 and 3.
    administratorLogin String
    The Administrator Login for the PostgreSQL Flexible Server. Required when create_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    administratorPassword String
    The Password associated with the administrator_login for the PostgreSQL Flexible Server. Required when create_mode is Default.
    backupRetentionDays Integer
    The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7 and 35 days.
    cmkEnabled String
    The status showing whether the data encryption is enabled with a customer-managed key.

    Deprecated: This attribute has been removed from the API and will be removed in version 3.0 of the provider.

    createMode String
    The creation mode which can be used to restore or replicate existing servers. Possible values are Default and PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    delegatedSubnetId String
    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.
    geoRedundantBackupEnabled Boolean
    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 FlexibleServerHighAvailability
    A high_availability block 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 FlexibleServerMaintenanceWindow
    A maintenance_window block 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.
    pointInTimeRestoreTimeInUtc String
    The point in time to restore from creation_source_server_id when create_mode is PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    privateDnsZoneId String
    The ID of the private dns zone to create the PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created.
    publicNetworkAccessEnabled Boolean
    Is public network access enabled?
    resourceGroupName String
    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 + name pattern (e.g. B_Standard_B1ms, GP_Standard_D2s_v3, MO_Standard_E4s_v3).
    sourceServerId String
    The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_mode is PointInTimeRestore. 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, 4194304, 8388608, 16777216, and 33554432.
    tags 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 and 13. Required when create_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    zone String
    The Availability Zone of the PostgreSQL Flexible Server. Possible values are 1, 2 and 3.
    administratorLogin string
    The Administrator Login for the PostgreSQL Flexible Server. Required when create_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    administratorPassword string
    The Password associated with the administrator_login for the PostgreSQL Flexible Server. Required when create_mode is Default.
    backupRetentionDays number
    The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7 and 35 days.
    cmkEnabled string
    The status showing whether the data encryption is enabled with a customer-managed key.

    Deprecated: This attribute has been removed from the API and will be removed in version 3.0 of the provider.

    createMode string
    The creation mode which can be used to restore or replicate existing servers. Possible values are Default and PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    delegatedSubnetId string
    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.
    geoRedundantBackupEnabled boolean
    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 FlexibleServerHighAvailability
    A high_availability block 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 FlexibleServerMaintenanceWindow
    A maintenance_window block 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.
    pointInTimeRestoreTimeInUtc string
    The point in time to restore from creation_source_server_id when create_mode is PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    privateDnsZoneId string
    The ID of the private dns zone to create the PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created.
    publicNetworkAccessEnabled boolean
    Is public network access enabled?
    resourceGroupName string
    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 + name pattern (e.g. B_Standard_B1ms, GP_Standard_D2s_v3, MO_Standard_E4s_v3).
    sourceServerId string
    The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_mode is PointInTimeRestore. 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, 4194304, 8388608, 16777216, and 33554432.
    tags {[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 and 13. Required when create_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    zone string
    The Availability Zone of the PostgreSQL Flexible Server. Possible values are 1, 2 and 3.
    administrator_login str
    The Administrator Login for the PostgreSQL Flexible Server. Required when create_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    administrator_password str
    The Password associated with the administrator_login for the PostgreSQL Flexible Server. Required when create_mode is Default.
    backup_retention_days int
    The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7 and 35 days.
    cmk_enabled str
    The status showing whether the data encryption is enabled with a customer-managed key.

    Deprecated: This attribute has been removed from the API and will be removed in version 3.0 of the provider.

    create_mode str
    The creation mode which can be used to restore or replicate existing servers. Possible values are Default and PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    delegated_subnet_id str
    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_backup_enabled bool
    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 FlexibleServerHighAvailabilityArgs
    A high_availability block 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 FlexibleServerMaintenanceWindowArgs
    A maintenance_window block 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.
    point_in_time_restore_time_in_utc str
    The point in time to restore from creation_source_server_id when create_mode is PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    private_dns_zone_id str
    The ID of the private dns zone to create the PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created.
    public_network_access_enabled bool
    Is public network access enabled?
    resource_group_name str
    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 + name pattern (e.g. B_Standard_B1ms, GP_Standard_D2s_v3, MO_Standard_E4s_v3).
    source_server_id str
    The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_mode is PointInTimeRestore. 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, 4194304, 8388608, 16777216, and 33554432.
    tags 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 and 13. Required when create_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    zone str
    The Availability Zone of the PostgreSQL Flexible Server. Possible values are 1, 2 and 3.
    administratorLogin String
    The Administrator Login for the PostgreSQL Flexible Server. Required when create_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    administratorPassword String
    The Password associated with the administrator_login for the PostgreSQL Flexible Server. Required when create_mode is Default.
    backupRetentionDays Number
    The backup retention days for the PostgreSQL Flexible Server. Possible values are between 7 and 35 days.
    cmkEnabled String
    The status showing whether the data encryption is enabled with a customer-managed key.

    Deprecated: This attribute has been removed from the API and will be removed in version 3.0 of the provider.

    createMode String
    The creation mode which can be used to restore or replicate existing servers. Possible values are Default and PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    delegatedSubnetId String
    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.
    geoRedundantBackupEnabled Boolean
    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_availability block 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_window block 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.
    pointInTimeRestoreTimeInUtc String
    The point in time to restore from creation_source_server_id when create_mode is PointInTimeRestore. Changing this forces a new PostgreSQL Flexible Server to be created.
    privateDnsZoneId String
    The ID of the private dns zone to create the PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created.
    publicNetworkAccessEnabled Boolean
    Is public network access enabled?
    resourceGroupName String
    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 + name pattern (e.g. B_Standard_B1ms, GP_Standard_D2s_v3, MO_Standard_E4s_v3).
    sourceServerId String
    The resource ID of the source PostgreSQL Flexible Server to be restored. Required when create_mode is PointInTimeRestore. 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, 4194304, 8388608, 16777216, and 33554432.
    tags 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 and 13. Required when create_mode is Default. Changing this forces a new PostgreSQL Flexible Server to be created.
    zone String
    The Availability Zone of the PostgreSQL Flexible Server. Possible values are 1, 2 and 3.

    Supporting Types

    FlexibleServerHighAvailability, FlexibleServerHighAvailabilityArgs

    Mode string
    The high availability mode for the PostgreSQL Flexible Server. The only possible value is ZoneRedundant.
    StandbyAvailabilityZone string
    The Availability Zone of the standby Flexible Server. Possible values are 1, 2 and 3.
    Mode string
    The high availability mode for the PostgreSQL Flexible Server. The only possible value is ZoneRedundant.
    StandbyAvailabilityZone string
    The Availability Zone of the standby Flexible Server. Possible values are 1, 2 and 3.
    mode String
    The high availability mode for the PostgreSQL Flexible Server. The only possible value is ZoneRedundant.
    standbyAvailabilityZone String
    The Availability Zone of the standby Flexible Server. Possible values are 1, 2 and 3.
    mode string
    The high availability mode for the PostgreSQL Flexible Server. The only possible value is ZoneRedundant.
    standbyAvailabilityZone string
    The Availability Zone of the standby Flexible Server. Possible values are 1, 2 and 3.
    mode str
    The high availability mode for the PostgreSQL Flexible Server. The only possible value is ZoneRedundant.
    standby_availability_zone str
    The Availability Zone of the standby Flexible Server. Possible values are 1, 2 and 3.
    mode String
    The high availability mode for the PostgreSQL Flexible Server. The only possible value is ZoneRedundant.
    standbyAvailabilityZone String
    The Availability Zone of the standby Flexible Server. Possible values are 1, 2 and 3.

    FlexibleServerMaintenanceWindow, FlexibleServerMaintenanceWindowArgs

    DayOfWeek int
    The day of week for maintenance window. Defaults to 0.
    StartHour int
    The day of week for maintenance window. Defaults to 0.
    StartMinute int
    The start minute for maintenance window. Defaults to 0.
    DayOfWeek int
    The day of week for maintenance window. Defaults to 0.
    StartHour int
    The day of week for maintenance window. Defaults to 0.
    StartMinute int
    The start minute for maintenance window. Defaults to 0.
    dayOfWeek Integer
    The day of week for maintenance window. Defaults to 0.
    startHour Integer
    The day of week for maintenance window. Defaults to 0.
    startMinute Integer
    The start minute for maintenance window. Defaults to 0.
    dayOfWeek number
    The day of week for maintenance window. Defaults to 0.
    startHour number
    The day of week for maintenance window. Defaults to 0.
    startMinute number
    The start minute for maintenance window. Defaults to 0.
    day_of_week int
    The day of week for maintenance window. Defaults to 0.
    start_hour int
    The day of week for maintenance window. Defaults to 0.
    start_minute int
    The start minute for maintenance window. Defaults to 0.
    dayOfWeek Number
    The day of week for maintenance window. Defaults to 0.
    startHour Number
    The day of week for maintenance window. Defaults to 0.
    startMinute Number
    The start minute for maintenance window. Defaults to 0.

    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 azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.