In this video we show how to create an App registration in Azure, assign permissions to the object to a Foundry resource and use this permission to invoke an agent from an HTTP request from Power Automate. This same concept can be applied if you're trying to call a Foundry agent from external platforms.
Agent call body
POST
https://{resource}.services.ai.azure.com/api/projects/proj-default/applications/{agent-name}/protocols/openai/responses?api-version=2025-11-15-preview
{
"input": [
{
"role": "user",
"content": "hello, which color is the sky in finland at 11am during winter"
}
]
}
Authentication call to get Bearer token
POST
https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/token
Content-Type application/x-www-form-urlencoded
client_id={123}&scope=https://ai.azure.com/.default&grant_t...{123}
Videos with other examples of app registration authentication:
Create planner plan:
• Power Automate: Create a new Plan with MS ...
Move emails in shared folders:
• Power Automate: Move emails out of shared ...
Follow me on Linkedin: / maria-graciela-martinez-865a758a
Follow Power GI on Linkedin: / power-gi
Power GI's website: https://powergi.net/