<?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 Help publishing PBIX files using REST API and service principal profile in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Help-publishing-PBIX-files-using-REST-API-and-service-principal/m-p/2637399#M37333</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am developing a multi-tenant application. I am managing the tenants using service principal profiles.&lt;/P&gt;&lt;P&gt;each tenant has his own service principal profile.&lt;/P&gt;&lt;P&gt;The final step of the pipeline is to deploy the PBIX to the workspace on the client tenant.&lt;/P&gt;&lt;P&gt;I stored the PBIX file in a blob storage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to publish this PBIX to a PBI worksapce using the REST API.&lt;/P&gt;&lt;P&gt;How can I do it? I am using PPU.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/imports/post-import-in-group" target="_self"&gt;I followed this documantion&amp;nbsp;&lt;/A&gt;and noticed that in order to publish a PBIX between 1GB-10GB I need premium capacity.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"To import large Power BI .pbix files that are between 1 GB and 10 GB in size, see Create Temporary Upload Location In Group. This is only supported for Premium capacity workspaces.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Under the assumption that my PBIX will be lager then 1GB, what other options do I have to import large .pbix files?&lt;/P&gt;&lt;P&gt;if it is not possible using PPU, Can I publish PBIX files smaller then 1GB which stored on a blob?&lt;/P&gt;&lt;P&gt;any examples? I review the documantion but I pretty uch lost...&lt;/P&gt;&lt;P&gt;I am adding the python function that I wrote.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, Tal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def PostPBIXInWorkspace(WorkspaceID,token,DatasetDisplayName):
    url = f'https://api.powerbi.com/v1.0/myorg/groups/{WorkspaceID}/imports?datasetDisplayName={DatasetDisplayName}'
    fileUrl='...blob url...'

    headers = {"Authorization": f"Bearer {token}"}

    payload =   {
                  "fileUrl": fileUrl
                 }
    response = requests.request("POST", url, headers=headers, data=payload)
    response = json.loads(response.txt)
    print(response)
    return (response)
    return (response)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jul 2022 00:05:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-07-14T00:05:41Z</dc:date>
    <item>
      <title>Help publishing PBIX files using REST API and service principal profile</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Help-publishing-PBIX-files-using-REST-API-and-service-principal/m-p/2637399#M37333</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am developing a multi-tenant application. I am managing the tenants using service principal profiles.&lt;/P&gt;&lt;P&gt;each tenant has his own service principal profile.&lt;/P&gt;&lt;P&gt;The final step of the pipeline is to deploy the PBIX to the workspace on the client tenant.&lt;/P&gt;&lt;P&gt;I stored the PBIX file in a blob storage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to publish this PBIX to a PBI worksapce using the REST API.&lt;/P&gt;&lt;P&gt;How can I do it? I am using PPU.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/imports/post-import-in-group" target="_self"&gt;I followed this documantion&amp;nbsp;&lt;/A&gt;and noticed that in order to publish a PBIX between 1GB-10GB I need premium capacity.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"To import large Power BI .pbix files that are between 1 GB and 10 GB in size, see Create Temporary Upload Location In Group. This is only supported for Premium capacity workspaces.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Under the assumption that my PBIX will be lager then 1GB, what other options do I have to import large .pbix files?&lt;/P&gt;&lt;P&gt;if it is not possible using PPU, Can I publish PBIX files smaller then 1GB which stored on a blob?&lt;/P&gt;&lt;P&gt;any examples? I review the documantion but I pretty uch lost...&lt;/P&gt;&lt;P&gt;I am adding the python function that I wrote.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, Tal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def PostPBIXInWorkspace(WorkspaceID,token,DatasetDisplayName):
    url = f'https://api.powerbi.com/v1.0/myorg/groups/{WorkspaceID}/imports?datasetDisplayName={DatasetDisplayName}'
    fileUrl='...blob url...'

    headers = {"Authorization": f"Bearer {token}"}

    payload =   {
                  "fileUrl": fileUrl
                 }
    response = requests.request("POST", url, headers=headers, data=payload)
    response = json.loads(response.txt)
    print(response)
    return (response)
    return (response)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 00:05:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Help-publishing-PBIX-files-using-REST-API-and-service-principal/m-p/2637399#M37333</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-14T00:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help publishing PBIX files using REST API and service principal profile</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Help-publishing-PBIX-files-using-REST-API-and-service-principal/m-p/2642748#M37385</link>
      <description>&lt;P&gt;On a premium capacity there is a similar limit (10GB) that can be worked around by using incremental refresh and bootstrapping partitions. Is that something you could consider?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2022 23:38:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Help-publishing-PBIX-files-using-REST-API-and-service-principal/m-p/2642748#M37385</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-07-16T23:38:18Z</dc:date>
    </item>
  </channel>
</rss>

