-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Closed
Copy link
Labels
SQL - Replication & FailoverService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.customer-reportedneeds-author-feedbackMore information is needed from author to address the issue.More information is needed from author to address the issue.needs-team-triage
Description
Description
One of our customer ran Get-AzSqlDatabaseReplicationLink without specifying -PartnerServerName, he got an error:

Original issue: #10350
Steps to reproduce
Get-AzSqlDatabaseReplicationLink -ResourceGroupName "rg1" -ServerName "sv1" -DatabaseName "db1" -PartnerResourceGroupName "prg1"Root cause
if (MyInvocation.BoundParameters.ContainsKey(PartnerServerName) && !WildcardPattern.ContainsWildcardCharacters(PartnerServerName))ContainsKey(PartnerServerName) should be ContainsKey(nameof(PartnerServerName))
Module versions
Az.Sql 1.15.0 and 2.0.0 both have the issue.Metadata
Metadata
Assignees
Labels
SQL - Replication & FailoverService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.customer-reportedneeds-author-feedbackMore information is needed from author to address the issue.More information is needed from author to address the issue.needs-team-triage