Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Cant assign my workspace to a specific capacity when I am using the command Set-PowerBIWorkspace -Scope Organization -Id "<workspaceid" -CapacityId "<capacityid>".
It throws the following error:
Set-PowerBIWorkspace : Operation returned an invalid status code 'Unauthorized'
At line:1 char:1
+ Set-PowerBIWorkspace -Scope Organization -Id "bcbf1a72-7b1e-4fac-b16 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (Microsoft.Power...owerBIWorkspace:SetPowerBIWorkspace) [Set-PowerBIWorkspace], HttpOperationException
+ FullyQualifiedErrorId : Operation returned an invalid status code 'Unauthorized',Microsoft.PowerBI.Commands.Workspaces.SetPowerBIWorkspace
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Anonymous ,
According to the error message, it seems that you didn't have the sufficient privileges to do it. The administrator rights (such as Office 365 Global Administrator or Power BI Service Administrator) is necessary when you call this command. And it only support the workspaces in the new workspace experiences. Please review the following official documentation for more details.
Set-PowerBIWorkspace
Best regards.
Community Support Team_ Caitlyn