Get-FabricEnvironmentLibrary
Retrieves the list of libraries associated with a specific environment in a Microsoft Fabric workspace.
Syntax
Get-FabricEnvironmentLibrary [-WorkspaceId] <guid> [-EnvironmentId] <guid> [<CommonParameters>]Description
The Get-FabricEnvironmentLibrary function fetches library information for a given workspace and environment using the Microsoft Fabric API. It ensures the authentication token is valid and validates the response to handle errors gracefully.
Examples
Example 1
Retrieves the libraries associated with the specified environment in the given workspace.
Get-FabricEnvironmentLibrary -WorkspaceId "workspace-12345" -EnvironmentId "environment-67890"Parameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -EnvironmentId | guid | ✓Required | 1 | – | The unique identifier of the environment whose libraries are being queried. |
| -WorkspaceId | guid | ✓Required | 0 | – | (Mandatory) The unique identifier of the workspace where the environment is located. |
This cmdlet also supports the common parameters, such as -Verbose and -ErrorAction. See about_CommonParameters.
Notes
- Uses
Confirm-TokenStateto validate the token before making API calls.
Author: Tiago Balabuch, Kamil Nowinski