Azure Function wrapper serving Agent AI Foundry agents.
You need to create your agent using the Agent AI Foundry Agent Service. To create an agent via SDK or integrate it with a tool, check the tool use patterns in agent-ai-foundry-tool-use
The link only supports single-turn conversations and does not handle threaded interactions. The functions provide two endpoints: one for creating a chat
and another for continuing a conversation with an agent using a thread ID
.
💡 Integrate Custom Azure AI Agents with CoPilot Studio and M365 CoPilot
Use the Azure Functions Core Tools to publish your Python function app:
func azure functionapp publish <your-func-app-name> --python
Tips for environments that don’t allow using access keys to authenticate to the storage account (AzureWebJobsStorage)
func azure functionapp publish <your-func-app-name> --python
func pack --output functionapp.zip
Note: The Flex Consumption plan doesn't support zip deployment. See the Azure Functions storage considerations for more details on creating an app without Azure Files.
To use Managed Identity for accessing the storage account without an access key, follow these steps:
- Navigate to the Authentication tab during Create Function App in the Azure Portal.
- Select Managed Identity and System-assigned managed identity.
Set the following environment variables for your Azure Function App:
AzureWebJobsStorage__blobServiceUri
:https://<your-storage-account-name>.blob.core.windows.net
AzureWebJobsStorage__credential
:managedidentity
AzureWebJobsStorage__queueServiceUri
:https://<your-storage-account-name>.queue.core.windows.net
AzureWebJobsStorage__tableServiceUri
:https://<your-storage-account-name>.table.core.windows.net