For a few days now, I've been unable to publish my Copilot Studio agents that use Power Automate flows. This only happens to agents that don't use/use authentication.
I get the error:
[
{
"diagnosticResult": [
{
"$kind": "ElementValidationError",
"errorCode": "UserConnectionRequiresAuthentication",
"errorMessage": "User (C2) connections must use Azure Active Directory authentication."
}
],
"componentDisplayName": "Test",
"componentId": "e0f45144-db76-483a-8a95-362b5d8e6eea",
"diagnosticErrorCount": 1
}
]
Notes:
. The issue only occurs when authentication isn't used.
. The issue occurs when invoking any Power Automate flow from Copilot Studio.
. The problem occurs in any topic (not just "conversation improvement").
. I tested flows with and without parameters.
. I tested with existing agents and creating new ones.
. I also created a new flow that does nothing and doesn't receive parameters. Still, the problem persists.
In short: publishing from any agent only works if authentication is present, or if it isn't, the agent can't use any Power Automate flows.