1. Packages
  2. Azure Native
  3. API Docs
  4. sql
  5. InstanceFailoverGroup
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.sql.InstanceFailoverGroup

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    An instance failover group. Azure REST API version: 2021-11-01. Prior API version in Azure Native 1.x: 2020-11-01-preview.

    Other available API versions: 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview.

    Example Usage

    Create failover group

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var instanceFailoverGroup = new AzureNative.Sql.InstanceFailoverGroup("instanceFailoverGroup", new()
        {
            FailoverGroupName = "failover-group-test-3",
            LocationName = "Japan East",
            ManagedInstancePairs = new[]
            {
                new AzureNative.Sql.Inputs.ManagedInstancePairInfoArgs
                {
                    PartnerManagedInstanceId = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-secondary-mngdInstance",
                    PrimaryManagedInstanceId = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-primary-mngdInstance",
                },
            },
            PartnerRegions = new[]
            {
                new AzureNative.Sql.Inputs.PartnerRegionInfoArgs
                {
                    Location = "Japan West",
                },
            },
            ReadOnlyEndpoint = new AzureNative.Sql.Inputs.InstanceFailoverGroupReadOnlyEndpointArgs
            {
                FailoverPolicy = AzureNative.Sql.ReadOnlyEndpointFailoverPolicy.Disabled,
            },
            ReadWriteEndpoint = new AzureNative.Sql.Inputs.InstanceFailoverGroupReadWriteEndpointArgs
            {
                FailoverPolicy = AzureNative.Sql.ReadWriteEndpointFailoverPolicy.Automatic,
                FailoverWithDataLossGracePeriodMinutes = 480,
            },
            ResourceGroupName = "Default",
        });
    
    });
    
    package main
    
    import (
    	sql "github.com/pulumi/pulumi-azure-native-sdk/sql/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sql.NewInstanceFailoverGroup(ctx, "instanceFailoverGroup", &sql.InstanceFailoverGroupArgs{
    			FailoverGroupName: pulumi.String("failover-group-test-3"),
    			LocationName:      pulumi.String("Japan East"),
    			ManagedInstancePairs: sql.ManagedInstancePairInfoArray{
    				&sql.ManagedInstancePairInfoArgs{
    					PartnerManagedInstanceId: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-secondary-mngdInstance"),
    					PrimaryManagedInstanceId: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-primary-mngdInstance"),
    				},
    			},
    			PartnerRegions: sql.PartnerRegionInfoArray{
    				&sql.PartnerRegionInfoArgs{
    					Location: pulumi.String("Japan West"),
    				},
    			},
    			ReadOnlyEndpoint: &sql.InstanceFailoverGroupReadOnlyEndpointArgs{
    				FailoverPolicy: pulumi.String(sql.ReadOnlyEndpointFailoverPolicyDisabled),
    			},
    			ReadWriteEndpoint: &sql.InstanceFailoverGroupReadWriteEndpointArgs{
    				FailoverPolicy:                         pulumi.String(sql.ReadWriteEndpointFailoverPolicyAutomatic),
    				FailoverWithDataLossGracePeriodMinutes: pulumi.Int(480),
    			},
    			ResourceGroupName: pulumi.String("Default"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.sql.InstanceFailoverGroup;
    import com.pulumi.azurenative.sql.InstanceFailoverGroupArgs;
    import com.pulumi.azurenative.sql.inputs.ManagedInstancePairInfoArgs;
    import com.pulumi.azurenative.sql.inputs.PartnerRegionInfoArgs;
    import com.pulumi.azurenative.sql.inputs.InstanceFailoverGroupReadOnlyEndpointArgs;
    import com.pulumi.azurenative.sql.inputs.InstanceFailoverGroupReadWriteEndpointArgs;
    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 instanceFailoverGroup = new InstanceFailoverGroup("instanceFailoverGroup", InstanceFailoverGroupArgs.builder()
                .failoverGroupName("failover-group-test-3")
                .locationName("Japan East")
                .managedInstancePairs(ManagedInstancePairInfoArgs.builder()
                    .partnerManagedInstanceId("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-secondary-mngdInstance")
                    .primaryManagedInstanceId("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-primary-mngdInstance")
                    .build())
                .partnerRegions(PartnerRegionInfoArgs.builder()
                    .location("Japan West")
                    .build())
                .readOnlyEndpoint(InstanceFailoverGroupReadOnlyEndpointArgs.builder()
                    .failoverPolicy("Disabled")
                    .build())
                .readWriteEndpoint(InstanceFailoverGroupReadWriteEndpointArgs.builder()
                    .failoverPolicy("Automatic")
                    .failoverWithDataLossGracePeriodMinutes(480)
                    .build())
                .resourceGroupName("Default")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    instance_failover_group = azure_native.sql.InstanceFailoverGroup("instanceFailoverGroup",
        failover_group_name="failover-group-test-3",
        location_name="Japan East",
        managed_instance_pairs=[{
            "partner_managed_instance_id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-secondary-mngdInstance",
            "primary_managed_instance_id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-primary-mngdInstance",
        }],
        partner_regions=[{
            "location": "Japan West",
        }],
        read_only_endpoint={
            "failover_policy": azure_native.sql.ReadOnlyEndpointFailoverPolicy.DISABLED,
        },
        read_write_endpoint={
            "failover_policy": azure_native.sql.ReadWriteEndpointFailoverPolicy.AUTOMATIC,
            "failover_with_data_loss_grace_period_minutes": 480,
        },
        resource_group_name="Default")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const instanceFailoverGroup = new azure_native.sql.InstanceFailoverGroup("instanceFailoverGroup", {
        failoverGroupName: "failover-group-test-3",
        locationName: "Japan East",
        managedInstancePairs: [{
            partnerManagedInstanceId: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-secondary-mngdInstance",
            primaryManagedInstanceId: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-primary-mngdInstance",
        }],
        partnerRegions: [{
            location: "Japan West",
        }],
        readOnlyEndpoint: {
            failoverPolicy: azure_native.sql.ReadOnlyEndpointFailoverPolicy.Disabled,
        },
        readWriteEndpoint: {
            failoverPolicy: azure_native.sql.ReadWriteEndpointFailoverPolicy.Automatic,
            failoverWithDataLossGracePeriodMinutes: 480,
        },
        resourceGroupName: "Default",
    });
    
    resources:
      instanceFailoverGroup:
        type: azure-native:sql:InstanceFailoverGroup
        properties:
          failoverGroupName: failover-group-test-3
          locationName: Japan East
          managedInstancePairs:
            - partnerManagedInstanceId: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-secondary-mngdInstance
              primaryManagedInstanceId: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-primary-mngdInstance
          partnerRegions:
            - location: Japan West
          readOnlyEndpoint:
            failoverPolicy: Disabled
          readWriteEndpoint:
            failoverPolicy: Automatic
            failoverWithDataLossGracePeriodMinutes: 480
          resourceGroupName: Default
    

    Create InstanceFailoverGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new InstanceFailoverGroup(name: string, args: InstanceFailoverGroupArgs, opts?: CustomResourceOptions);
    @overload
    def InstanceFailoverGroup(resource_name: str,
                              args: InstanceFailoverGroupArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def InstanceFailoverGroup(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              location_name: Optional[str] = None,
                              managed_instance_pairs: Optional[Sequence[ManagedInstancePairInfoArgs]] = None,
                              partner_regions: Optional[Sequence[PartnerRegionInfoArgs]] = None,
                              read_write_endpoint: Optional[InstanceFailoverGroupReadWriteEndpointArgs] = None,
                              resource_group_name: Optional[str] = None,
                              failover_group_name: Optional[str] = None,
                              read_only_endpoint: Optional[InstanceFailoverGroupReadOnlyEndpointArgs] = None)
    func NewInstanceFailoverGroup(ctx *Context, name string, args InstanceFailoverGroupArgs, opts ...ResourceOption) (*InstanceFailoverGroup, error)
    public InstanceFailoverGroup(string name, InstanceFailoverGroupArgs args, CustomResourceOptions? opts = null)
    public InstanceFailoverGroup(String name, InstanceFailoverGroupArgs args)
    public InstanceFailoverGroup(String name, InstanceFailoverGroupArgs args, CustomResourceOptions options)
    
    type: azure-native:sql:InstanceFailoverGroup
    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 InstanceFailoverGroupArgs
    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 InstanceFailoverGroupArgs
    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 InstanceFailoverGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InstanceFailoverGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InstanceFailoverGroupArgs
    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 instanceFailoverGroupResource = new AzureNative.Sql.InstanceFailoverGroup("instanceFailoverGroupResource", new()
    {
        LocationName = "string",
        ManagedInstancePairs = new[]
        {
            new AzureNative.Sql.Inputs.ManagedInstancePairInfoArgs
            {
                PartnerManagedInstanceId = "string",
                PrimaryManagedInstanceId = "string",
            },
        },
        PartnerRegions = new[]
        {
            new AzureNative.Sql.Inputs.PartnerRegionInfoArgs
            {
                Location = "string",
            },
        },
        ReadWriteEndpoint = new AzureNative.Sql.Inputs.InstanceFailoverGroupReadWriteEndpointArgs
        {
            FailoverPolicy = "string",
            FailoverWithDataLossGracePeriodMinutes = 0,
        },
        ResourceGroupName = "string",
        FailoverGroupName = "string",
        ReadOnlyEndpoint = new AzureNative.Sql.Inputs.InstanceFailoverGroupReadOnlyEndpointArgs
        {
            FailoverPolicy = "string",
        },
    });
    
    example, err := sql.NewInstanceFailoverGroup(ctx, "instanceFailoverGroupResource", &sql.InstanceFailoverGroupArgs{
    	LocationName: pulumi.String("string"),
    	ManagedInstancePairs: sql.ManagedInstancePairInfoArray{
    		&sql.ManagedInstancePairInfoArgs{
    			PartnerManagedInstanceId: pulumi.String("string"),
    			PrimaryManagedInstanceId: pulumi.String("string"),
    		},
    	},
    	PartnerRegions: sql.PartnerRegionInfoArray{
    		&sql.PartnerRegionInfoArgs{
    			Location: pulumi.String("string"),
    		},
    	},
    	ReadWriteEndpoint: &sql.InstanceFailoverGroupReadWriteEndpointArgs{
    		FailoverPolicy:                         pulumi.String("string"),
    		FailoverWithDataLossGracePeriodMinutes: pulumi.Int(0),
    	},
    	ResourceGroupName: pulumi.String("string"),
    	FailoverGroupName: pulumi.String("string"),
    	ReadOnlyEndpoint: &sql.InstanceFailoverGroupReadOnlyEndpointArgs{
    		FailoverPolicy: pulumi.String("string"),
    	},
    })
    
    var instanceFailoverGroupResource = new InstanceFailoverGroup("instanceFailoverGroupResource", InstanceFailoverGroupArgs.builder()
        .locationName("string")
        .managedInstancePairs(ManagedInstancePairInfoArgs.builder()
            .partnerManagedInstanceId("string")
            .primaryManagedInstanceId("string")
            .build())
        .partnerRegions(PartnerRegionInfoArgs.builder()
            .location("string")
            .build())
        .readWriteEndpoint(InstanceFailoverGroupReadWriteEndpointArgs.builder()
            .failoverPolicy("string")
            .failoverWithDataLossGracePeriodMinutes(0)
            .build())
        .resourceGroupName("string")
        .failoverGroupName("string")
        .readOnlyEndpoint(InstanceFailoverGroupReadOnlyEndpointArgs.builder()
            .failoverPolicy("string")
            .build())
        .build());
    
    instance_failover_group_resource = azure_native.sql.InstanceFailoverGroup("instanceFailoverGroupResource",
        location_name="string",
        managed_instance_pairs=[{
            "partner_managed_instance_id": "string",
            "primary_managed_instance_id": "string",
        }],
        partner_regions=[{
            "location": "string",
        }],
        read_write_endpoint={
            "failover_policy": "string",
            "failover_with_data_loss_grace_period_minutes": 0,
        },
        resource_group_name="string",
        failover_group_name="string",
        read_only_endpoint={
            "failover_policy": "string",
        })
    
    const instanceFailoverGroupResource = new azure_native.sql.InstanceFailoverGroup("instanceFailoverGroupResource", {
        locationName: "string",
        managedInstancePairs: [{
            partnerManagedInstanceId: "string",
            primaryManagedInstanceId: "string",
        }],
        partnerRegions: [{
            location: "string",
        }],
        readWriteEndpoint: {
            failoverPolicy: "string",
            failoverWithDataLossGracePeriodMinutes: 0,
        },
        resourceGroupName: "string",
        failoverGroupName: "string",
        readOnlyEndpoint: {
            failoverPolicy: "string",
        },
    });
    
    type: azure-native:sql:InstanceFailoverGroup
    properties:
        failoverGroupName: string
        locationName: string
        managedInstancePairs:
            - partnerManagedInstanceId: string
              primaryManagedInstanceId: string
        partnerRegions:
            - location: string
        readOnlyEndpoint:
            failoverPolicy: string
        readWriteEndpoint:
            failoverPolicy: string
            failoverWithDataLossGracePeriodMinutes: 0
        resourceGroupName: string
    

    InstanceFailoverGroup 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 InstanceFailoverGroup resource accepts the following input properties:

    LocationName string
    The name of the region where the resource is located.
    ManagedInstancePairs List<Pulumi.AzureNative.Sql.Inputs.ManagedInstancePairInfo>
    List of managed instance pairs in the failover group.
    PartnerRegions List<Pulumi.AzureNative.Sql.Inputs.PartnerRegionInfo>
    Partner region information for the failover group.
    ReadWriteEndpoint Pulumi.AzureNative.Sql.Inputs.InstanceFailoverGroupReadWriteEndpoint
    Read-write endpoint of the failover group instance.
    ResourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    FailoverGroupName string
    The name of the failover group.
    ReadOnlyEndpoint Pulumi.AzureNative.Sql.Inputs.InstanceFailoverGroupReadOnlyEndpoint
    Read-only endpoint of the failover group instance.
    LocationName string
    The name of the region where the resource is located.
    ManagedInstancePairs []ManagedInstancePairInfoArgs
    List of managed instance pairs in the failover group.
    PartnerRegions []PartnerRegionInfoArgs
    Partner region information for the failover group.
    ReadWriteEndpoint InstanceFailoverGroupReadWriteEndpointArgs
    Read-write endpoint of the failover group instance.
    ResourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    FailoverGroupName string
    The name of the failover group.
    ReadOnlyEndpoint InstanceFailoverGroupReadOnlyEndpointArgs
    Read-only endpoint of the failover group instance.
    locationName String
    The name of the region where the resource is located.
    managedInstancePairs List<ManagedInstancePairInfo>
    List of managed instance pairs in the failover group.
    partnerRegions List<PartnerRegionInfo>
    Partner region information for the failover group.
    readWriteEndpoint InstanceFailoverGroupReadWriteEndpoint
    Read-write endpoint of the failover group instance.
    resourceGroupName String
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    failoverGroupName String
    The name of the failover group.
    readOnlyEndpoint InstanceFailoverGroupReadOnlyEndpoint
    Read-only endpoint of the failover group instance.
    locationName string
    The name of the region where the resource is located.
    managedInstancePairs ManagedInstancePairInfo[]
    List of managed instance pairs in the failover group.
    partnerRegions PartnerRegionInfo[]
    Partner region information for the failover group.
    readWriteEndpoint InstanceFailoverGroupReadWriteEndpoint
    Read-write endpoint of the failover group instance.
    resourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    failoverGroupName string
    The name of the failover group.
    readOnlyEndpoint InstanceFailoverGroupReadOnlyEndpoint
    Read-only endpoint of the failover group instance.
    location_name str
    The name of the region where the resource is located.
    managed_instance_pairs Sequence[ManagedInstancePairInfoArgs]
    List of managed instance pairs in the failover group.
    partner_regions Sequence[PartnerRegionInfoArgs]
    Partner region information for the failover group.
    read_write_endpoint InstanceFailoverGroupReadWriteEndpointArgs
    Read-write endpoint of the failover group instance.
    resource_group_name str
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    failover_group_name str
    The name of the failover group.
    read_only_endpoint InstanceFailoverGroupReadOnlyEndpointArgs
    Read-only endpoint of the failover group instance.
    locationName String
    The name of the region where the resource is located.
    managedInstancePairs List<Property Map>
    List of managed instance pairs in the failover group.
    partnerRegions List<Property Map>
    Partner region information for the failover group.
    readWriteEndpoint Property Map
    Read-write endpoint of the failover group instance.
    resourceGroupName String
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    failoverGroupName String
    The name of the failover group.
    readOnlyEndpoint Property Map
    Read-only endpoint of the failover group instance.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    ReplicationRole string
    Local replication role of the failover group instance.
    ReplicationState string
    Replication state of the failover group instance.
    Type string
    Resource type.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    ReplicationRole string
    Local replication role of the failover group instance.
    ReplicationState string
    Replication state of the failover group instance.
    Type string
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    replicationRole String
    Local replication role of the failover group instance.
    replicationState String
    Replication state of the failover group instance.
    type String
    Resource type.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name.
    replicationRole string
    Local replication role of the failover group instance.
    replicationState string
    Replication state of the failover group instance.
    type string
    Resource type.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource name.
    replication_role str
    Local replication role of the failover group instance.
    replication_state str
    Replication state of the failover group instance.
    type str
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    replicationRole String
    Local replication role of the failover group instance.
    replicationState String
    Replication state of the failover group instance.
    type String
    Resource type.

    Supporting Types

    InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadOnlyEndpointArgs

    FailoverPolicy string | Pulumi.AzureNative.Sql.ReadOnlyEndpointFailoverPolicy
    Failover policy of the read-only endpoint for the failover group.
    FailoverPolicy string | ReadOnlyEndpointFailoverPolicy
    Failover policy of the read-only endpoint for the failover group.
    failoverPolicy String | ReadOnlyEndpointFailoverPolicy
    Failover policy of the read-only endpoint for the failover group.
    failoverPolicy string | ReadOnlyEndpointFailoverPolicy
    Failover policy of the read-only endpoint for the failover group.
    failover_policy str | ReadOnlyEndpointFailoverPolicy
    Failover policy of the read-only endpoint for the failover group.
    failoverPolicy String | "Disabled" | "Enabled"
    Failover policy of the read-only endpoint for the failover group.

    InstanceFailoverGroupReadOnlyEndpointResponse, InstanceFailoverGroupReadOnlyEndpointResponseArgs

    FailoverPolicy string
    Failover policy of the read-only endpoint for the failover group.
    FailoverPolicy string
    Failover policy of the read-only endpoint for the failover group.
    failoverPolicy String
    Failover policy of the read-only endpoint for the failover group.
    failoverPolicy string
    Failover policy of the read-only endpoint for the failover group.
    failover_policy str
    Failover policy of the read-only endpoint for the failover group.
    failoverPolicy String
    Failover policy of the read-only endpoint for the failover group.

    InstanceFailoverGroupReadWriteEndpoint, InstanceFailoverGroupReadWriteEndpointArgs

    FailoverPolicy string | Pulumi.AzureNative.Sql.ReadWriteEndpointFailoverPolicy
    Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    FailoverWithDataLossGracePeriodMinutes int
    Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    FailoverPolicy string | ReadWriteEndpointFailoverPolicy
    Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    FailoverWithDataLossGracePeriodMinutes int
    Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    failoverPolicy String | ReadWriteEndpointFailoverPolicy
    Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    failoverWithDataLossGracePeriodMinutes Integer
    Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    failoverPolicy string | ReadWriteEndpointFailoverPolicy
    Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    failoverWithDataLossGracePeriodMinutes number
    Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    failover_policy str | ReadWriteEndpointFailoverPolicy
    Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    failover_with_data_loss_grace_period_minutes int
    Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    failoverPolicy String | "Manual" | "Automatic"
    Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    failoverWithDataLossGracePeriodMinutes Number
    Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.

    InstanceFailoverGroupReadWriteEndpointResponse, InstanceFailoverGroupReadWriteEndpointResponseArgs

    FailoverPolicy string
    Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    FailoverWithDataLossGracePeriodMinutes int
    Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    FailoverPolicy string
    Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    FailoverWithDataLossGracePeriodMinutes int
    Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    failoverPolicy String
    Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    failoverWithDataLossGracePeriodMinutes Integer
    Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    failoverPolicy string
    Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    failoverWithDataLossGracePeriodMinutes number
    Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    failover_policy str
    Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    failover_with_data_loss_grace_period_minutes int
    Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    failoverPolicy String
    Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
    failoverWithDataLossGracePeriodMinutes Number
    Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.

    ManagedInstancePairInfo, ManagedInstancePairInfoArgs

    PartnerManagedInstanceId string
    Id of Partner Managed Instance in pair.
    PrimaryManagedInstanceId string
    Id of Primary Managed Instance in pair.
    PartnerManagedInstanceId string
    Id of Partner Managed Instance in pair.
    PrimaryManagedInstanceId string
    Id of Primary Managed Instance in pair.
    partnerManagedInstanceId String
    Id of Partner Managed Instance in pair.
    primaryManagedInstanceId String
    Id of Primary Managed Instance in pair.
    partnerManagedInstanceId string
    Id of Partner Managed Instance in pair.
    primaryManagedInstanceId string
    Id of Primary Managed Instance in pair.
    partner_managed_instance_id str
    Id of Partner Managed Instance in pair.
    primary_managed_instance_id str
    Id of Primary Managed Instance in pair.
    partnerManagedInstanceId String
    Id of Partner Managed Instance in pair.
    primaryManagedInstanceId String
    Id of Primary Managed Instance in pair.

    ManagedInstancePairInfoResponse, ManagedInstancePairInfoResponseArgs

    PartnerManagedInstanceId string
    Id of Partner Managed Instance in pair.
    PrimaryManagedInstanceId string
    Id of Primary Managed Instance in pair.
    PartnerManagedInstanceId string
    Id of Partner Managed Instance in pair.
    PrimaryManagedInstanceId string
    Id of Primary Managed Instance in pair.
    partnerManagedInstanceId String
    Id of Partner Managed Instance in pair.
    primaryManagedInstanceId String
    Id of Primary Managed Instance in pair.
    partnerManagedInstanceId string
    Id of Partner Managed Instance in pair.
    primaryManagedInstanceId string
    Id of Primary Managed Instance in pair.
    partner_managed_instance_id str
    Id of Partner Managed Instance in pair.
    primary_managed_instance_id str
    Id of Primary Managed Instance in pair.
    partnerManagedInstanceId String
    Id of Partner Managed Instance in pair.
    primaryManagedInstanceId String
    Id of Primary Managed Instance in pair.

    PartnerRegionInfo, PartnerRegionInfoArgs

    Location string
    Geo location of the partner managed instances.
    Location string
    Geo location of the partner managed instances.
    location String
    Geo location of the partner managed instances.
    location string
    Geo location of the partner managed instances.
    location str
    Geo location of the partner managed instances.
    location String
    Geo location of the partner managed instances.

    PartnerRegionInfoResponse, PartnerRegionInfoResponseArgs

    ReplicationRole string
    Replication role of the partner managed instances.
    Location string
    Geo location of the partner managed instances.
    ReplicationRole string
    Replication role of the partner managed instances.
    Location string
    Geo location of the partner managed instances.
    replicationRole String
    Replication role of the partner managed instances.
    location String
    Geo location of the partner managed instances.
    replicationRole string
    Replication role of the partner managed instances.
    location string
    Geo location of the partner managed instances.
    replication_role str
    Replication role of the partner managed instances.
    location str
    Geo location of the partner managed instances.
    replicationRole String
    Replication role of the partner managed instances.
    location String
    Geo location of the partner managed instances.

    ReadOnlyEndpointFailoverPolicy, ReadOnlyEndpointFailoverPolicyArgs

    Disabled
    Disabled
    Enabled
    Enabled
    ReadOnlyEndpointFailoverPolicyDisabled
    Disabled
    ReadOnlyEndpointFailoverPolicyEnabled
    Enabled
    Disabled
    Disabled
    Enabled
    Enabled
    Disabled
    Disabled
    Enabled
    Enabled
    DISABLED
    Disabled
    ENABLED
    Enabled
    "Disabled"
    Disabled
    "Enabled"
    Enabled

    ReadWriteEndpointFailoverPolicy, ReadWriteEndpointFailoverPolicyArgs

    Manual
    Manual
    Automatic
    Automatic
    ReadWriteEndpointFailoverPolicyManual
    Manual
    ReadWriteEndpointFailoverPolicyAutomatic
    Automatic
    Manual
    Manual
    Automatic
    Automatic
    Manual
    Manual
    Automatic
    Automatic
    MANUAL
    Manual
    AUTOMATIC
    Automatic
    "Manual"
    Manual
    "Automatic"
    Automatic

    Import

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

    $ pulumi import azure-native:sql:InstanceFailoverGroup failover-group-test-3 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi