Forum Discussion
What is the Logic App audience name for Power Bi fabric
- 1 year ago
You can't do the via HTTP but need to use the in built Azure resource manager 'Invoke resource operation' and set the action name to e.g. resume
"type": "ApiConnection","inputs": {"host": {"connection": {"referenceName": "arm"}},"method": "post","path": "/subscriptions/@{encodeURIComponent('xxxx-xxxx-xxxxx-xxxexxxxx')}/resourcegroups/@{encodeURIComponent('YourFabric')}/providers/@{encodeURIComponent('Microsoft.Fabric')}/@{encodeURIComponent('capacities/fabric1')}/@{encodeURIComponent('resume')}","queries": {"x-ms-api-version": "2023-11-01"}},"runAfter": {"For_each": ["Succeeded","Failed"]}}
Hi Db111,
Thanks for reaching out to the Microsoft fabric community forum.
I’ve reviewed the referenced article, and it primarily discusses automating artifact creation using the REST API. However, I’d like to better understand your specific requirement. Could you clarify which aspect you believe is missing or where you think additional data is needed? This will help ensure we address your request accurately.
The referenced article explores different methods of utilizing REST APIs within Fabric. It covers managing workspaces, assigning permissions, creating and executing data pipelines, and handling workspace operations such as creation and deletion. Additionally, it discusses how to pause and resume Fabric activities using the management API, which is particularly useful for users with active Fabric capacities beyond the trial period.
If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thanks and Regards
Sorry - here is more detail. The Logic App is attempting to connect to the capacity via the App Registration method as described in the article but get:
Http request failed as there is an error getting AD OAuth token: 'AADSTS500011: The resource principal named https://login.microsoftonline.com was not found in the tenant
Here it the Logic App code where I have guessed the required 'audience' parameter (which appears to be wrong based on the error message)
{
"type": "Http",
"inputs": {
"uri": "https://management.azure.com/subscriptions/[oursubscription]/resourceGroups/[ourFabricRG]/providers/Microsoft.Fabric/capacities/[our fabric name]/resume?api-version=2023-11-01",
"method": "POST",
"authentication": {
"type": "ActiveDirectoryOAuth",
"tenant": "our tenant id",
"audience": "https://login.microsoftonline.com",
"clientId": "app registration id",
"secret": "secret"
}
}
Thanks
- Anonymous1 year agoNot applicable
Hi Db111,
Thanks for reaching out to the Microsoft fabric community forum.
To resolve this issue, start by verifying that the application (resource principal) is properly registered in your Microsoft Entra ID tenant. Navigate to the Azure portal, go to Microsoft Entra ID > Enterprise Applications, and ensure the application is listed and correctly configured. Next, confirm that the resource application has been consented to by an administrator or a user in the tenant by checking its permissions and consent status under Microsoft Entra ID > Enterprise Applications. Additionally, verify that the resource URL in the error message matches the provisioned resource application in your tenant ID and ensure that the authentication request is sent using the correct resource URL. Lastly, check that the tenant ID in the error message matches your own and confirm that the authentication request is directed to the correct Microsoft Entra ID tenant.
This document contains more details to the error you are receiving: Error AADSTS500011 - Resource Principal Not Found | Microsoft Learn
If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thanks and Regards