Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Running an Agent on Azure requires:
- Creating and configuring an Agent
- Deploying your agent to Azure
- Optionally deploying your agent to Teams or M365
This document covers deploying an agent you created to Azure and Teams or M365.
If you haven't created an agent yet, start with Create an agent with the Agents SDK.
Publish your agent to a web app
An SDK agent is a webapp. Any of the methods you'd use to deploy a webapp to Azure apply for an agent.
- ZipDeploy to an App Service
- VS Publish to an App Service or Container
- Other container deployments supported by Azure
- Agents Toolkit
Important
If you are using an App Service and either Federated Credentials or User Managed Identity, you will need to add that identity under Settings then Identity.
In any case, after your agent code is deployed, it will have an endpoint, such as example.azurewebsites.net
.
Navigate to your Azure Bot resource and under Configuration change the Messaging endpoint to https://{yourwebsite}/api/messages
.
Test in Web Chat
To see your message in web chat, select Test in Web Chat in your Azure Bot resource and send messages to your agent.
Prepare your Teams and Microsoft 365 Copilot manifest
For Microsoft Teams and Microsoft 365 Copilot, you need to create and upload a manifest. It is not possible to provide a manifest example that covers all Teams or M365 needs. Teams features require specific manifest content.
These steps provide an overview of a basic "chat" style Teams agent.
- Create an empty folder in your project
- Copy of the contents of Teams manifest files
- Open
manifest.json
to edit:- Replace with your ClientId of the Azure Bot everywhere you see the placeholder string
<<AAD_APP_CLIENT_ID>>
- Replace
<<BOT_DOMAIN>>
with your Agent endpoint. - Zip up the contents of the folder to create a
manifest.zip
with the contents:manifest.json
outline.png
color.png
- Replace with your ClientId of the Azure Bot everywhere you see the placeholder string
Deploy to Microsoft 365
Your Azure Bot should have the Microsoft Teams channel added under Channels.
Navigate to the Microsoft Admin Portal (MAC). Under Settings and Integrated Apps, select Upload Custom App.
Select the
manifest.zip
created in the previous section.After a short period of time, the agent shows up in Microsoft Teams and Microsoft 365 Copilot.