1. Packages
  2. Azure Native v1
  3. API Docs
  4. sql
  5. InstanceFailoverGroup
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.sql.InstanceFailoverGroup

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    An instance failover group. API Version: 2020-11-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 = "Disabled",
            },
            ReadWriteEndpoint = new AzureNative.Sql.Inputs.InstanceFailoverGroupReadWriteEndpointArgs
            {
                FailoverPolicy = "Automatic",
                FailoverWithDataLossGracePeriodMinutes = 480,
            },
            ResourceGroupName = "Default",
        });
    
    });
    
    package main
    
    import (
    	sql "github.com/pulumi/pulumi-azure-native-sdk/sql"
    	"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.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.PartnerRegionInfoArgs{
    				{
    					Location: pulumi.String("Japan West"),
    				},
    			},
    			ReadOnlyEndpoint: &sql.InstanceFailoverGroupReadOnlyEndpointArgs{
    				FailoverPolicy: pulumi.String("Disabled"),
    			},
    			ReadWriteEndpoint: &sql.InstanceFailoverGroupReadWriteEndpointArgs{
    				FailoverPolicy:                         pulumi.String("Automatic"),
    				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 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(Map.ofEntries(
                    Map.entry("partnerManagedInstanceId", "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-secondary-mngdInstance"),
                    Map.entry("primaryManagedInstanceId", "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/failover-group-primary-mngdInstance")
                ))
                .partnerRegions(Map.of("location", "Japan West"))
                .readOnlyEndpoint(Map.of("failoverPolicy", "Disabled"))
                .readWriteEndpoint(Map.ofEntries(
                    Map.entry("failoverPolicy", "Automatic"),
                    Map.entry("failoverWithDataLossGracePeriodMinutes", 480)
                ))
                .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=[azure_native.sql.ManagedInstancePairInfoArgs(
            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=[azure_native.sql.PartnerRegionInfoArgs(
            location="Japan West",
        )],
        read_only_endpoint=azure_native.sql.InstanceFailoverGroupReadOnlyEndpointArgs(
            failover_policy="Disabled",
        ),
        read_write_endpoint=azure_native.sql.InstanceFailoverGroupReadWriteEndpointArgs(
            failover_policy="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: "Disabled",
        },
        readWriteEndpoint: {
            failoverPolicy: "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[]
        {
            
            {
                { "partnerManagedInstanceId", "string" },
                { "primaryManagedInstanceId", "string" },
            },
        },
        PartnerRegions = new[]
        {
            
            {
                { "location", "string" },
            },
        },
        ReadWriteEndpoint = 
        {
            { "failoverPolicy", "string" },
            { "failoverWithDataLossGracePeriodMinutes", 0 },
        },
        ResourceGroupName = "string",
        FailoverGroupName = "string",
        ReadOnlyEndpoint = 
        {
            { "failoverPolicy", "string" },
        },
    });
    
    example, err := sql.NewInstanceFailoverGroup(ctx, "instanceFailoverGroupResource", &sql.InstanceFailoverGroupArgs{
    	LocationName: "string",
    	ManagedInstancePairs: []map[string]interface{}{
    		map[string]interface{}{
    			"partnerManagedInstanceId": "string",
    			"primaryManagedInstanceId": "string",
    		},
    	},
    	PartnerRegions: []map[string]interface{}{
    		map[string]interface{}{
    			"location": "string",
    		},
    	},
    	ReadWriteEndpoint: map[string]interface{}{
    		"failoverPolicy":                         "string",
    		"failoverWithDataLossGracePeriodMinutes": 0,
    	},
    	ResourceGroupName: "string",
    	FailoverGroupName: "string",
    	ReadOnlyEndpoint: map[string]interface{}{
    		"failoverPolicy": "string",
    	},
    })
    
    var instanceFailoverGroupResource = new InstanceFailoverGroup("instanceFailoverGroupResource", InstanceFailoverGroupArgs.builder()
        .locationName("string")
        .managedInstancePairs(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .partnerRegions(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .readWriteEndpoint(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .resourceGroupName("string")
        .failoverGroupName("string")
        .readOnlyEndpoint(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    instance_failover_group_resource = azure_native.sql.InstanceFailoverGroup("instanceFailoverGroupResource",
        location_name=string,
        managed_instance_pairs=[{
            partnerManagedInstanceId: string,
            primaryManagedInstanceId: string,
        }],
        partner_regions=[{
            location: string,
        }],
        read_write_endpoint={
            failoverPolicy: string,
            failoverWithDataLossGracePeriodMinutes: 0,
        },
        resource_group_name=string,
        failover_group_name=string,
        read_only_endpoint={
            failoverPolicy: 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

    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/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/locations/JapanEast/instanceFailoverGroups/failover-group-test-3 
    

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

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi