This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.sql.getDistributedAvailabilityGroup
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Gets a distributed availability group info. Azure REST API version: 2021-11-01.
Other available API versions: 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview.
Using getDistributedAvailabilityGroup
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDistributedAvailabilityGroup(args: GetDistributedAvailabilityGroupArgs, opts?: InvokeOptions): Promise<GetDistributedAvailabilityGroupResult>
function getDistributedAvailabilityGroupOutput(args: GetDistributedAvailabilityGroupOutputArgs, opts?: InvokeOptions): Output<GetDistributedAvailabilityGroupResult>def get_distributed_availability_group(distributed_availability_group_name: Optional[str] = None,
                                       managed_instance_name: Optional[str] = None,
                                       resource_group_name: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetDistributedAvailabilityGroupResult
def get_distributed_availability_group_output(distributed_availability_group_name: Optional[pulumi.Input[str]] = None,
                                       managed_instance_name: Optional[pulumi.Input[str]] = None,
                                       resource_group_name: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetDistributedAvailabilityGroupResult]func LookupDistributedAvailabilityGroup(ctx *Context, args *LookupDistributedAvailabilityGroupArgs, opts ...InvokeOption) (*LookupDistributedAvailabilityGroupResult, error)
func LookupDistributedAvailabilityGroupOutput(ctx *Context, args *LookupDistributedAvailabilityGroupOutputArgs, opts ...InvokeOption) LookupDistributedAvailabilityGroupResultOutput> Note: This function is named LookupDistributedAvailabilityGroup in the Go SDK.
public static class GetDistributedAvailabilityGroup 
{
    public static Task<GetDistributedAvailabilityGroupResult> InvokeAsync(GetDistributedAvailabilityGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetDistributedAvailabilityGroupResult> Invoke(GetDistributedAvailabilityGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDistributedAvailabilityGroupResult> getDistributedAvailabilityGroup(GetDistributedAvailabilityGroupArgs args, InvokeOptions options)
public static Output<GetDistributedAvailabilityGroupResult> getDistributedAvailabilityGroup(GetDistributedAvailabilityGroupArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:sql:getDistributedAvailabilityGroup
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DistributedAvailability stringGroup Name 
- The distributed availability group name.
- ManagedInstance stringName 
- The name of the managed 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.
- DistributedAvailability stringGroup Name 
- The distributed availability group name.
- ManagedInstance stringName 
- The name of the managed 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.
- distributedAvailability StringGroup Name 
- The distributed availability group name.
- managedInstance StringName 
- The name of the managed 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.
- distributedAvailability stringGroup Name 
- The distributed availability group name.
- managedInstance stringName 
- The name of the managed 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.
- distributed_availability_ strgroup_ name 
- The distributed availability group name.
- managed_instance_ strname 
- The name of the managed 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.
- distributedAvailability StringGroup Name 
- The distributed availability group name.
- managedInstance StringName 
- The name of the managed 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.
getDistributedAvailabilityGroup Result
The following output properties are available:
- DistributedAvailability stringGroup Id 
- The distributed availability group id
- Id string
- Resource ID.
- LastHardened stringLsn 
- The last hardened lsn
- LinkState string
- The link state
- Name string
- Resource name.
- SourceReplica stringId 
- The source replica id
- TargetReplica stringId 
- The target replica id
- Type string
- Resource type.
- PrimaryAvailability stringGroup Name 
- The primary availability group name
- ReplicationMode string
- The replication mode of a distributed availability group. Parameter will be ignored during link creation.
- SecondaryAvailability stringGroup Name 
- The secondary availability group name
- SourceEndpoint string
- The source endpoint
- TargetDatabase string
- The name of the target database
- DistributedAvailability stringGroup Id 
- The distributed availability group id
- Id string
- Resource ID.
- LastHardened stringLsn 
- The last hardened lsn
- LinkState string
- The link state
- Name string
- Resource name.
- SourceReplica stringId 
- The source replica id
- TargetReplica stringId 
- The target replica id
- Type string
- Resource type.
- PrimaryAvailability stringGroup Name 
- The primary availability group name
- ReplicationMode string
- The replication mode of a distributed availability group. Parameter will be ignored during link creation.
- SecondaryAvailability stringGroup Name 
- The secondary availability group name
- SourceEndpoint string
- The source endpoint
- TargetDatabase string
- The name of the target database
- distributedAvailability StringGroup Id 
- The distributed availability group id
- id String
- Resource ID.
- lastHardened StringLsn 
- The last hardened lsn
- linkState String
- The link state
- name String
- Resource name.
- sourceReplica StringId 
- The source replica id
- targetReplica StringId 
- The target replica id
- type String
- Resource type.
- primaryAvailability StringGroup Name 
- The primary availability group name
- replicationMode String
- The replication mode of a distributed availability group. Parameter will be ignored during link creation.
- secondaryAvailability StringGroup Name 
- The secondary availability group name
- sourceEndpoint String
- The source endpoint
- targetDatabase String
- The name of the target database
- distributedAvailability stringGroup Id 
- The distributed availability group id
- id string
- Resource ID.
- lastHardened stringLsn 
- The last hardened lsn
- linkState string
- The link state
- name string
- Resource name.
- sourceReplica stringId 
- The source replica id
- targetReplica stringId 
- The target replica id
- type string
- Resource type.
- primaryAvailability stringGroup Name 
- The primary availability group name
- replicationMode string
- The replication mode of a distributed availability group. Parameter will be ignored during link creation.
- secondaryAvailability stringGroup Name 
- The secondary availability group name
- sourceEndpoint string
- The source endpoint
- targetDatabase string
- The name of the target database
- distributed_availability_ strgroup_ id 
- The distributed availability group id
- id str
- Resource ID.
- last_hardened_ strlsn 
- The last hardened lsn
- link_state str
- The link state
- name str
- Resource name.
- source_replica_ strid 
- The source replica id
- target_replica_ strid 
- The target replica id
- type str
- Resource type.
- primary_availability_ strgroup_ name 
- The primary availability group name
- replication_mode str
- The replication mode of a distributed availability group. Parameter will be ignored during link creation.
- secondary_availability_ strgroup_ name 
- The secondary availability group name
- source_endpoint str
- The source endpoint
- target_database str
- The name of the target database
- distributedAvailability StringGroup Id 
- The distributed availability group id
- id String
- Resource ID.
- lastHardened StringLsn 
- The last hardened lsn
- linkState String
- The link state
- name String
- Resource name.
- sourceReplica StringId 
- The source replica id
- targetReplica StringId 
- The target replica id
- type String
- Resource type.
- primaryAvailability StringGroup Name 
- The primary availability group name
- replicationMode String
- The replication mode of a distributed availability group. Parameter will be ignored during link creation.
- secondaryAvailability StringGroup Name 
- The secondary availability group name
- sourceEndpoint String
- The source endpoint
- targetDatabase String
- The name of the target database
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi