Azure / Azure/azure-sdk-for-python

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

Aperta
#44,842 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
AI Projects customer-reported needs-team-attention question Service Attention
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g 2h
PR unite (30g)
213

Descrizione

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)

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia seguendo il link alle autorizzazioni di Microsoft Foundry riportato nell'errore segnalato e consultando la documentazione dell'esempio di agente ospitato. Chiarisci se il principal è l'identità dell'utente o un servizio, documenta l'autorizzazione agents/write richiesta e dove deve essere concessa, e considera risolto il confuso link alle autorizzazioni quando un utente può seguire le istruzioni per eseguire l'esempio in Foundry Playground.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
azure, python
Ambito
cloud, documentation
Tipo di issue
Documentazione
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.