Create the discovery app
Create a new confidential Entra app namedtruefoundry-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.
- Portal
- Azure CLI
- Open the Entra admin center → App registrations → New registration.
- Name the app
truefoundry-agent-discovery(or your organization’s naming standard). Choose single tenant, leave the redirect URI empty, then select Register. - Copy the Application (client) ID. This is the
client_idfor TrueFoundry Auth Data. - Go to Certificates & secrets and create a client secret or certificate. Store it in TrueFoundry Secrets.
- Go to API permissions → Add a permission → Microsoft Graph → Application permissions and add:
CopilotPackages.Read.All(required)AgentIdentity.Read.All(optional)
- Select Grant admin consent.
- 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.- Open the Power Platform admin center → Environments → select the environment that contains your agents and connectors.
- 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
- Name: for example,
- 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
- Go to Integrations → Azure → Microsoft Copilot Studio.
- Create the integration, or open the existing one to edit it.
- 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
- Save, then run the sync or import.