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.
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=[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=azure_native.sql.ReadOnlyEndpointFailoverPolicy.DISABLED,
),
read_write_endpoint=azure_native.sql.InstanceFailoverGroupReadWriteEndpointArgs(
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=[azure_native.sql.ManagedInstancePairInfoArgs(
partner_managed_instance_id="string",
primary_managed_instance_id="string",
)],
partner_regions=[azure_native.sql.PartnerRegionInfoArgs(
location="string",
)],
read_write_endpoint=azure_native.sql.InstanceFailoverGroupReadWriteEndpointArgs(
failover_policy="string",
failover_with_data_loss_grace_period_minutes=0,
),
resource_group_name="string",
failover_group_name="string",
read_only_endpoint=azure_native.sql.InstanceFailoverGroupReadOnlyEndpointArgs(
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
The InstanceFailoverGroup resource accepts the following input properties:
- Location
Name string - The name of the region where the resource is located.
- Managed
Instance List<Pulumi.Pairs Azure Native. Sql. Inputs. Managed Instance Pair Info> - List of managed instance pairs in the failover group.
- Partner
Regions List<Pulumi.Azure Native. Sql. Inputs. Partner Region Info> - Partner region information for the failover group.
- Read
Write Pulumi.Endpoint Azure Native. Sql. Inputs. Instance Failover Group Read Write Endpoint - Read-write endpoint of the failover group instance.
- Resource
Group 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.
- Failover
Group stringName - The name of the failover group.
- Read
Only Pulumi.Endpoint Azure Native. Sql. Inputs. Instance Failover Group Read Only Endpoint - Read-only endpoint of the failover group instance.
- Location
Name string - The name of the region where the resource is located.
- Managed
Instance []ManagedPairs Instance Pair Info Args - List of managed instance pairs in the failover group.
- Partner
Regions []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 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.
- Failover
Group stringName - The name of the failover group.
- Read
Only InstanceEndpoint Failover Group Read Only Endpoint Args - Read-only endpoint of the failover group instance.
- location
Name String - The name of the region where the resource is located.
- managed
Instance List<ManagedPairs Instance Pair Info> - List of managed instance pairs in the failover group.
- partner
Regions List<PartnerRegion Info> - Partner region information for the failover group.
- read
Write InstanceEndpoint Failover Group Read Write Endpoint - Read-write endpoint of the failover group instance.
- resource
Group 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.
- failover
Group StringName - The name of the failover group.
- read
Only InstanceEndpoint Failover Group Read Only Endpoint - Read-only endpoint of the failover group instance.
- location
Name string - The name of the region where the resource is located.
- managed
Instance ManagedPairs Instance Pair Info[] - List of managed instance pairs in the failover group.
- partner
Regions PartnerRegion Info[] - Partner region information for the failover group.
- read
Write InstanceEndpoint Failover Group Read Write Endpoint - Read-write endpoint of the failover group instance.
- resource
Group 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.
- failover
Group stringName - The name of the failover group.
- read
Only 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.
- location
Name String - The name of the region where the resource is located.
- managed
Instance List<Property Map>Pairs - List of managed instance pairs in the failover group.
- partner
Regions List<Property Map> - Partner region information for the failover group.
- read
Write Property MapEndpoint - Read-write endpoint of the failover group instance.
- resource
Group 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.
- failover
Group StringName - The name of the failover group.
- read
Only 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.
- Replication
Role string - Local replication role of the failover group instance.
- Replication
State 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.
- Replication
Role string - Local replication role of the failover group instance.
- Replication
State 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.
- replication
Role String - Local replication role of the failover group instance.
- replication
State 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.
- replication
Role string - Local replication role of the failover group instance.
- replication
State 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.
- replication
Role String - Local replication role of the failover group instance.
- replication
State String - Replication state of the failover group instance.
- type String
- Resource type.
Supporting Types
InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadOnlyEndpointArgs
- Failover
Policy string | Pulumi.Azure Native. Sql. Read Only Endpoint Failover Policy - Failover policy of the read-only endpoint for the failover group.
- Failover
Policy string | ReadOnly Endpoint Failover Policy - Failover policy of the read-only endpoint for the failover group.
- failover
Policy String | ReadOnly Endpoint Failover Policy - Failover policy of the read-only endpoint for the failover group.
- failover
Policy 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.
- failover
Policy String | "Disabled" | "Enabled" - Failover policy of the read-only endpoint for the failover group.
InstanceFailoverGroupReadOnlyEndpointResponse, InstanceFailoverGroupReadOnlyEndpointResponseArgs
- Failover
Policy string - Failover policy of the read-only endpoint for the failover group.
- Failover
Policy string - Failover policy of the read-only endpoint for the failover group.
- failover
Policy String - Failover policy of the read-only endpoint for the failover group.
- failover
Policy 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.
- failover
Policy String - Failover policy of the read-only endpoint for the failover group.
InstanceFailoverGroupReadWriteEndpoint, InstanceFailoverGroupReadWriteEndpointArgs
- Failover
Policy 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.
- 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.
- Failover
Policy string | 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.
- failover
Policy String | 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 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.
- failover
Policy string | 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 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.
- failover
Policy String | "Manual" | "Automatic" - Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- failover
With 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
- Failover
Policy string - 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.
- Failover
Policy string - 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.
- failover
Policy String - Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- failover
With 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.
- failover
Policy string - Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- failover
With 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.
- failover
Policy String - Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- failover
With 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
- Partner
Managed stringInstance Id - Id of Partner Managed Instance in pair.
- Primary
Managed stringInstance Id - Id of Primary Managed Instance in pair.
- Partner
Managed stringInstance Id - Id of Partner Managed Instance in pair.
- Primary
Managed stringInstance Id - Id of Primary Managed Instance in pair.
- partner
Managed StringInstance Id - Id of Partner Managed Instance in pair.
- primary
Managed StringInstance Id - Id of Primary Managed Instance in pair.
- partner
Managed stringInstance Id - Id of Partner Managed Instance in pair.
- primary
Managed 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.
- partner
Managed StringInstance Id - Id of Partner Managed Instance in pair.
- primary
Managed StringInstance Id - Id of Primary Managed Instance in pair.
ManagedInstancePairInfoResponse, ManagedInstancePairInfoResponseArgs
- Partner
Managed stringInstance Id - Id of Partner Managed Instance in pair.
- Primary
Managed stringInstance Id - Id of Primary Managed Instance in pair.
- Partner
Managed stringInstance Id - Id of Partner Managed Instance in pair.
- Primary
Managed stringInstance Id - Id of Primary Managed Instance in pair.
- partner
Managed StringInstance Id - Id of Partner Managed Instance in pair.
- primary
Managed StringInstance Id - Id of Primary Managed Instance in pair.
- partner
Managed stringInstance Id - Id of Partner Managed Instance in pair.
- primary
Managed 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.
- partner
Managed StringInstance Id - Id of Partner Managed Instance in pair.
- primary
Managed 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
- Replication
Role string - Replication role of the partner managed instances.
- Location string
- Geo location of the partner managed instances.
- Replication
Role string - Replication role of the partner managed instances.
- Location string
- Geo location of the partner managed instances.
- replication
Role String - Replication role of the partner managed instances.
- location String
- Geo location of the partner managed instances.
- replication
Role 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.
- replication
Role String - Replication role of the partner managed instances.
- location String
- Geo location of the partner managed instances.
ReadOnlyEndpointFailoverPolicy, ReadOnlyEndpointFailoverPolicyArgs
- Disabled
- Disabled
- Enabled
- Enabled
- Read
Only Endpoint Failover Policy Disabled - Disabled
- Read
Only 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
- Read
Write Endpoint Failover Policy Manual - Manual
- Read
Write 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