-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Description
Problem
The README's "Testing" section for the Copilot Studio Node.js sample agent only says:
npm run test-toolI followed all the steps documented in the README — installed dependencies, configured .env, set up Copilot Studio, added CopilotStudio.Copilots.Invoke API permission, granted user access, and configured agentic authentication — but local testing with the Agents Playground fails with:
AADSTS82008: All agentic applications requesting a token exchange token must include the fmipath parameter on the token request.
The playground shows: "Error communicating with Copilot Studio: Failed to acquire token for Copilot Studio. User may need to sign in."
Expected behavior
In agent playground it should give auth popup and then start responding.
SDK Version
a365 v1.1.94-preview @microsoft/agents-hosting ^1.2.2
Language/Runtime
Node.js 20.20.0
OS
Windows
How to Reproduce
Steps to Reproduce
-
Clone the repo and navigate to
copilot-studio-node/sample-agent -
Install dependencies:
PS> npm install found 0 vulnerabilities -
Initialize config:
PS> a365 config init Subscription ID: 5448407e-xxxx-xxxx-xxxx-xxxxxxxxxxxx (M365CPI159633580 - Subscription) Tenant ID: ea4b3b3d-xxxx-xxxx-xxxx-xxxxxxxxxxxx -
Configure .env with Copilot Studio environment ID, agent identifier, and service connection credentials (clientId, clientSecret, tenantId)(service connection credentials filled by a365 config init also added
CopilotStudio.Copilots.Invokepermission in Azure Portal and Granted the admin permission as documented in README ,Copilot Studio agent is shared within the organization) -
Run full setup:
PS> a365 setup all Starting setup all Agent 365 Setup Running all setup steps.. -
Run local test:
PS> npm run test-tool -
Send any message (e.g., "hi") in the Agents Playground at
localhost:56150
Expected: Agent forwards message to Copilot Studio and returns a response.
Actual: Returns AADSTS82008 error. The token request sends fmi_path= (empty) because the agentic identity was never provisioned. The AgenticAppId in a365.generated.config.json is null.
Output
No response
Screenshots
No response
Code of Conduct
- I agree to follow the Microsoft Open Source Code of Conduct.