I'm working with Azure OpenAI service, and want to test its Managed Identity support. According to the docs it supports Managed Identity authentication, for example - using a VM.
So I did the following:
- Created a VM in Azure
- Assigned it a managed identity
- Assigned this identity a "Cognitive Services User" role (as per the docs) on the OpenAI resource
- Downloaded Postman to the VM
- Tried to access OpenAI API without the API Key (that's the whole point, isn't it?)
But I keep getting a 401 error.
What am I missing? With other services, VM with authenticated Managed Identity can access the service (ie. Storage Account, KeyVault). Why isn't it working here?
Thanks!