Remove-AzureRmSqlDatabaseSecondary
Syntax
Remove-AzureRmSqlDatabaseSecondary
[-ResourceGroupName] <String>
[-ServerName] <String>
[-DatabaseName] <String>
-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.
Examples
1:
Required Parameters
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 |
Specifies the name of the partner resource group.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True (ByPropertyName) |
| Accept wildcard characters: | False |
Specifies the name of the partner SQL Server.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True (ByPropertyName) |
| Accept wildcard characters: | False |
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 |
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
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 |
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
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.