Issue Summary:
Encountering an AuthenticationError with error code 401 when attempting to access the OpenAI API. The error message indicates that the principal does not have access to the API/Operation.
Expected Outcome:
The service principal should have access to the specified API/Operation based on the roles and permissions assigned.
Actual Outcome:
Receiving the following error message: Principal does not have access to API/Operation. This prevents the service principal from accessing the API as expected.
Environment Details:
- Subscription ID: Redacted
- Role(s) Assigned: Contributor , User
- Application ID: Redacted
- API/Operation: Microsoft.CognitiveServices/accounts/listKeys/action
- Azure Resource: Redacted
Appreciate any support on the above
Thanks,
Best Regards,
Nuzhi