March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I am trying to automate the creation of PowerBI Workspaces.
I am able to create a new workspace:
$body = '{"name": "' + $PowerBIWorkspaceName + '"}'
$PowerBIWorkspace = Invoke-PowerBIRestMethod -Url 'groups' -Method POST -Body $body | ConvertFrom-Json
But I would like to set the description of the Workspace as well.
If I read Groups - Create Group - REST API (Power BI Power BI REST APIs) | Microsoft Docs - I can only see name in the request.
And I can't figure out if I can set the description after the creation.
Any ideas?
Solved! Go to Solution.
Unfortunately it doesn't seem to be possible to achieve with a service principal.
When changing description this API is used:
Admin - Groups UpdateGroupAsAdmin - REST API (Power BI Power BI REST APIs) | Microsoft Docs
And that API is not supported when using a service principal:
Unfortunately it doesn't seem to be possible to achieve with a service principal.
When changing description this API is used:
Admin - Groups UpdateGroupAsAdmin - REST API (Power BI Power BI REST APIs) | Microsoft Docs
And that API is not supported when using a service principal:
Hi
I hope this REST API supports only Name as a body parameter for workspace and no placeholder for description. We need to add them manually.
Thanks
Hari
Hi Hari,
Okay, so it's not possible to for example set the description after the Workspace has been created?
/Kim
You can add the description manually by going to Power BI service workspace.
Thanks
Hari
Yes I know, but I am trying to automate PowerBI workspaces 🙂
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
32 | |
24 | |
12 | |
11 | |
9 |
User | Count |
---|---|
47 | |
46 | |
23 | |
12 | |
9 |