Teams Phone and calling
General

Aa Cq Direct Foundry

In brief

The guide now documents Teams Phone Agent integration, revised resource-account licensing, optional phone-number binding, corrected commands, and updated links and terminology.

What Teams admins need to know

Administrators setting up Foundry voice agents should follow the revised procedure. Assign a phone number to the resource account when enabling calls from outside the Teams tenant.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

ms.author: colongma manager: roykuntz ms.reviewer: colongma ms.date: 2026-10-21T00:11-30T00:00:00.0000000Z ms.topic: how-to ms.tgt.pltfrm: cloud ms.service: msteams

  • ms.teamsadmincenter.autoattendants.overview
  • Phone System
  • seo-marvel-apr2020 customer-intent: As a Teams Administrator, I want to learn about voice enabling my Microsoft Foundry agents through Teams Phone so I know when and how to use them within my organization. description: Setup - VoiceLearn how to voice enable Microsoft Foundry agents through Teams Phone by using resource accounts, Azure Communication Services, and PowerShell. locale: en-us document_id: 30adfa22-7526-63c6-3650-75ee14af854c document_version_independent_id: 30adfa22-7526-63c6-3650-75ee14af854c

Microsoft Foundry is the enterprise AI platform to build, ground, and govern AI apps and agents at scale. It brings together your full agent lifecycle with open development, built-in intelligence, and consistent security, compliance, and policy controls across every agent.

Direct dialVoice enabling Microsoft Foundry voice agents through Microsoft Teams Phone allow you to create conversational AI bots and attach them directly to a Teams Phone Agent enable direct calling by assigning a phone number via Teams Phone's resource accounts.number. By using these first-party conversational voice agents, you can significantly enhance your current Interactive Voice Response experiences or upgrade your current call flows.

By front-ending your call flow with a Microsoft Foundry voice agent, you unlock deep automation and tailored experiences. You can design custom workflows to handle common inquiries, such as billing, order status, and inventory checks. The agent acts as an intelligent first point of contact, resolving issues independently before seamlessly routing the call to a human representative using traditional Teams Phone routing systems if needed.

What you will build

High level call diagram showing the components a Teams call goes through to reach a Foundry agent.Screenshot showing the components a Teams call goes through to reach a Foundry agent.

Prerequisites

  • Azure access - An Azure subscription where you can create Foundry, ACS, an app registration, Azure Bot, and Event Grid resources.
  • Teams administration - Teams and Microsoft 365 permissions to create, license and assign a phone number to a resource account.
  • PowerShell - with the lastestlatest MicrosoftTeams module. The custom application-endpoint menu option is PowerShell only.

Values to collect

| <azure-tenant-id> | App registrations → Overview | Azure Bot single-tenant configuration | | <acs-endpoint-host> | ACS Properties / JSON | Foundry connection and ACS server-consent request | | <acs-immutable-resource-id> | ACS Properties / JSON | Teams resource-account AcsResourceId | | <teams-tenant-id> | Get-CsTenanCsTenant | ACS server-consent scope | | <resource-account-object-id> | Get-CsOnlineApplicationInstance | Foundry phone binding, ACS consent, and MA ApplicationEndpoint target | | <teams-service-number> | Teams admin center | Resource-account assignment and Foundry phone binding |

Setup procudureprocedure

Step 1: Create and test the Foundry voice agent

  1. Open Azure portal.
  2. Create an ACS resource in the same Entra tenant as the Foundry project.
  3. Select the data location that matches the Teams tenant’tenant's data location.
  4. Open the ACS resource’resource's Properties or JSON view.
  • hostName -> <acs-endpoint-host>
  • immutableResourceId -> <acs-immutable-resource-id>

Expected: The output contains an ObjectId, the app client ID, and the ACS immutable resource ID. Save the ObjectId as <resource-account-object-id>.

Step 5: License the resource account and satisfy the portal’s number requirement

  1. Open Microsoft 365 admin centerMicrosoft 365 admin center.
  2. Assign the Microsoft Teams Phone Resource Account license in Microsoft 365 admin center.

The Foundry agent is now ready to be part of a Teams Phone Agent call flow.

If you want people from outside your Teams tenant to call the Foundry agent, assign a phone number to the resource account as outlined step 6.

Expected: The resource account is Licensed.

Step 6: Create the Foundry Microsoft Teams phone binding (optional)

Teams admin center

  1. Open Teams admin centerTeams admin center.
  2. Expand Voice.
  3. Select Phone numbers.
  4. Choose an unassigned Teams service number whose capabilities include VoiceApplicationAssignment.
  5. Select Edit.
  6. Search for the resource account created in step 4.
  7. Select Apply.

If the Teams UI is disabled for the custom resource account, assign the number through PowerShell.

-NumberType $number.NumberType

**Expected:** The resource account is Licensed, and the number’s assignment target is the resource-account ObjectId.

### Step 6: Create the#### Microsoft Foundry Microsoft Teams phone binding

1. Open [Microsoft Foundry](https://ai.azure.com/login).
2. Open the target voice agent, then **Channels → Phone numbers → Add a number → Microsoft Teams**.
5. Enter `<teams-service-number>` and `<resource-account-object-id>`.
6. Complete the binding and wait for it to appear on the Channels page.

**Important:**Important

The binding is associated with whichever Foundry agent’agent's Channels tab you are using. No Foundry agent ID is written onto the Teams resource account.

**Expected:** The Microsoft Teams number is visible on the voice agent’agent's Phone numbers card.

### Step 7: Grant ACS server consent for the Teams resource account

[Teams Phone Extensibility guide](/en-us/azure/communication-services/quickstarts/tpe/teams-phone-extensibility-quickstart)

ACS must authorize the exact pair of `<teams-tenant-id>` and `<resource-account-object-id>`. A direct call commonly returns **Busy** until this is complete.

**Read the ACS key locally with Read-Host -AsSecureString. Never paste it into chat or save it in the script. Rotate it immediately if exposed.**


### Step 8: Validate the complete call path

1. Call the resource account or the `<teams-service-number>`. Confirm the Foundry greeting, two-way audio, and barge-in.
2. Open [Microsoft Foundry](https://ai.azure.com/login) agent’agent's Traces tab and confirm the sessions appear.

## Related Teams Phone Agent setup and configuration articles