https://promptfoo.dev/ logo
Can't authenticate Azure Provider with Client Cred...
# ❓|questions
c
Hi, I'm trying to use Azure OpenAI Service with Client Credentials (see screenshot1, of my promptfooconfig.yaml) In Azure, the service principal I'm using has the role 'Cognitive Services OpenAI User' assigned to the Azure OpenAI resource, so it should have RBAC configured. I've double checked the resource name is correct in API endpoint (apiHost field) and it should have correct permissions via RBAC. But when I run eval locally, I keep getting a 401 error (see screenshot2) Can someone please point me as to what I'm missing? Thank you https://cdn.discordapp.com/attachments/1261397999154892841/1261397999330787379/image.png?ex=6692cfee&is=66917e6e&hm=068ee3d2c8695e0dd05be6f2ee5b692adab76bd4b5afa5e930821af96e2a8800& https://cdn.discordapp.com/attachments/1261397999154892841/1261397999662399508/image.png?ex=6692cfee&is=66917e6e&hm=f11fa897f3a08c4c65a1f660b5d6400d818b910e1756f8a0a270d738a4c3c949&
l
Hey, did you ever figure it out ?