Get-FabricMirroredDatabaseStatus
Retrieves the status of a mirrored database in a specified workspace.
Syntax
Get-FabricMirroredDatabaseStatus [-WorkspaceId] <guid> [[-MirroredDatabaseId] <guid>]
[<CommonParameters>]Description
Retrieves the status of a mirrored database in a specified workspace. The function validates the authentication token, constructs the API endpoint URL, and makes a POST request to retrieve the mirroring status. It handles errors and logs messages at various levels (Debug, Error).
Examples
Example 1
This example retrieves the status of a mirrored database with the specified ID in the specified workspace.
Get-FabricMirroredDatabaseStatus -WorkspaceId "your-workspace-id" -MirroredDatabaseId "your-mirrored-database-id"Parameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -WorkspaceId | guid | ✓Required | 0 | – | The ID of the workspace containing the mirrored database. |
| -MirroredDatabaseId | guid | 1 | – | the ID of the mirrored database whose status is to be retrieved. |
This cmdlet also supports the common parameters, such as -Verbose and -ErrorAction. See about_CommonParameters.
Notes
Author: Tiago Balabuch, Kamil Nowinski