Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Help publishing PBIX files using REST API and service principal profile

Hi

I am developing a multi-tenant application. I am managing the tenants using service principal profiles.

each tenant has his own service principal profile.

The final step of the pipeline is to deploy the PBIX to the workspace on the client tenant.

I stored the PBIX file in a blob storage.

 

I want to publish this PBIX to a PBI worksapce using the REST API.

How can I do it? I am using PPU.

I followed this documantion and noticed that in order to publish a PBIX between 1GB-10GB I need premium capacity.

"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.

 

Under the assumption that my PBIX will be lager then 1GB, what other options do I have to import large .pbix files?

if it is not possible using PPU, Can I publish PBIX files smaller then 1GB which stored on a blob?

any examples? I review the documantion but I pretty uch lost...

I am adding the python function that I wrote.

 

Thank you, Tal

 

 

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)

 

 

 

1 REPLY 1
lbendlin
Super User
Super User

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?

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.