Skip to main content

Notifications

Community site session details

Community site session details

Session Id : hPlKEnCq+Vtxs0+NpLQY8+
Power Apps - Power Apps Pro Dev & ISV
Suggested answer

HTTP with Entra ID connector - App user needs to type in Base URL and App ID

Like (0) ShareShare
ReportReport
Posted on 12 Dec 2024 00:43:58 by 27
My canvas app is using a Power Automate flow, which uses the HTTP with Entra ID connector (NOT the 'preapproved' one).

With this connector's action, an Azure Function is triggered, which gives me a response back that I return to the app.
 
 
 
The issue is that, when the users open the app for the first time, they are asked to provide the Application ID and Base URL of this Azure Function.
 
What makes it worse, is that I set up two such connectors which each trigger a different Azure Function, and it's impossible (see below) to determine which Azure Function's information the user needs to type into each prompt.



How could I avoid having the user type in this info?
 
 
 
Thanks in advance for any suggestions!!
 
 
 
  • Christopher5 Profile Picture
    27 on 12 Dec 2024 at 12:32:17
    HTTP with Entra ID connector - App user needs to type in Base URL and App ID
    @SaiRT14 thank you for your answer.

    This is how I have set it up:
     
    > I have set up an Enterprise Application with the specific Application Id d2ebd3a9-1ada-4480-8b2d-eac162716601(PowerPlatform-webcontentsv2-Connector). This seems to be the app Power Platform uses by design to make the API call.
    > Through the Azure Portal I have granted this new Enterprise Application the right to call my Azure Function.
     
    FYI - The connector HTTP with Entra ID only requires the Base URL and Application ID to be given, it does not ask for a secret nor the tenant ID.
     

    Does this description above change what you suggest?

    Users ARE able to use the app and the functions are called correctly. I just want to avoid the user having to give the Base URL and Application ID when they log into the app for the first time (see the attachment in my initial post).
  • bscarlavai33 Profile Picture
    583 Super User 2025 Season 1 on 12 Dec 2024 at 03:47:50
    HTTP with Entra ID connector - App user needs to type in Base URL and App ID
  • Suggested answer
    SaiRT14 Profile Picture
    1,966 Super User 2025 Season 1 on 12 Dec 2024 at 03:07:25
    HTTP with Entra ID connector - App user needs to type in Base URL and App ID
    pls try the following:
     
    Go to the Azure Portal and navigate to Azure Active Directory > App registrations. Click New registration: Name: Provide a name for the app (e.g., "Azure Function Caller"). Redirect URI: Leave blank for now. Note the Application (Client) ID and Directory (Tenant) ID.
     
    Under the app's settings, navigate to API Permissions. Click Add a permission > APIs my organization uses, and select your Azure Function's API or a relevant resource. Grant the required permissions (e.g., Function. ReadWrite if applicable). Click Grant admin consent to ensure all users inherit these permissions.
     
    Go to the Certificates & secrets section. Click New client secret, provide a description, and set an expiration period. Save the secret and copy its value. You will need it later.
     
    In Power Automate, go to Data > Connections and locate the HTTP with Azure AD connector. Edit the connection or create a new one: Base Resource URL: Provide the URL of your Azure Function App. Tenant ID: Use the Directory (Tenant) ID from your registered app. Client ID: Use the Application (Client) ID. Client Secret: Use the secret value you created earlier.
     
    In your Azure Function, ensure the Authentication/Authorization settings are configured to accept requests authenticated via Azure AD. Validate the incoming token from the HTTP request to confirm it's from the expected client.
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard
Loading started