Skip to content

Admin Center: Publish wizard shows "Publish failed" UI error despite agent being successfully published via a365 publish CLI #237

@smita-MSFT

Description

@smita-MSFT

Description

After successfully running a365 publish (CLI exits with success) and configuring the agent blueprint in the Teams Developer Portal, the M365 Admin Center publish wizard (admin.cloud.microsoft) consistently shows:

"We couldn't publish your agent agentframework Blueprint. Please try again."
However, the agent is actually published — it appears in the Agents → Requests tab with status Pending review and shows Copilot + Teams as supported channels. The wizard error is a false negative caused by CSP violations in the browser console:
Uncaught (in promise) Error: Publish command did not complete successfully
Connecting to '' violates Content Security Policy directive: connect-src

Link : https://github.com/microsoft/Agent365-Samples/tree/main/python/agent-framework/sample-agent

Expected behavior

The publish wizard should show success after a365 publish completes and the Teams Developer Portal is configured.

SDK Version

a365 v1.1.109.19759

Language/Runtime

Python 3.13.12

OS

Windows 11

How to Reproduce

  1. Run a365 publish → CLI succeeds
  2. Configure agent blueprint at https://dev.teams.microsoft.com/tools/agent-blueprint//configuration (Agent Type: Bot Based, Bot ID: )
  3. Go to M365 Admin Center → Agents → Publish new agent
  4. Select users → Apply policy → Review and finish → click Publish
  5. Wizard shows "Publish failed" with CSP errors in browser console

Output

Actual: Wizard shows publish failure. Browser console shows multiple CSP connect-src violations blocking network requests from admin.cloud.microsoft.

Screenshots

Image

Code of Conduct

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions