Description:
Invoking the remote Copilot agent fails with a 401 authentication error with env GITHUB_TOKEN, and the service explicitly asks for a COPILOT_PROVIDER_API_KEY or COPILOT_PROVIDER_BEARER_TOKEN.

Steps to Reproduce:
- Run
azd ai agent init --manifest "https://github.com/microsoft-foundry/foundry-samples/blob/main/samples/python/hosted-agents/bring-your-own/invocations/github-copilot/azure.yaml"
- Run
azd env set GITHUB_TOKEN "<github token>"
- Run
azd up
- Run
azd ai agent invoke --protocol invocations '{"input": "What can you help me with?"}'
Environment:
- Azd version: azd version 1.29.0-beta.1-daily.6597041 (commit 0b0b9296665a9eedf1a053c3a2de89d91478dcd7) (daily)
- AI Agent Extension version: 1.0.0-beta.6
- Manifest URL:
- OS: Windows
- Location:
northcentralus.
Expected Behavior:
azd ai agent invoke can get model response successfully.
@JeffreyCA and @RickWinter for notification.
Description:

Invoking the remote Copilot agent fails with a 401 authentication error with env
GITHUB_TOKEN, and the service explicitly asks for aCOPILOT_PROVIDER_API_KEYorCOPILOT_PROVIDER_BEARER_TOKEN.Steps to Reproduce:
azd ai agent init --manifest "https://github.com/microsoft-foundry/foundry-samples/blob/main/samples/python/hosted-agents/bring-your-own/invocations/github-copilot/azure.yaml"azd env set GITHUB_TOKEN "<github token>"azd upazd ai agent invoke --protocol invocations '{"input": "What can you help me with?"}'Environment:
northcentralus.Expected Behavior:
azd ai agent invokecan get model response successfully.@JeffreyCA and @RickWinter for notification.