Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
Hey guys. I'm new to PBI (2 days in!) and I need some help using the API to suspend my PBI Embedded A1 Capacity. I want to do this as a back-end function from a web server (no user interaction). I've been testing the POSTs below with Postman....
When I do a POST to Suspend Capacity with this URL...
https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}/suspend?api-version=2017-10-01
"error": "invalid_grant",
"error_description": "AADSTS65001: The user or administrator has not consented to use the application with ID 'bla bla bla bla'.... Send an interactive authorization request for this user and resource".
"error": {
"code": "AuthorizationFailed",
"message": "The client '80d81297-xxxxxxxxxxx' with object id '80d81297-xxxxxxxxxxx' does not have authorization to perform action 'Microsoft.PowerBIDedicated/capacities/suspend/action' over scope '/subscriptions/3ae6d438-3b19-41ee-acf6-9c4cec5c33ce/resourceGroups/CIOPulse/providers/Microsoft.PowerBIDedicated/capacities/ciopulsepowerbi' or the scope is invalid. If access was recently granted, please refresh your credentials."
}
Solved! Go to Solution.
OK, I solved this by:
- Going into my Power BI Embedded Capacity.
- Clicking Access control (IAM).
- Assigning the Role, 'Owner', to my registered application.
If there's a better way, please let me know.
OK, I solved this by:
- Going into my Power BI Embedded Capacity.
- Clicking Access control (IAM).
- Assigning the Role, 'Owner', to my registered application.
If there's a better way, please let me know.
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
User | Count |
---|---|
9 | |
2 | |
2 | |
2 | |
2 |