Microsoft
Connect a Microsoft tenant to Octic through an Entra app with a federated credential, and discover Azure OpenAI, Agent 365 and Copilot Studio.
This page connects one Microsoft tenant to Octic. You register an app in Microsoft Entra, pick the sources Octic should discover, add a federated credential with values Octic gives you, grant read access for each source, and verify. There's no client secret and no Azure OpenAI API key.
One Microsoft connection covers up to three sources. You choose which:
| Source | What Octic discovers | Scope |
|---|---|---|
| Azure OpenAI | AI accounts and model deployments. | The subscriptions you list. |
| Agent 365 | Agent packages in the tenant's agent catalog. | The whole tenant. |
| Copilot Studio | AI agents, agent components, MCP servers and MCP tools. | The Dataverse environments you list. |
Octic reads metadata only. It doesn't invoke models, read Azure OpenAI account keys, or contact the MCP servers it finds. Agent 365 catalog packages are definitions; finding one doesn't mean a running agent exists. Only Microsoft's commercial (public) cloud is supported.

Octic uses Microsoft Entra workload identity federation. Your Entra app trusts Octic's issuer through a federated credential, so Octic can get a token for the app without a secret. Federation only identifies the app; each source also needs its own read permission, which you grant in Microsoft. Octic checks each source's access separately.
- You're the owner of the Octic workspace.
- You can create an app registration in your Microsoft Entra tenant, or have one already.
- For Agent 365, a Microsoft tenant administrator can grant admin consent, and the tenant has the Agent 365 licensing Microsoft requires.
- For Copilot Studio, you can add an application user and a security role in each Dataverse environment.
Register an app in Microsoft Entra
Create an app registration in your Microsoft tenant, or pick an existing one. Copy its Directory (tenant) ID and Application (client) ID.
Enter the app's IDs
In Octic, open Integrations, choose Microsoft, then choose Connect. Under Connect Microsoft, enter:
- Microsoft tenant ID: the Directory (tenant) ID.
- Application (client) ID: the app's client ID.
- Connection name (optional): a label such as
Acme Corp tenant.
Select the sources to discover
Under Sources to discover, select at least one:
- Azure OpenAI: enter the Subscription IDs, one per line or separated by commas.
- Agent 365: no further input.
- Copilot Studio: enter the Dataverse environment URLs, one
environment origin per line, such as
https://<environment>.crm.dynamics.com.

Below the sources, Grant read access for each selected source lists the permissions each one needs. Choose Get federation details.
Add the federated credential in Entra
Octic saves the connection and shows Configure your federated credential with three values and a copy button for each:
Value What it is Issuer Octic's issuer URL. Subject The subject unique to this connection. Audience api://AzureADTokenExchangeIn Microsoft Entra, open your app registration's Certificates & secrets, then Federated credentials, and add a credential for Other issuer. Enter the three values exactly as Octic shows them, including case and any trailing slash.
Grant read access for each source
In Microsoft, grant the app the permissions for the sources you selected. See Permissions by source.
Verify
Back in Octic, choose Verify connection. Octic makes a small access check for each source. When it passes, Octic shows Connection verified. Federation changes can take a few minutes to reach Microsoft; if the check fails right after you saved the credential, wait and choose Verify again.
Run the first sync
Choose Review coverage and sync to open Settings, then choose Sync now on the tenant's card.
The federation values are saved with the connection, so you can leave and come back. On Settings, the tenant's card has Resume setup while setup is unfinished, and View federation setup after.
Only the subscriptions and environments you select are covered.

Assign the app's service principal the Reader role on each selected subscription, or equivalent read access to the Azure OpenAI resources.
Add the Microsoft Graph application permission
CopilotPackages.Read.All to the app, and have a Microsoft tenant
administrator grant admin consent. Agent inventory also depends on your
Microsoft licensing and the API's availability.
In each selected environment, add the app as an application user. Assign it a custom security role with organization-level Read access to these tables, where the environment has them:
- Bot
- Bot Component
- MCP Server
- MCP Tool
Coverage depends on which features and tables each environment has. Octic covers the environments you list, not every environment in the tenant.
Open the Settings tab. The tenant's card shows:
- The Microsoft tenant ID and application ID.
- Each source and what it covers, or Not selected.
- Access checks: the result of the last verification for each source.
- Latest discovery coverage: after a sync, what each source found per subscription or environment and resource type.
Each check and coverage entry has a status:
| Status | Meaning |
|---|---|
| Access verified | The access check passed (shown under Access checks). |
| Complete | Octic read every record this app can read in that scope and resource type. |
| Permission required | Microsoft denied access. Check the app's trust, the source's read permission and licensing, then verify again. |
| Not supported | The resource doesn't exist in that scope, for example a table the environment doesn't have. Check the environment's features and licensing. |
| Unavailable | Microsoft couldn't complete the request for now, or the endpoint isn't available for that scope. Retry later. |
| Check failed | The scan didn't complete. Check the configured scope. |
| Not selected | You didn't select this source. |
Use Verify, Sync now and Disconnect on the card, and check Recent syncs below. Sync now is available once the connection is active. Octic syncs the tenant every 6 hours. See Manage a connection.
Open Setup. Under Existing Microsoft connections, choose Edit sources on the tenant, change the selection, and choose Save source selection. Grant permissions for any new source, then verify again before the next sync.
Choose Disconnect on the tenant's card on Settings. Octic stops syncing every source on this connection and keeps what it already found. To remove Octic's access in Microsoft as well, remove the federated credential and the role assignments and consent grants from your Entra app.
Last updated
Was this page helpful?


