Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
Is there a Powershell API to change the name of an existing workspace in Power BI Service ?
Thanks in Advance,
Charline
Solved! Go to Solution.
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
Best Regards
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
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
Best Regards
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |