Azure / Azure/azure-powershell

Az.Sql consistency issues in command parameters

Open
#25,932 4 comments 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad customer-reported question Service Attention SQL
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### 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

```PowerShell
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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.