Advanced declarative agent can’t be deployed

I was trying out Microsoft 365 Agents Toolkit in VS Code, building an agent using TypeSpec, but it failed to provisioning to my M365 developer tenant, with the following error:

Error: Deployment blocked: Advanced declarative agent can’t be deployed due to tenant permission settings.

The solution I eventually found: Open the file  /env/.env.dev  and find AGENT_SCOPE  change from shared to personal.

This entry was posted in Tips and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *