Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Get-AzSqlDatabaseReplicationLink

Module:
Az.Sql Module

Gets the geo-replication links between an Azure SQL Database and a resource group or SQL Server.

Syntax

Default (Default)

Get-AzSqlDatabaseReplicationLink
 [-DatabaseName] <String>
 -PartnerResourceGroupName <String>
 [-PartnerServerName <String>]
 [-ServerName] <String>
 [-ResourceGroupName] <String>
 [-DefaultProfile <IAzureContextContainer>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

Description

The Get-AzSqlDatabaseReplicationLink cmdlet replaces the Get-AzSqlDatabaseCopy cmdlet. It gets all geo-replication links between the specified Azure SQL Database and a resource group or AzureSQL Server.

Examples

Example 1

Gets the geo-replication links between an Azure SQL Database and a resource group or SQL Server. (autogenerated)

Get-AzSqlDatabaseReplicationLink -DatabaseName db1 -PartnerResourceGroupName rg2 -ResourceGroupName MyResourceGroup -ServerName s1

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

-DatabaseName

Specifies the name of the SQL Database for which to retrieve links.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

-PartnerResourceGroupName

Specifies the name of the resource group to which the partner is assigned.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-PartnerServerName

Specifies the name of the Azure SQL Server for the partner.

Parameter properties

Type:String
Default value:None
Supports wildcards:True
DontShow:False

Parameter sets

-ResourceGroupName

Specifies the name of the Azure resource group for the database for which to retrieve links.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ServerName

Specifies the name of the SQL Server for the database to retrieve links for.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

String

Outputs

AzureReplicationLinkModel

Related Links


Feedback

Was this page helpful?