Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I am in dilemma whether to keep on using Power BI rest API calls in updating Fabric workspace.
What's future of Power BI Rest API after launching of Fabric Rest API?
Solved! Go to Solution.
The Power BI REST API and the Microsoft Fabric REST API serve different purposes and are likely to coexist in various capacities. Here’s a brief overview to help with your decision:
Functionality: If your operations are heavily reliant on Power BI-specific features and integrations, the Power BI REST API might still be your best choice. If you’re looking for broader integration with Microsoft’s data ecosystem, exploring the Fabric REST API could be beneficial.
Compatibility: Check if the Fabric REST API supports all the functionalities you currently use with the Power BI REST API. As Fabric API matures, it might offer new features or improved integrations that could make it more suitable for your needs.
Future-Proofing: If you’re planning for long-term solutions and Fabric’s capabilities align with your future requirements, transitioning to the Fabric REST API might be a strategic move.
Support and Updates: Stay informed about updates from Microsoft regarding both APIs to ensure you’re leveraging the best tools for your needs.
Ultimately, the choice depends on your specific requirements and how each API aligns with your long-term strategy.
Scratch that.
It works;
We can develop in PBIP model locally, and publish a PBIP semantic model direct from source code using the SemanticModel endpoints;
https://learn.microsoft.com/en-us/rest/api/fabric/semanticmodel/items/create-semantic-model?tabs=HTT...
The model needs to be compiled into a post body with inline base64 encoded elements.
This opens up a fairly simple github flow development lifecycle.
I'm using python;
def get_pbip_deploy_body_payload(project_root, model_name, *args, **kwargs):
semantic_model = os.path.join(project_root, f"{model_name}.SemanticModel")
files = [
"definition/database.tmdl",
"definition/model.tmdl",
"definition.pbism",
"diagramLayout.json",
".platform",
]
tables_path = f"{os.path.join(semantic_model,'definition', 'tables')}/*.tmdl"
for file in glob.glob(tables_path):
file_path = f"definition/tables/{os.path.basename(file)}"
files.append(file_path)
pp(files)
body = {
"displayName": model_name,
"definition": {
"parts":[]
}
}
for file in files:
with open(os.path.join(semantic_model, file), mode='rt') as file_data:
text = file_data.read()
inlineb64 = b64encode(text.encode('utf-8')).decode('utf-8')
body["definition"]["parts"].append(
{
"path": file,
"payload": inlineb64,
"payloadType": "InlineBase64"
}
)
return body
I am trying to solve the exact same problem now! I also get deployment of semantic models to work fine, but the crux is getting reports part right, since there are a whole load of files which are nested, and the API body's content then become very variable depending on the size of the PBIP folder.
Have you had success with this?
Best regards
Hi there,
Sorry, no, I've not tried to deploy reports programmatically yet. I'm saving that for the future!
Actually I'm waiting for them to release the report definition as tmdl rather than json.
Good luck though.
Hi,
A follow question to this...
Is it correct that the Fabric API requires Fabric capacity?
We're currently able to use the PowerBi API with PPU license workspaces.
However I was experimenting with using the CreateItem endpoint to publish a semantic model and I'm getting a 401 unauthorised response. Not sure whether I've done something wrong or it's the Fabric capacity limitation.
The Power BI REST API and the Microsoft Fabric REST API serve different purposes and are likely to coexist in various capacities. Here’s a brief overview to help with your decision:
Functionality: If your operations are heavily reliant on Power BI-specific features and integrations, the Power BI REST API might still be your best choice. If you’re looking for broader integration with Microsoft’s data ecosystem, exploring the Fabric REST API could be beneficial.
Compatibility: Check if the Fabric REST API supports all the functionalities you currently use with the Power BI REST API. As Fabric API matures, it might offer new features or improved integrations that could make it more suitable for your needs.
Future-Proofing: If you’re planning for long-term solutions and Fabric’s capabilities align with your future requirements, transitioning to the Fabric REST API might be a strategic move.
Support and Updates: Stay informed about updates from Microsoft regarding both APIs to ensure you’re leveraging the best tools for your needs.
Ultimately, the choice depends on your specific requirements and how each API aligns with your long-term strategy.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
8 | |
4 | |
2 | |
2 |
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
2 |