Remove-​Azure​Rm​Sql​Database​Secondary

Terminates data replication between a SQL Database and the specified secondary database.

Syntax

Remove-AzureRmSqlDatabaseSecondary
      [-ResourceGroupName] <String>
      [-ServerName] <String>
      [-DatabaseName] <String>
      -PartnerResourceGroupName <String>
      -PartnerServerName <String>
      [-InformationAction <ActionPreference>]
      [-InformationVariable <String>]
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]

Description

The Remove-AzureRmSqlDatabaseSecondary cmdlet forces termination of a geo-replication link. This cmdlet replaces the Stop-AzureSqlDatabaseCopy cmdlet. There is no replication synchronization before termination.

Examples

1:

Required Parameters

-DatabaseName

Specifies the name of the primary Azure SQL Database that has the replication link that this cmdlet removes.

Type:String
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-PartnerResourceGroupName

Specifies the name of the partner resource group.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-PartnerServerName

Specifies the name of the partner SQL Server.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

Specifies the name of the resource group that is associated with the replication link to remove.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ServerName

Specifies the name of the SQL Server that has the replication link to remove.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-InformationAction

Specifies how this cmdlet responds to an information event.The acceptable values for this parameter are:- Continue

  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Outputs