FabricTools v0.33.0 Public Preview

New-FabricSQLDatabase

Creates a new SQL Database in a specified Microsoft Fabric workspace.

Syntax

New-FabricSQLDatabase [-WorkspaceId] <guid> [-Name] <string> [[-Description] <string>] [-NoWait]
 [-WhatIf] [-Confirm] [<CommonParameters>]

Description

The New-FabricSQLDatabase function sends a POST request to the Microsoft Fabric API to create a new SQL Database in the specified workspace. It supports optional parameters for SQL Database description and path definitions for the SQL Database content.

Examples

Example 1

New-FabricSQLDatabase -WorkspaceId "workspace-12345" -Name "NewDatabase"

Parameters

NameTypeReq.Pos.PipelineDescription
-Name string ✓Required 1 –

The name of the SQL Database to be created.

-WorkspaceId guid ✓Required 0 –

The unique identifier of the workspace where the SQL Database will be created.

-Confirmalias: cf switch Named –

Prompts you for confirmation before running the cmdlet.

-Description string 2 –

An optional description for the SQL Database.

-NoWait switch Named –

If specified, the function will not wait for the operation to complete and will return immediately.

Default: False
-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: Kamil Nowinski