Skip to main content
This guide shows how to make a Kore Agent Builder app Microsoft Agent 365 enabled, from registering the client app through verifying the agent in Microsoft Teams and monitoring its activity. Connecting an agent to Microsoft Agent 365 does the following:
  • It registers the agent as a verified identity in your Microsoft 365 tenant. It allows for discovery and interactivity in Microsoft Teams and governance through the Microsoft Admin Center.
  • It integrates the agent with the Microsoft Agent 365 Observability SDK, which exports traces for agent invocation, inference, and tool calls to the Agent 365 cloud service. View these traces in the Microsoft Defender Portal.
To build your agent on the Platform first, see Create an Agentic App.

Integration Overview

1

Register Client App

Create the Entra ID app identity for the A365 CLI. Owner: IT Admin.
2

Install CLI and Configure

Install tools and initialize a365.config.json. Owner: Developer.
3

Create Agent Blueprint

Provision the blueprint, configure Platform credentials, set the server URL, and publish. Owner: IT Admin or Developer.
4

Activate in Admin Center

Activate and deploy the agent to your organization. Owner: IT Admin.
5

Verify in Teams

Create an instance and confirm the integration works end to end. Owner: Developer.
6

Monitor Activity

Observe agent events in Purview and Defender. Owner: IT Admin.

Prerequisites

Frontier Program Enrollment

Before you start, your tenant needs at least one Microsoft 365 Copilot license (trial or paid), and you must sign in with a Global Administrator or Billing Administrator role.
  1. Go to the Microsoft 365 Admin Center.
  2. Go to Agents > Agent Overview.
  3. Select Try now and accept the Terms of Service.
  4. Go to Copilot > Settings > User Access > Copilot Frontier and turn on Frontier features.
  5. Access Agents > Agent Overview and verify that the Agent 365 UI is available and preview features are available.
These steps provide an Agent 365 Preview subscription that’s provisioned with 25 licenses. These licenses are for agent instances (digital workers) and not for individual users. Agent 365 Overview page in the Microsoft 365 Admin Center

Step 1: Register Client App

Outcome: A registered app in Entra ID with the credentials the developer and CLI need, and an Azure resource group ready for blueprint provisioning.

1.1 Create an Azure resource group and App Service Plan

  1. Open the Azure Portal.
  2. Go to Resource groups → + Create. Name it clearly (for example, rg-kore-agent-prod), select your target region, then select Review + Create.
  3. Open the new resource group and select + Create → App Service Plan.
  4. Configure the App Service Plan:
FieldValue
NameAny name (for example, asp-kore-agent).
Operating SystemWindows or Linux.
Pricing tierB1 or above.
  1. Select Review + Create.
  2. Authenticate the Azure CLI with az login. Confirm the Subscription ID and Tenant ID in the terminal output match your target environment.

1.2 Create the app registration

  1. Open Entra Admin Center and go to Identity → Applications → App registrations → + New registration.
  2. Configure as follows:
FieldValue
NameAgent365-CLI (or your preferred name).
Supported account typesAccounts in this organizational directory only (Single tenant).
Redirect URI — PlatformPublic client/native (mobile and desktop).
Redirect URI — Valuehttp://localhost:8400/
  1. Select Register.
  2. Go back to the app, select Authentication → + Add a platform (if not already done), and add a second redirect URI:
PlatformValue
Public client/nativems-appx-web://Microsoft.AAD.BrokerPlugin/{your-application-client-id}
Replace {your-application-client-id} with the Application (client) ID displayed on the Overview page.

1.3 Record the Application ID and Tenant ID

From the app’s Overview page, copy and store securely:
  • Application (client) ID — passed to a365 config init in Step 2.
  • Directory (tenant) ID.
Only Global Administrator role can grant consent to the required permissions.
  1. In your app registration, go to API permissions → + Add a permission → Microsoft Graph → Delegated permissions.
  2. Add each of the following five permissions. Search by name, select the checkbox, select Add permissions, then repeat.
PermissionReason
AgentIdentityBlueprint.ReadWrite.AllCLI creates and manages the Agent Blueprint.
AgentIdentityBlueprint.UpdateAuthProperties.AllCLI configures inheritable permissions on the blueprint.
Application.ReadWrite.AllCLI creates and manages app registrations.
DelegatedPermissionGrant.ReadWrite.AllCLI grants delegated permissions to the blueprint.
Directory.Read.AllCLI validates tenant directory configuration.
  1. Select the option to Grant admin consent for your tenant.
  2. Verify that under Status, a green checkmark displays for the required permissions.
API permissions list showing the five delegated Microsoft Graph permissions Have the following values ready before you start Step 2:
ValueSource
Application (client) IDEntra app → Overview (Step 1.3).
Directory (tenant) IDEntra app → Overview (Step 1.3).
Resource group nameAzure Portal → Resource groups (Step 1.1).

Step 2: Install CLI and Configure

Outcome: CLI tools are installed, the Azure CLI is authenticated, and a365.config.json is created with your project settings and the deployment flag is set.

2.1 Install prerequisites

# .NET SDK (Windows — via winget)
winget install Microsoft.DotNet.SDK.8

# Agent 365 CLI
dotnet tool install --global Microsoft.Agents.A365.DevTools.Cli --prerelease

# Azure CLI (Windows — via winget)
winget install Microsoft.AzureCLI

# Authenticate azure
az login
Verify the CLI is installed using a365 -h command.

2.2 Run a365 config init

