Compartir a través de


Copy-PowerBIReport

Creates a copy of the specified Power BI report.

Sintaxis

Id (Es el valor predeterminado).

Copy-PowerBIReport
    -Name <String>
    -Id <Guid>
    [-WorkspaceId <String>]
    [-Workspace <Workspace>]
    [-TargetWorkspaceId <String>]
    [-TargetDatasetId <String>]
    [<CommonParameters>]

WorkspaceObject

Copy-PowerBIReport
    -Report <Report>
    [-Name <String>]
    [-WorkspaceId <String>]
    [-Workspace <Workspace>]
    [-TargetWorkspaceId <String>]
    [-TargetDatasetId <String>]
    [<CommonParameters>]

Description

Creates a copy of the specified Power BI report in the same Power BI workspace or in a different workspace and rebinds the report to a referenced dataset in the target workspace.

Ejemplos

Example 1

PS C:\> Copy-PowerBIReport -Name "Report Copy" -Id "30ca8f24-f628-45f7-a5ac-540c95e9b5e6" -WorkspaceId "00000000-0000-0000-0000-000000000000" -TargetWorkspaceId "6439d4d4-18c4-4762-b755-1f957d55383e" -TargetDatasetId "74f6adb5-93eb-49d8-918c-6df248cb73dd"

Creates a copy of the report with ID "30ca8f24-f628-45f7-a5ac-540c95e9b5e6" from 'My Workspace' in the target workspace with ID "6439d4d4-18c4-4762-b755-1f957d55383e", assigns the report copy the name "Report Copy", and binds it to the dataset with the ID "74f6adb5-93eb-49d8-918c-6df248cb73dd".

Example 2

PS C:\> Copy-PowerBIReport -Name "Report Copy" -Id "bd200f64-46f1-4f82-b09f-c7fd6818d67c" -WorkspaceId "6439d4d4-18c4-4762-b755-1f957d55383e" -TargetWorkspaceId "00000000-0000-0000-0000-000000000000" -TargetDatasetId "1b46e4dc-1299-425b-97aa-c10d51f82a06"

Creates a copy of the report with ID "bd200f64-46f1-4f82-b09f-c7fd6818d67c"" from the workspace with the ID "6439d4d4-18c4-4762-b755-1f957d55383e" in 'My Workspace' as the target workspace, assigns the report copy the name "Report Copy", and binds it to the dataset with the ID "1b46e4dc-1299-425b-97aa-c10d51f82a06".

Example 3

PS C:\> Copy-PowerBIReport -Name "Report Copy" -Id "30ca8f24-f628-45f7-a5ac-540c95e9b5e6"

Creates a copy of the report with ID "30ca8f24-f628-45f7-a5ac-540c95e9b5e6" in the same workspace, assigns the report copy the name "Report Copy", and binds it to the dataset that the original report is associated with.

Parámetros

-Id

The ID of the original report to copy.

Propiedades del parámetro

Tipo:Guid
Valor predeterminado:None
Admite caracteres comodín:False
DontShow:False
Alias:ReportId

Conjuntos de parámetros

Id
Posición:Named
Mandatory:True
Valor de la canalización:False
Valor de la canalización por nombre de propiedad:True
Valor de los argumentos restantes:False

-Name

The new report name that will be assigned to the copied report.

Propiedades del parámetro

Tipo:String
Valor predeterminado:None
Admite caracteres comodín:False
DontShow:False

Conjuntos de parámetros

Id
Posición:Named
Mandatory:True
Valor de la canalización:False
Valor de la canalización por nombre de propiedad:False
Valor de los argumentos restantes:False

-Report

The original report object, as obtained by using the Get-PowerBIReport cmdlet.

Propiedades del parámetro

Tipo:Report
Valor predeterminado:None
Admite caracteres comodín:False
DontShow:False

Conjuntos de parámetros

WorkspaceObject
Posición:Named
Mandatory:True
Valor de la canalización:False
Valor de la canalización por nombre de propiedad:False
Valor de los argumentos restantes:False

-TargetDatasetId

Optional parameter for specifying the target associated dataset ID. If empty, the new report will be associated with the same dataset as the source report.

Propiedades del parámetro

Tipo:String
Valor predeterminado:None
Admite caracteres comodín:False
DontShow:False
Alias:TargetModelId

Conjuntos de parámetros

(All)
Posición:Named
Mandatory:False
Valor de la canalización:False
Valor de la canalización por nombre de propiedad:False
Valor de los argumentos restantes:False

-TargetWorkspaceId

The ID of the target workspace. Empty Guid (00000000-0000-0000-0000-000000000000) indicates 'My Workspace'. Empty string indicates new report will be copied within the same workspace as the source report.

Propiedades del parámetro

Tipo:String
Valor predeterminado:None
Admite caracteres comodín:False
DontShow:False
Alias:TargetGroupId

Conjuntos de parámetros

(All)
Posición:Named
Mandatory:False
Valor de la canalización:False
Valor de la canalización por nombre de propiedad:False
Valor de los argumentos restantes:False

-Workspace

The workspace object, as obtained by using the Get-PowerBIWorkspace cmdlets, where the original report is located. If empty, source workspace is 'My Workspace'.

Propiedades del parámetro

Tipo:Workspace
Valor predeterminado:None
Admite caracteres comodín:False
DontShow:False
Alias:Group

Conjuntos de parámetros

(All)
Posición:Named
Mandatory:False
Valor de la canalización:False
Valor de la canalización por nombre de propiedad:False
Valor de los argumentos restantes:False

-WorkspaceId

The ID of the workspace where the original report is located. If empty, source workspace is 'My Workspace'.

Propiedades del parámetro

Tipo:String
Valor predeterminado:None
Admite caracteres comodín:False
DontShow:False
Alias:GroupId

Conjuntos de parámetros

(All)
Posición:Named
Mandatory:False
Valor de la canalización:False
Valor de la canalización por nombre de propiedad:False
Valor de los argumentos restantes:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Entradas

None

Salidas

System.Object