There are multiple ways to do create a custom connector for Logic Apps (CLI, Postman collection, OpenAPI definition). For this project we will demo use of the Custom Connector Wizard in the Azure Portal. This custom Power BI connector will refresh a Power BI Dataset from a specified workspace
Prerequisites:
Steps:
After you select "Register", you will receive a confirmation prompt including your application ID and secret. Make sure you save these in a safe location.
Once the connector has been deployed, select go to resource and then select the "Edit" button
(Now select the Swagger Editor again and notice the action has been populated!)
Other settings such as uploading an icon image and specifying a description are optional, so from here, make sure you select "HTTPS" under General Information and use api.powerbi.com as a host for now and then click on the "Security" tab so that we can configure the authentication type.
- Scope: openid
- a redirect URL will be generated upon save. You will need to copy this and replace the original redirect URL from when we registered the app in the Azure Portal
Now go to your "Definition" tab of your custom logic app. You may notice one or more actions or references may display a warning. This is most likely due to a type or something similar hasn’t been defined. These can be ignored for now. Make sure you have selected the desired action. In this case "Datasets_RefreshDatasetInGroup"
Once you scroll down and see that validation has succeeded just click the "Update connector" in the top wizard menu and your new Custom Connector is ready to be used in a Logic App.
To add to a Logic App simply click the "+" icon in the Logic App Designer to add an action and look under the "Custom" tab to find your new Custom Connector.
Additional Information:
Custom connectors overview | Microsoft Docs
Create a custom connector in Azure Logic Apps | Microsoft Docs for ms doc on how to
Example custom connectors | Microsoft Docs for examples
Create an Azure Active Directory tenant to use with Power BI embedded - Power BI | Microsoft Docs - if you don’t have active directory
praveensri/LogicAppCustomConnector: Azure Logic App Custom Built in connectors (github.com)
*note that depending on your Azure Active Directory setup, your system admin may need to grant administrator permissions to use this connector*
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.