Skip to main content
To import Copilot Studio agents into TrueFoundry, create a discovery app, give it access to Power Platform, then connect it in TrueFoundry.

Create the discovery app

Create a new confidential Entra app named truefoundry-agent-discovery. TrueFoundry uses it as the Auth Data while you set up the Copilot Studio integration. It is separate from truefoundry-app and agent-client. TrueFoundry uses this app to call: Admin consent for Graph is not enough on its own. You also need the Power Platform steps below.
  1. Open the Entra admin center → App registrations → New registration.
  2. Name the app truefoundry-agent-discovery (or your organization’s naming standard). Choose single tenant, leave the redirect URI empty, then select Register.
  3. Copy the Application (client) ID. This is the client_id for TrueFoundry Auth Data.
  4. Go to Certificates & secrets and create a client secret or certificate. Store it in TrueFoundry Secrets.
  5. Go to API permissions → Add a permission → Microsoft Graph → Application permissions and add:
    • CopilotPackages.Read.All (required)
    • AgentIdentity.Read.All (optional)
  6. Select Grant admin consent.
  7. Note the service principal (Enterprise application) for this app. You add it as a Power Platform application user in the next section.

Grant Power Platform access

Do this in each environment you sync from. Access does not carry across environments.
  1. Open the Power Platform admin center → Environments → select the environment that contains your agents and connectors.
  2. Create a security role: Settings → Users + permissions → Security roles → New.
    • Name: for example, truefoundry-agent-discovery
    • Uncheck Include App Opener privileges
    • Save, then open the role
    • Select Show all tables (or search for connector)
    • For Connector, set Read → Organization, then save
  3. Add the app as an application user: Settings → Users + permissions → Application users → New.
    • Select the discovery app (same client ID as above), then select Create
    • Select Edit security roles, assign the role from step 2, then save

Connect the discovery app in TrueFoundry

  1. Go to Integrations → Azure → Microsoft Copilot Studio.
  2. Create the integration, or open the existing one to edit it.
  3. Enter the Auth Data:
    • Tenant ID: your Entra directory ID
    • Client ID: the discovery app’s Application (client) ID
    • Client secret or certificate: use a tfy-secret://… reference, which is recommended
  4. Save, then run the sync or import.

Govern agents

After the agents are imported, govern each one by following the OAuth2 governance checklist.