a365 config init
You must complete az login first. The CLI auto-detects your Azure subscription and tenant. Confirm they match your intended environment. Respond to each prompt:
PromptYour input
Client App ID (GUID format)Application (client) ID from Step 1.3.
Agent nameYour agent’s display name.
Select resource groupResource group from Step 1.1.
Select App Service PlanApp Service Plan from Step 1.1.
Manager emailYour email address.
Would you like to customize the generated names?N
Save this configuration?Y
Validate before proceeding:
  • Client app validation successful! appears.
  • The final line reads: Configuration saved to: <path>\a365.config.json.

2.3 Set needDeployment to false

Open a365.config.json in your project directory and add or update:
"needDeployment": false
Kore hosts the agent endpoint, so no Azure infrastructure deployment is required from your end.

Step 3: Create Agent Blueprint

a365 setup all and a365 publish require an interactive browser sign-in with a Global Administrator account.
Outcome: The Agent Blueprint is created in Microsoft Entra, its credentials are entered into Kore, the Kore agent’s messaging endpoint is bound in the Teams Developer Portal, and the agent is published to the Microsoft 365 catalog. Run all CLI commands from the project directory where a365.config.json was created, with az login authenticated.

3.1 Run a365 setup all

a365 setup all
This command creates the Agent Blueprint and configures all required permissions. It opens browser windows for interactive authentication. Sign in with your Global Administrator account at each prompt.
Browser promptAction
Microsoft Graph interactive sign-inSign in as Global Administrator.
Admin consent for application scopesGrant consent.
Agent 365 Tools authenticationAuthenticate via Windows Account Manager.
Validate before proceeding:
  • Requirements Check Summary shows Failed: 0.
  • Agent blueprint created successfully appears.
  • a365.generated.config.json is created in your project directory.

3.2 Configure the Kore environment with blueprint credentials

Open the two generated config files in your project directory and copy the following values:
Kore fieldConfig fieldFile
A365_BLUEPRINT_IDagentBlueprintIda365.generated.config.json
A365_CLIENT_SECRET_REFagentBlueprintClientSecreta365.generated.config.json
A365_TENANT_IDtenantIda365.config.json
In Kore Agent Builder, go to your agent → Environment → Review Environment Variables. Enter the three values above and save.
The Kore Agent Builder UI for entering these variables is changing. The screens and steps in this section may differ from what you see, and will be updated once the UI changes are complete.

3.3 Complete Kore agent creation

Complete the remaining steps in the Kore agent creation wizard and publish the agent. Copy the backend webhook URL that Kore provides. You need it in the next step.

3.4 Set the backend URL in the Teams Developer Portal

  1. Open the Microsoft Teams Developer Portal.
  2. Go to Apps → Agent Blueprints and select your blueprint by name.
  3. Open Configuration.
  4. Set Connection type to API Based.
  5. Set Backend URL to the Kore webhook URL from Step 3.3.
  6. Select Save.
Teams Developer Portal Configuration page with Connection type set to API Based and the backend URL entered Validate:
  • Connection type shows API Based.
  • Backend URL matches the Kore webhook URL from Step 3.3.

3.5 Run a365 publish

a365 publish
PromptAction
Open manifest in your default editor now?Y to review. Confirm name.short is 30 characters or fewer.
Press Enter when finished editingPress Enter.
Browser: MOS authenticationSign in when the browser opens.
On re-publish, increment the version field in the manifest.
Validate before proceeding:
  • MOS token acquired successfully appears.
  • The final line reads: Publish completed successfully!.

Step 4: Activate in Admin Center

Outcome: Your agent is active and deployed to all users in your organization, ready to be instantiated in Teams.
  1. Open Microsoft Admin Center → Agents → All Agents.
  2. Search for your agent by name and select it to open its details panel.
  3. Select Activate.
  4. When prompted to select a template, choose Default template for allowing instances. This associates the Frontier license with the blueprint to allow instance creation.
  5. Select Next and wait for activation to complete fully. Do not navigate away.
Validate:
  • The Activate button has disappeared from the agent panel.
  1. Select the three-dot menu (···) beside your agent name, then Deploy → All Users.
  2. Select Close when the confirmation screen appears.
Validate:
  • The confirmation reads: agent was deployed successfully to All users.

Step 5: Verify in Teams

Outcome: You have a live conversation with your agent in Teams, confirming the full integration works end to end.
  1. Open Microsoft Teams.
  2. Go to Apps → Agents for your team.
  3. Search for your agent by name, select it, then select Create Instance.
  4. Name the instance (for example, [AgentName]-test) and select Save.
Create Instance dialog for the agent in Microsoft Teams The agent appears in your Teams chat list. Agent listed in the Microsoft Teams chat list Validate:
  • The agent responds to your messages.
  • If there is no response, the endpoint binding or blueprint configuration is incorrect. Re-check the Step 3 validation items before proceeding.
If you cannot create an instance, confirm the agent was activated with the Default template for allowing instances in Step 4. If the template was not selected during activation, re-activate the blueprint.

Step 6: Monitor Activity

Defender — Advanced Hunting

Outcome: Agent activity events are queryable in Defender for security review and SOC integration. For Defender prerequisites (audit log enablement, M365 connector setup), see Monitor agents with Microsoft Defender.
Allow up to 30 minutes after the Step 5 interactions before events appear.
Once the M365 connector is active, baseline threat detections trigger automatically. No additional rule configuration is required.
  1. Go to security.microsoft.com and select Hunting → Advanced Hunting.
  2. In the Schema tab, locate the CloudAppEvents table.
  3. Execute the following query after substituting your agent’s display name:
CloudAppEvents
| where ActionType in ("InvokeAgent", "InferenceCall", "ExecuteToolBySDK",
                       "ExecuteToolByGateway", "ExecuteToolByMCPServer")
| where AccountDisplayName contains "<your-agent-name>"
Advanced Hunting query results in the Defender portal showing agent activity events Validate:
  • Actions from the Step 5 Teams test session appear in the results.

Related Links