Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Assign Description to Workspace

 

Certainly! Here’s a revised version of your message:


Hello everyone!

I am working on a script to create Power BI workspaces using PowerShell commands. I also want to update these workspaces to assign a Capacity ID and a description.

Currently, I’m using the Set-PowerBIWorkspace command, but I'm encountering the following error:

WARNING: Only preview workspaces are supported when -Scope Organization is specified.
 
When I remove -Scope Organization, I receive another error stating:
Set-PowerBIWorkspace : Set-PowerBIWorkspace is only supported when -Scope Organization is specified.
 

Is there a way to assign a description to workspaces programatically? 

Thank you in advance for your help!

  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi Anonymous ,

     

    Don't worry, "Only preview workspaces are supported when -Scope Organization is specified" just a warning. In my test the following PowerShell successfully changed the workspace. You'll need to refresh your workspace to see the changes.

     

    Set-PowerBIWorkspace -Scope Organization -Id "3244f1c1-01cf-457f-9383-6035e4950fdc" -Name "Test Name" -Description "Test Description"

     

     

     

    Best regards,

    Mengmeng Li

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    Don't worry, "Only preview workspaces are supported when -Scope Organization is specified" just a warning. In my test the following PowerShell successfully changed the workspace. You'll need to refresh your workspace to see the changes.

     

    Set-PowerBIWorkspace -Scope Organization -Id "3244f1c1-01cf-457f-9383-6035e4950fdc" -Name "Test Name" -Description "Test Description"

     

     

     

    Best regards,

    Mengmeng Li