Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.26k stars 3.86k forks source link

Az.Sql consistency issues in command parameters #25932

Open scott1138 opened 2 months ago

scott1138 commented 2 months ago

Description

Between the commands below, the database name parameters do not have consistent names:

Command Instance Param Name DB Param Name
Get-AzSqlInstanceDatabase InstanceName Name
Set-AzSqlInstanceDatabaseBackupShortTermRetentionPolicy InstanceName DatabaseName
Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy InstanceName DatabaseName

In scripts where I use a variable to define a common parameter set used for splatting I now have to repeat all the values for each command.

Script or Debug output

No response

Environment data

No response

Module versions

Name         Version
----         -------
Az.Accounts  3.0.2
Az.Compute   8.1.0
Az.KeyVault  6.0.1
Az.Resources 7.2.0
Az.Sql       5.1.0
Az.Storage   7.1.0

Error output

No response

isra-fel commented 2 months ago

I'm routing this to Sql team. Idealy we should have consistent naming and keep the other names as aliases to avoid breaking change.

microsoft-github-policy-service[bot] commented 2 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureSQLGitHub.

microsoft-github-policy-service[bot] commented 2 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureSQLGitHub.