Azure / Azure/azure-sdk-for-python

Failed to send message: The principal lacks the required data action Microsoft.CognitiveServices/accounts/AIServices/agents/write

Open
#44,842 3 comments 0 reactions 0 assignees View on GitHub
AI Projects customer-reported needs-team-attention question Service Attention
Dominant language
Python
Stars
5.6k
Forks
3.4k
Avg merge
1d 21h
Merged PRs (30d)
193

Description

I've deployed the sample hosted agent to my Foundry Project. The playground fails when it runs in the Foundry Playground but works fine in local playground. There were no instructions in the documentation indicating permissions requirements. How do I fix this issue? I'm using the New Foundry UI. The pemissions link in the error is very confusing. Is this my user credentials or a service?

Failed to process the message: Failed to send message: Error event received: {"sequence_number":3,"code":"server_error","message":"(PermissionDenied) The principal bbfdd38aXXXXX lacks the required data action Microsoft.CognitiveServices/accounts/AIServices/agents/write to perform POST /api/projects/{projectName}/assistants operation. For instructions on granting the necessary permissions, see [https://aka.ms/FoundryPermissions.\nCode](https://aka.ms/FoundryPermissions.%5CnCode): PermissionDenied\nMessage: The principal bbfdd38a-XXXX lacks the required data action Microsoft.CognitiveServices/accounts/AIServices/agents/write to perform POST /api/projects/{projectName}/assistants operation. For instructions on granting the necessary permissions, see [https://aka.ms/FoundryPermissions.","param":"","type":"error"}](https://aka.ms/FoundryPermissions.%22,%22param%22:%22%22,%22type%22:%22error%22%7D)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.