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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kimlaurits
Frequent Visitor

Invoke-PowerBIRestMethod - description of Workspace

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?

1 ACCEPTED SOLUTION
kimlaurits
Frequent Visitor

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:

https://docs.microsoft.com/en-us/power-bi/enterprise/read-only-apis-service-principal-authentication...

 

View solution in original post

5 REPLIES 5
kimlaurits
Frequent Visitor

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:

https://docs.microsoft.com/en-us/power-bi/enterprise/read-only-apis-service-principal-authentication...

 

Hariharan_R
Solution Sage
Solution Sage

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 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors