Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I'm trying to assign Capacity to a workspace which is already created using a ServicePrincipal. I have provided all necessary API permissions and Capacity admin role to the SP. But still, It says Unauthorized error. Can someone help me here? Not sure what i'm missing here
Solved! Go to Solution.
We were able to resolve this through Invoke-RestAPI method using AssignGroup URI.
By default, When the SP creates a workspace it would be the admin. with REST API is also, it's not successful.
Can you explain a bit more what you are doing, which code you are using and which error messages you get?
Do you try to assign the capacity with REST API? Is the service principal also added to the workspace as an admin?
We were able to resolve this through Invoke-RestAPI method using AssignGroup URI.
User | Count |
---|---|
33 | |
14 | |
6 | |
3 | |
2 |
User | Count |
---|---|
39 | |
22 | |
11 | |
7 | |
6 |