Facing the following issue does not access to API/Operation.

AdityaSa 801 Reputation points
2023-05-25T05:04:18.12+00:00

I am trying to configure the Azure OpenAI service with the Managed Identities.

In addition, my admin has given the user Service Reader and Contributor rights as well. but still no luck.

Still facing the issue does not access to API/Operation.

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,629 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ramr-msft 17,731 Reputation points
    2023-05-25T05:27:54.2566667+00:00

    @A-4824 Thanks for the question, Assigning yourself to the Cognitive Services User role will allow you to use your account for access to the specific cognitive services resource.

    Here is the code to assign cognitive service user role.

    export resourceId=$(az group show -g $myResourceGroupName -o json | jq -r .id)

    az role assignment create --role "Cognitive Services User" --assignee $user --scope $resourceId

    0 comments No comments

0 additional answers

Sort by: Most helpful