FabricTools v0.33.0 Public Preview

Import-FabricItem

Imports items using the Power BI Project format (PBIP) into a Fabric workspace from a specified file system source.

Syntax

Import-FabricItem [[-path] <string>] [[-workspaceId] <guid>] [[-filter] <string>]
 [[-fileOverrides] <hashtable>] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

The Import-FabricItem function imports items using the Power BI Project format (PBIP) into a Fabric workspace from a specified file system source. It supports multiple aliases for flexibility. The function handles the import of datasets and reports, ensuring that the correct item type is used and that the items are created or updated as necessary.

Examples

Example 1

This example imports PBIP files from the 'C:\PBIPFiles' folder into the Fabric workspace with ID '12345'. It only searches for PBIP files in the 'C:\PBIPFiles\Reports' folder.

Import-FabricItem -path 'C:\PBIPFiles' -workspaceId '12345' -filter 'C:\PBIPFiles\Reports'

Parameters

NameTypeReq.Pos.PipelineDescription
-Confirmalias: cf switch Named –

Prompts you for confirmation before running the cmdlet.

-fileOverrides hashtable 3 –

This parameter let's you override a PBIP file without altering the local file.

-filter string 2 –

A filter to limit the search for PBIP files to specific folders.

-path string 0 –

The path to the PBIP files. Default value is '.\pbipOutput'.

Default: .\pbipOutput
-WhatIfalias: wi switch Named –

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

-workspaceId guid 1 –

The ID of the Fabric workspace.

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

Notes

This function requires the Invoke-FabricRestMethod function to be available in the current session.

Author: Rui Romano