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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Charline_74
Resolver I
Resolver I

API Power BI to change the name of a workspace

Hello, 

 

Is there a Powershell API to change the name of an existing workspace in Power BI Service ?

 

Thanks in Advance, 

 

Charline 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Charline_74 ,

Please refer the following link to update the workspace name by using Powershell:

Renaming an existing workspace

# Set workspace properties
$workspace1.Name = "Dilbert Takes Over"
$workspace1.Description = "He is always causing trouble"
$workspace1.CapacityId = "00000000-0000-0000-0000-000000000000"
Set-PowerBIWorkspace -Scope Organization -Workspace $workspace1
 
# Grab pointer to object
$workspace1 = Get-PowerBIWorkspace -Scope Organization -Filter "name eq 'Dilbert Takes Over'"
$workspace1

yingyinr_1-1669701346585.png

Best Regards

View solution in original post

3 REPLIES 3
Charline_74
Resolver I
Resolver I

Hi @lbendlin

Thank you for your help 🙂 

Do you know how to use it?

I tried this script but it doesn't work

$body = @{
    updateDetails = @(
           @{
                name = "WKS Developpment Delivery"
            }
        )
    }

Invoke-PowerBIRestMethod -Url "https://api.powerbi.com/v1.0/myorg/admin/groups/cf9b95c8-2ba2-4089-9ba1-1c3611c9071d" -Method Patch -Body $body
Anonymous
Not applicable

Hi @Charline_74 ,

Please refer the following link to update the workspace name by using Powershell:

Renaming an existing workspace

# Set workspace properties
$workspace1.Name = "Dilbert Takes Over"
$workspace1.Description = "He is always causing trouble"
$workspace1.CapacityId = "00000000-0000-0000-0000-000000000000"
Set-PowerBIWorkspace -Scope Organization -Workspace $workspace1
 
# Grab pointer to object
$workspace1 = Get-PowerBIWorkspace -Scope Organization -Filter "name eq 'Dilbert Takes Over'"
$workspace1

yingyinr_1-1669701346585.png

Best Regards

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.