<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Deploy dataset to multiple workspaces with script in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Deploy-dataset-to-multiple-workspaces-with-script/m-p/3415018#M44263</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can follow the steps below to get it:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Make sure that the XMLA endpoint is enabled for read/write operations in the Power BI Admin portal.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_0-1693896351463.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/964562iA1CB1DFB4F2108A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_0-1693896351463.png" alt="vyiruanmsft_0-1693896351463.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Use a tool like SQL Server Management Studio (SSMS), the open-source Tabular Editor, or script with Tabular Model Scripting Language (TMSL) to connect to the XMLA endpoint of the workspace that contains the dataset you want to deploy.&lt;/LI&gt;
&lt;LI&gt;Use the tool to create a backup of the dataset.&lt;/LI&gt;
&lt;LI&gt;Connect to the XMLA endpoint of each workspace you want to deploy the dataset to.&lt;/LI&gt;
&lt;LI&gt;Use the tool to restore the backup of the dataset to each workspace.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_1-1693896639183.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/964563i57956BD0204D1BC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_1-1693896639183.png" alt="vyiruanmsft_1-1693896639183.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;In addition, you can refer the following links to get it.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/enterprise/service-premium-connect-tools" target="_blank"&gt;Dataset connectivity and management with the XMLA endpoint in Power BI - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/enterprise/service-premium-backup-restore-dataset" target="_blank"&gt;Backup and restore Power BI Premium datasets - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://michalmolka.medium.com/power-bi-backup-and-restore-datasets-f1ab490bcff4" target="_blank"&gt;Power BI — backup and restore datasets | by Michal Molka | Medium&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2023 06:54:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-09-05T06:54:19Z</dc:date>
    <item>
      <title>Deploy dataset to multiple workspaces with script</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Deploy-dataset-to-multiple-workspaces-with-script/m-p/3404840#M44157</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a master dataset that I would like to copy, deploy to multiple workspaces and change a dataset paramenter all with a script. From what I can tell, I should be able to do this with the XMLA endpoint, Is this something I can do with Tabluar editors advanced scripting?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't found any good examples of this or alternative ways to do it. Any advice would be greatly appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 15:59:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Deploy-dataset-to-multiple-workspaces-with-script/m-p/3404840#M44157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-29T15:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy dataset to multiple workspaces with script</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Deploy-dataset-to-multiple-workspaces-with-script/m-p/3408092#M44191</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can use &lt;STRONG&gt;PowerShell&lt;/STRONG&gt; scripts to deploy a Power BI dataset to multiple workspaces. &lt;/SPAN&gt;Here is an example script that imports a dataset to multiple workspaces:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/64349929/powershell-script-that-automatically-uploads-powerbi-report-to-list-of-workspace" target="_blank"&gt;PowerShell script that automatically uploads PowerBI report to list of Workspaces - Stack Overflow&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Import-Module MicrosoftPowerBIMgmt

$oldReportName = "Fancy Report"
$pbixFilePath = "C:\Power BI\Fancy Report.pbix"

$username = "user@example.com"
$password = "P@ssw0rd" | ConvertTo-SecureString -asPlainText -Force

$credential = New-Object System.Management.Automation.PSCredential($username, $password)

Connect-PowerBIServiceAccount -Credential $credential | Out-Null

# -All - Returns all results, not only top 100
$workspaces = Get-PowerBIWorkspace -All -Scope Organization -Include All

foreach($workspace in $workspaces) {

  $report = Get-PowerBIReport -WorkspaceId $workspace.Id -Scope Organization -Name $oldReportName

  if ($report) {
    Write-Host "Report $oldReportName found in workspace $($workspace.Name)..."
    New-PowerBIReport -Path $pbixFilePath -Workspace $workspace -ConflictAction CreateOrOverwrite
  }

}

Disconnect-PowerBIServiceAccoun&lt;/LI-CODE&gt;
&lt;P&gt;&lt;A href="https://powerofbi.org/2021/01/27/powershell-script-to-publish-power-bi-reports/" target="_blank"&gt;PowerShell script to publish Power BI reports into multiple tenants - Power of Business Intelligence (powerofbi.org)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Related Cmdlet official documentations:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/powershell/module/microsoftpowerbimgmt.workspaces/get-powerbiworkspace?view=powerbi-ps&amp;amp;viewFallbackFrom=powerbi-ps-" target="_blank"&gt;Get-PowerBIWorkspace (MicrosoftPowerBIMgmt.Workspaces) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/powershell/module/microsoftpowerbimgmt.reports/new-powerbireport?view=powerbi-ps" target="_blank"&gt;New-PowerBIReport (MicrosoftPowerBIMgmt.Reports) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 07:04:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Deploy-dataset-to-multiple-workspaces-with-script/m-p/3408092#M44191</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-31T07:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy dataset to multiple workspaces with script</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Deploy-dataset-to-multiple-workspaces-with-script/m-p/3409573#M44201</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;thank you for your response, when I try to push via the Rest api I get an error becasue my dataset it too big. This is way I wanted to use the XMLA endpoint.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to use the Rest API for a large dataset?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 18:42:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Deploy-dataset-to-multiple-workspaces-with-script/m-p/3409573#M44201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-31T18:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy dataset to multiple workspaces with script</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Deploy-dataset-to-multiple-workspaces-with-script/m-p/3415018#M44263</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can follow the steps below to get it:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Make sure that the XMLA endpoint is enabled for read/write operations in the Power BI Admin portal.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_0-1693896351463.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/964562iA1CB1DFB4F2108A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_0-1693896351463.png" alt="vyiruanmsft_0-1693896351463.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Use a tool like SQL Server Management Studio (SSMS), the open-source Tabular Editor, or script with Tabular Model Scripting Language (TMSL) to connect to the XMLA endpoint of the workspace that contains the dataset you want to deploy.&lt;/LI&gt;
&lt;LI&gt;Use the tool to create a backup of the dataset.&lt;/LI&gt;
&lt;LI&gt;Connect to the XMLA endpoint of each workspace you want to deploy the dataset to.&lt;/LI&gt;
&lt;LI&gt;Use the tool to restore the backup of the dataset to each workspace.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_1-1693896639183.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/964563i57956BD0204D1BC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_1-1693896639183.png" alt="vyiruanmsft_1-1693896639183.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;In addition, you can refer the following links to get it.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/enterprise/service-premium-connect-tools" target="_blank"&gt;Dataset connectivity and management with the XMLA endpoint in Power BI - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/enterprise/service-premium-backup-restore-dataset" target="_blank"&gt;Backup and restore Power BI Premium datasets - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://michalmolka.medium.com/power-bi-backup-and-restore-datasets-f1ab490bcff4" target="_blank"&gt;Power BI — backup and restore datasets | by Michal Molka | Medium&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 06:54:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Deploy-dataset-to-multiple-workspaces-with-script/m-p/3415018#M44263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-05T06:54:19Z</dc:date>
    </item>
  </channel>
</rss>

