Skip to content

[Feature]: Add information primary database to Get-AzSqlDatabase command for read-only replica databases #21092

Open

Description

Description of the new feature

The current implementation of Get-AzSqlDatabase does only include a property SecondaryType which tells if the database is a secondary (e.g. Named replica). It would be great if there were additional properties with information about the primary database to which the secondary is linked to. This information is available when executing the Azure CLI statement az sql db replica list-links.

I also tried to get the information through a Get-AzResource statement. This did not give me the information either.

Proposed implementation details (optional)

It would be great if some or all of the following properties would be available.

{
    "PrimaryResourceId": "",
    "PrimaryResourceGroupName": "",
    "PrimaryServerName": "",
    "PrimaryDatabaseName": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

SQLService AttentionThis issue is responsible by Azure service team.customer-reportedfeature-requestThis issue requires a new behavior in the product in order be resolved.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions