azure-native.sql.InstanceFailoverGroup
Explore with Pulumi AI
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 * 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",
});
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")
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.
- ManagedInstance List<Pulumi.Pairs Azure Native. Sql. Inputs. Managed Instance Pair Info> 
- List of managed instance pairs in the failover group.
- PartnerRegions List<Pulumi.Azure Native. Sql. Inputs. Partner Region Info> 
- Partner region information for the failover group.
- ReadWrite Pulumi.Endpoint Azure Native. Sql. Inputs. Instance Failover Group Read Write Endpoint 
- Read-write endpoint of the failover group instance.
- ResourceGroup stringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- FailoverGroup stringName 
- The name of the failover group.
- ReadOnly Pulumi.Endpoint Azure Native. Sql. Inputs. Instance Failover Group Read Only Endpoint 
- Read-only endpoint of the failover group instance.
- LocationName string
- The name of the region where the resource is located.
- ManagedInstance []ManagedPairs Instance Pair Info Args 
- List of managed instance pairs in the failover group.
- PartnerRegions []PartnerRegion Info Args 
- Partner region information for the failover group.
- ReadWrite InstanceEndpoint Failover Group Read Write Endpoint Args 
- Read-write endpoint of the failover group instance.
- ResourceGroup stringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- FailoverGroup stringName 
- The name of the failover group.
- ReadOnly InstanceEndpoint Failover Group Read Only Endpoint Args 
- Read-only endpoint of the failover group instance.
- locationName String
- The name of the region where the resource is located.
- managedInstance List<ManagedPairs Instance Pair Info> 
- List of managed instance pairs in the failover group.
- partnerRegions List<PartnerRegion Info> 
- Partner region information for the failover group.
- readWrite InstanceEndpoint Failover Group Read Write Endpoint 
- Read-write endpoint of the failover group instance.
- resourceGroup StringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- failoverGroup StringName 
- The name of the failover group.
- readOnly InstanceEndpoint Failover Group Read Only Endpoint 
- Read-only endpoint of the failover group instance.
- locationName string
- The name of the region where the resource is located.
- managedInstance ManagedPairs Instance Pair Info[] 
- List of managed instance pairs in the failover group.
- partnerRegions PartnerRegion Info[] 
- Partner region information for the failover group.
- readWrite InstanceEndpoint Failover Group Read Write Endpoint 
- Read-write endpoint of the failover group instance.
- resourceGroup stringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- failoverGroup stringName 
- The name of the failover group.
- readOnly InstanceEndpoint Failover Group Read Only Endpoint 
- Read-only endpoint of the failover group instance.
- location_name str
- The name of the region where the resource is located.
- managed_instance_ Sequence[Managedpairs Instance Pair Info Args] 
- List of managed instance pairs in the failover group.
- partner_regions Sequence[PartnerRegion Info Args] 
- Partner region information for the failover group.
- read_write_ Instanceendpoint Failover Group Read Write Endpoint Args 
- Read-write endpoint of the failover group instance.
- resource_group_ strname 
- 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_ strname 
- The name of the failover group.
- read_only_ Instanceendpoint Failover Group Read Only Endpoint Args 
- Read-only endpoint of the failover group instance.
- locationName String
- The name of the region where the resource is located.
- managedInstance List<Property Map>Pairs 
- List of managed instance pairs in the failover group.
- partnerRegions List<Property Map>
- Partner region information for the failover group.
- readWrite Property MapEndpoint 
- Read-write endpoint of the failover group instance.
- resourceGroup StringName 
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- failoverGroup StringName 
- The name of the failover group.
- readOnly Property MapEndpoint 
- 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.Azure Native. Sql. Read Only Endpoint Failover Policy 
- Failover policy of the read-only endpoint for the failover group.
- FailoverPolicy string | ReadOnly Endpoint Failover Policy 
- Failover policy of the read-only endpoint for the failover group.
- failoverPolicy String | ReadOnly Endpoint Failover Policy 
- Failover policy of the read-only endpoint for the failover group.
- failoverPolicy string | ReadOnly Endpoint Failover Policy 
- Failover policy of the read-only endpoint for the failover group.
- failover_policy str | ReadOnly Endpoint Failover Policy 
- 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.Azure Native. Sql. Read Write Endpoint Failover Policy 
- Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- FailoverWith intData Loss Grace Period Minutes 
- Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- FailoverPolicy string | ReadWrite Endpoint Failover Policy 
- Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- FailoverWith intData Loss Grace Period Minutes 
- Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- failoverPolicy String | ReadWrite Endpoint Failover Policy 
- Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- failoverWith IntegerData Loss Grace Period Minutes 
- Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- failoverPolicy string | ReadWrite Endpoint Failover Policy 
- Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- failoverWith numberData Loss Grace Period Minutes 
- 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 | ReadWrite Endpoint Failover Policy 
- Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- failover_with_ intdata_ loss_ grace_ period_ minutes 
- 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.
- failoverWith NumberData Loss Grace Period Minutes 
- 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.
- FailoverWith intData Loss Grace Period Minutes 
- 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.
- FailoverWith intData Loss Grace Period Minutes 
- 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.
- failoverWith IntegerData Loss Grace Period Minutes 
- 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.
- failoverWith numberData Loss Grace Period Minutes 
- 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_ intdata_ loss_ grace_ period_ minutes 
- 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.
- failoverWith NumberData Loss Grace Period Minutes 
- Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
ManagedInstancePairInfo, ManagedInstancePairInfoArgs        
- PartnerManaged stringInstance Id 
- Id of Partner Managed Instance in pair.
- PrimaryManaged stringInstance Id 
- Id of Primary Managed Instance in pair.
- PartnerManaged stringInstance Id 
- Id of Partner Managed Instance in pair.
- PrimaryManaged stringInstance Id 
- Id of Primary Managed Instance in pair.
- partnerManaged StringInstance Id 
- Id of Partner Managed Instance in pair.
- primaryManaged StringInstance Id 
- Id of Primary Managed Instance in pair.
- partnerManaged stringInstance Id 
- Id of Partner Managed Instance in pair.
- primaryManaged stringInstance Id 
- Id of Primary Managed Instance in pair.
- partner_managed_ strinstance_ id 
- Id of Partner Managed Instance in pair.
- primary_managed_ strinstance_ id 
- Id of Primary Managed Instance in pair.
- partnerManaged StringInstance Id 
- Id of Partner Managed Instance in pair.
- primaryManaged StringInstance Id 
- Id of Primary Managed Instance in pair.
ManagedInstancePairInfoResponse, ManagedInstancePairInfoResponseArgs          
- PartnerManaged stringInstance Id 
- Id of Partner Managed Instance in pair.
- PrimaryManaged stringInstance Id 
- Id of Primary Managed Instance in pair.
- PartnerManaged stringInstance Id 
- Id of Partner Managed Instance in pair.
- PrimaryManaged stringInstance Id 
- Id of Primary Managed Instance in pair.
- partnerManaged StringInstance Id 
- Id of Partner Managed Instance in pair.
- primaryManaged StringInstance Id 
- Id of Primary Managed Instance in pair.
- partnerManaged stringInstance Id 
- Id of Partner Managed Instance in pair.
- primaryManaged stringInstance Id 
- Id of Primary Managed Instance in pair.
- partner_managed_ strinstance_ id 
- Id of Partner Managed Instance in pair.
- primary_managed_ strinstance_ id 
- Id of Primary Managed Instance in pair.
- partnerManaged StringInstance Id 
- Id of Partner Managed Instance in pair.
- primaryManaged StringInstance Id 
- 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
- ReadOnly Endpoint Failover Policy Disabled 
- Disabled
- ReadOnly Endpoint Failover Policy Enabled 
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- DISABLED
- Disabled
- ENABLED
- Enabled
- "Disabled"
- Disabled
- "Enabled"
- Enabled
ReadWriteEndpointFailoverPolicy, ReadWriteEndpointFailoverPolicyArgs          
- Manual
- Manual
- Automatic
- Automatic
- ReadWrite Endpoint Failover Policy Manual 
- Manual
- ReadWrite Endpoint Failover Policy Automatic 
- 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