Get-FabricWorkspaceUsageMetricsData
Retrieves workspace usage metrics data.
Syntax
Get-FabricWorkspaceUsageMetricsData [-WorkspaceId] <guid> [[-username] <string>]
[<CommonParameters>]Description
The Get-FabricWorkspaceUsageMetricsData function retrieves workspace usage metrics. It supports multiple aliases for flexibility.
Examples
Example 1
This example retrieves the workspace usage metrics for a specific workspace given the workspace ID and username.
Get-FabricWorkspaceUsageMetricsData -workspaceId "your-workspace-id" -username "your-username"Parameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -WorkspaceIdalias: Id | guid | ✓Required | 0 | – | The ID of the workspace. This is a mandatory parameter. |
| -username | string | 1 | – | The username. This is a mandatory parameter. |
This cmdlet also supports the common parameters, such as -Verbose and -ErrorAction. See about_CommonParameters.
Notes
The function retrieves the PowerBI access token and creates a new usage metrics report. It then defines the names of the reports to retrieve, initializes an empty hashtable to store the reports, and for each report name, retrieves the report and adds it to the hashtable. It then returns the hashtable of reports.
Author: Ioana Bouariu