Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
6 | |
6 | |
3 | |
2 | |
2 |