FabricTools v0.33.0 Public Preview

New-FabricDomain

Creates a new Fabric domain.

Syntax

New-FabricDomain [-DomainName] <string> [[-DomainDescription] <string>] [[-ParentDomainId] <guid>]
 [-WhatIf] [-Confirm] [<CommonParameters>]

Description

The Add-FabricDomain function creates a new domain in Microsoft Fabric by making a POST request to the relevant API endpoint.

Examples

Example 1

Creates a "Finance" domain under the parent domain with ID "12345".

Add-FabricDomain -DomainName "Finance" -DomainDescription "Finance data domain" -ParentDomainId "12345"

Parameters

NameTypeReq.Pos.PipelineDescription
-DomainName string ✓Required 0 –

The name of the domain to be created. Must only contain alphanumeric characters, underscores, and spaces.

-Confirmalias: cf switch Named –

Prompts you for confirmation before running the cmdlet.

-DomainDescription string 1 –

A description of the domain to be created.

-ParentDomainId guid 2 –

(Optional) The ID of the parent domain, if applicable.

-WhatIfalias: wi switch Named –

Runs the command in a mode that only reports what would happen without performing the actions.

This cmdlet also supports the common parameters, such as -Verbose and -ErrorAction. See about_CommonParameters.

Notes

  • Calls Confirm-TokenState to ensure token validity before making the API request.

Author: Tiago Balabuch, Kamil Nowinski