Get-FabricDomain
Retrieves domain information from Microsoft Fabric, optionally filtering by domain ID, domain name, or only non-empty domains.
Syntax
Get-FabricDomain [[-DomainId] <guid>] [[-DomainName] <string>] [[-NonEmptyDomainsOnly] <bool>]
[<CommonParameters>]Description
The Get-FabricDomain function allows retrieval of domains in Microsoft Fabric, with optional filtering by domain ID or name. Additionally, it can filter to return only non-empty domains.
Examples
Example 1
Fetches the domain with ID "12345".
Get-FabricDomain -DomainId "12345"Example 2
Fetches the domain with the display name "Finance".
Get-FabricDomain -DomainName "Finance"Parameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -DomainId | guid | 0 | – | (Optional) The ID of the domain to retrieve. |
|
| -DomainName | string | 1 | – | (Optional) The display name of the domain to retrieve. |
|
| -NonEmptyDomainsOnly | bool | 2 | – | (Optional) If set to Default: False |
This cmdlet also supports the common parameters, such as -Verbose and -ErrorAction. See about_CommonParameters.
Outputs
System.Object[]
{{ Fill in the Description }}
Notes
- Calls
Confirm-TokenStateto ensure token validity before making the API request.
Author: Tiago Balabuch, Kamil Nowinski