Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Db111
Frequent Visitor

What is the Logic App audience name for Power Bi fabric

1 ACCEPTED SOLUTION

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"
    ]
  }
}

 

View solution in original post

10 REPLIES 10
v-nmadadi-msft
Community Support
Community Support

Hi @Db111 ,
Could you please confirm if your issue has been resolved If so, sharing the details here would be helpful for other community members who may have similar feedback.

If we don’t hear back, we’ll go ahead and close this thread. For any further discussions or questions, please start a new thread in the Microsoft Fabric Community Forum  we’ll be happy to assist.

Thank you

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"
    ]
  }
}

 

v-nmadadi-msft
Community Support
Community Support

Hi @Db111,

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the community members for the issue worked. If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Thanks and regards

v-nmadadi-msft
Community Support
Community Support

Hi @Db111,

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If our responses has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.


Thank you.

v-nmadadi-msft
Community Support
Community Support

Hi @Db111,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

Db111
Frequent Visitor

Thanks but can you confirm what audience name I should use if it is a generic one for Power BI, or alternatively if it is unique per environment how I should ascertain it?

Hi @Db111,
Please try using https://management.azure.com/
your Logic App will request an access token appropriate for Azure Management API operations, resolving the authentication error you're encountering.

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

v-nmadadi-msft
Community Support
Community Support

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

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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.