Get-FabricEnvironmentSparkCompute
Retrieves the Spark compute details for a specific environment in a Microsoft Fabric workspace.
Syntax
Get-FabricEnvironmentSparkCompute [-WorkspaceId] <guid> [-EnvironmentId] <guid> [<CommonParameters>]Description
The Get-FabricEnvironmentSparkCompute function communicates with the Microsoft Fabric API to fetch information about Spark compute resources associated with a specified environment. It ensures that the API token is valid and gracefully handles errors during the API call.
Examples
Example 1
Retrieves Spark compute details for the specified environment in the given workspace.
Get-FabricEnvironmentSparkCompute -WorkspaceId "workspace-12345" -EnvironmentId "environment-67890"Parameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -EnvironmentId | guid | ✓Required | 1 | – | The unique identifier of the environment whose Spark compute details are being retrieved. |
| -WorkspaceId | guid | ✓Required | 0 | – | The unique identifier of the workspace containing the target environment. |
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