Skip to content

refactor: rename target-type parameters for naming consistency - #6

Merged
constantinhager merged 2 commits into
mainfrom
feature/target-parameter-naming
Aug 20, 2026
Merged

constantinhager merged 2 commits into
mainfrom
feature/target-parameter-naming

Conversation

@constantinhager

Copy link
Copy Markdown
Owner

Add-/Remove-SqlElasticJobTarget's -DatabaseName, -ElasticPoolName and -ShardMapName are renamed to -TargetDatabaseName, -TargetElasticPoolName and -TargetShardMapName, matching the existing -TargetServerName/-TargetGroupName naming and avoiding a name collision with unrelated DatabaseName properties elsewhere in the pipeline (e.g. the agent's own job database).

The underlying Add-/Remove-AzSqlElasticJobTarget cmdlets keep their original DatabaseName/ElasticPoolName/ShardMapName parameter names, so these three are now mapped explicitly instead of relying on Add-OptionalParameter's same-name forwarding; RefreshCredentialName/Exclude still go through Add-OptionalParameter since their names are unchanged.

No back-compat alias was added since the module is still unreleased/preview. Updates unit and integration tests and a CHANGELOG entry.

constantinhager and others added 2 commits August 20, 2026 10:18
Add-/Remove-SqlElasticJobTarget's -DatabaseName, -ElasticPoolName and
-ShardMapName are renamed to -TargetDatabaseName, -TargetElasticPoolName and
-TargetShardMapName, matching the existing -TargetServerName/-TargetGroupName
naming and avoiding a name collision with unrelated DatabaseName properties
elsewhere in the pipeline (e.g. the agent's own job database).

The underlying Add-/Remove-AzSqlElasticJobTarget cmdlets keep their original
DatabaseName/ElasticPoolName/ShardMapName parameter names, so these three are
now mapped explicitly instead of relying on Add-OptionalParameter's
same-name forwarding; RefreshCredentialName/Exclude still go through
Add-OptionalParameter since their names are unchanged.

No back-compat alias was added since the module is still unreleased/preview.
Updates unit and integration tests and a CHANGELOG entry.

Co-authored-by: AI Assistant <ai@example.com>
@constantinhager
constantinhager merged commit 09d16d7 into main Aug 20, 2026
5 checks passed
@constantinhager
constantinhager deleted the feature/target-parameter-naming branch August 20, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant