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
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.