Skip to content

Commit 959c14a

Browse files
committed
Remove Get-AzSqlDatabaseIndexRecommendations alias
1 parent 1058c28 commit 959c14a

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

src/Sql/Sql.Test/ScenarioTests/IndexRecommendationTests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@
1919
function Test-GetIndexRecommendations
2020
{
2121
# Get all recommended indexes for server
22-
$response = Get-AzSqlDatabaseIndexRecommendations -ResourceGroup Group-6 -ServerName witest-eus
22+
$response = Get-AzSqlDatabaseIndexRecommendation -ResourceGroup Group-6 -ServerName witest-eus
2323
ValidateResponse($response)
2424
Assert-AreEqual "Active" $response[0].State
2525

2626
# Get all recommended indexes for database
27-
$response = Get-AzSqlDatabaseIndexRecommendations -ResourceGroup Group-6 -ServerName witest-eus -DatabaseName witestdb-eus
27+
$response = Get-AzSqlDatabaseIndexRecommendation -ResourceGroup Group-6 -ServerName witest-eus -DatabaseName witestdb-eus
2828
ValidateResponse($response)
2929
Assert-AreEqual "Active" $response[0].State
3030

3131
# Get recommended indexes by name
32-
$response = Get-AzSqlDatabaseIndexRecommendations -ResourceGroup Group-6 -ServerName witest-eus -DatabaseName witestdb-eus -IndexRecommendationName nci_wi_Clusters_034590D0-0378-4AB9-96D5-C144B14F6A9B
32+
$response = Get-AzSqlDatabaseIndexRecommendation -ResourceGroup Group-6 -ServerName witest-eus -DatabaseName witestdb-eus -IndexRecommendationName nci_wi_Clusters_034590D0-0378-4AB9-96D5-C144B14F6A9B
3333
ValidateResponse($response)
3434
Assert-AreEqual "Active" $response[0].State
3535
}

src/Sql/Sql/Az.Sql.psd1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ AliasesToExport = 'Get-AzSqlDatabaseServerAuditingPolicy',
269269
'Update-AzSqlInstanceDatabaseVulnerabilityAssessmentSettings',
270270
'Get-AzSqlInstanceDatabaseVulnerabilityAssessmentSettings',
271271
'Clear-AzSqlInstanceDatabaseVulnerabilityAssessmentSettings',
272-
'Get-AzSqlDatabaseIndexRecommendations',
273272
'Update-AzSqlInstanceVulnerabilityAssessmentSettings',
274273
'Get-AzSqlInstanceVulnerabilityAssessmentSettings',
275274
'Clear-AzSqlInstanceVulnerabilityAssessmentSettings',

src/Sql/Sql/Index Recommendations/Cmdlet/GetAzureSqlDatabaseIndexRecommendations.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,10 @@
2626
namespace Microsoft.Azure.Commands.Sql.Cmdlet
2727
{
2828
/// <summary>
29-
/// Defines the Get-AzSqlDatabaseIndexRecommendations cmdlet
29+
/// Defines the Get-AzSqlDatabaseIndexRecommendation cmdlet
3030
/// </summary>
31-
[GenericBreakingChange("Get-AzSqlDatabaseIndexRecommendations alias will be removed in an upcoming breaking change release", "2.0.0")]
3231
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlDatabaseIndexRecommendation", ConfirmImpact = ConfirmImpact.None, SupportsShouldProcess = true)]
3332
[OutputType(typeof(IndexRecommendation))]
34-
[Alias("Get-AzSqlDatabaseIndexRecommendations")]
3533
public class GetAzureSqlDatabaseIndexRecommendations : AzureSqlCmdletBase<IEnumerable<IndexRecommendation>, AzureSqlDatabaseIndexRecommendationAdapter>
3634
{
3735
/// <summary>

src/Sql/Sql/help/Start-AzSqlDatabaseExecuteIndexRecommendation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
123123
124124
## RELATED LINKS
125125
126-
[Get-AzSqlDatabaseIndexRecommendations](./Get-AzSqlDatabaseIndexRecommendations.md)
126+
[Get-AzSqlDatabaseIndexRecommendation](./Get-AzSqlDatabaseIndexRecommendation.md)
127127
128128
[Stop-AzSqlDatabaseExecuteIndexRecommendation](./Stop-AzSqlDatabaseExecuteIndexRecommendation.md)
129129

src/Sql/Sql/help/Stop-AzSqlDatabaseExecuteIndexRecommendation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
123123
124124
## RELATED LINKS
125125
126-
[Get-AzSqlDatabaseIndexRecommendations](./Get-AzSqlDatabaseIndexRecommendations.md)
126+
[Get-AzSqlDatabaseIndexRecommendation](./Get-AzSqlDatabaseIndexRecommendation.md)
127127
128128
[Start-AzSqlDatabaseExecuteIndexRecommendation](./Start-AzSqlDatabaseExecuteIndexRecommendation.md)
129129

0 commit comments

Comments
 (0)