Commands › Power BI

Copy-PowerBITile

Power BI MicrosoftPowerBIMgmt Copy-*

Creates a copy of the specified Power BI tile and adds it to a Power BI dashboard.

Quick start script

# Copy-PowerBITile — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-PowerBIServiceAccount -ServicePrincipal -CertificateThumbprint $thumb -ApplicationId $appId -Tenant $tenantId

# 2. Run and inspect
Copy-PowerBITile -DashboardId <String> -TargetDashboardId <String> -TileId <String> | Format-List

# 3. Export for evidence / drift tracking
Copy-PowerBITile | Export-Clixml .\PowerBITile-$(Get-Date -Format yyyyMMdd).xml

Syntax — 3 parameter sets

MyWorkspace (Default)

Copy-PowerBITile -DashboardId <String> -TileId <String> -TargetDashboardId <String>
 [-TargetWorkspaceId <String>] [-TargetReportId <String>] [-TargetDatasetId <String>]
 [-PositionConflictAction <String>] [<CommonParameters>]

WorkspaceId

Copy-PowerBITile -WorkspaceId <Guid> -DashboardId <String> -TileId <String> -TargetDashboardId <String>
 [-TargetWorkspaceId <String>] [-TargetReportId <String>] [-TargetDatasetId <String>]
 [-PositionConflictAction <String>] [<CommonParameters>]

WorkspaceObject

Copy-PowerBITile -Workspace <Workspace> -DashboardId <String> -TileId <String> -TargetDashboardId <String>
 [-TargetWorkspaceId <String>] [-TargetReportId <String>] [-TargetDatasetId <String>]
 [-PositionConflictAction <String>] [<CommonParameters>]

Parameters (9)

ParameterTypeRequiredWhat it controls
-DashboardId String yes The ID of the dashboard where source tile is located.
-PositionConflictAction String Optional parameter for specifying the action in case of position conflict. The default is 'Tail'.
-TargetDashboardId String yes The ID of the dashboard where tile copy should be added.
-TargetDatasetId String Optional parameter to rebind the copied tile to a different dataset.
-TargetReportId String Optional parameter to rebind the copied tile to a different report.
-TargetWorkspaceId String Optional parameter for specifying the target workspace ID. Empty Guid (00000000-0000-0000-0000-000000000000) indicates 'My Workspace'. Empty string indicates tile will be copied within the same workspace.
-TileId String yes The ID of the tile that should be copied
-Workspace Workspace yes Workspace object, as returned by the Get-PowerBIWorkspace cmdlet, where the source dashboard is located.
-WorkspaceId Guid yes The ID of the workspace where the source dashboard is located. Empty Guid (00000000-0000-0000-0000-000000000000) indicates 'My Workspace'.

Reference facts derived from Microsoft documentation, © Microsoft, licensed MIT; restructured with original guidance by serv365.ai.