Call Azure Function From Power Automate Flow Using API Key

An Azure function exists to send emails. We are calling this function from Power Automate flow to send notification emails. The send email function in Azure was created to be used and reused by all systems for sending emails in one specific format.

Azure function API key

Step 1

Open the Function App in the Azure portal and go to API keys section. Copy the value of the API key from there. Here we are using _master for admin access, but you can also create a new host key.

Step 2

In your flow, use HTTP action. HTTP actions enable users to interact with APIs and send web requests that perform various operations, such as uploading and downloading data and files. Ref: https://docs.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/web

Step 3

Pass the API key you copied from Azure as query string with the URI of Azure function. Format: FunctionAPIUrl?code=APIKey