< Back

Remove-AzureRmSqlDatabaseSecondary

Tue Jan 29, 2019 10:09 pm

NAME Remove-AzureRmSqlDatabaseSecondary



SYNOPSIS

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





SYNTAX

Remove-AzureRmSqlDatabaseSecondary [-ResourceGroupName] <String> [-ServerName] <String> [-DatabaseName] <String> [-DefaultProfile

<IAzureContextContainer>] -PartnerResourceGroupName <String> -PartnerServerName <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.





PARAMETERS

-DatabaseName <String>

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



Required? true

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-PartnerResourceGroupName <String>

Specifies the name of the partner resource group.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-PartnerServerName <String>

Specifies the name of the partner SQL Server.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

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



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ServerName <String>

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



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

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



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



You can pipe instances of the Database object for the primary or secondary database to this cmdlet.





OUTPUTS



This cmdlet does not generate any output.





NOTES









1:















RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... esecondary

New-AzureRmSqlDatabaseSecondary

Set-AzureRmSqlDatabaseSecondary

SQL Database Documentation https://docs.microsoft.com/azure/sql-database/