Creating vector store using Azure OpenAI

AJAY RAWAT 45 Reputation points Microsoft Employee
2024-06-18T04:46:35.2433333+00:00

I am using Azure OpenAI assistants. I am able to create assistants and threads but not the vector stores.

Running client.beta.vector_stores.create(name="Placeholder") as per this document to create vector stores throws following error:

BadRequestError: Error code: 400 - {'error': {'code': 'API operation not supported for token authentication', 'message': 'ApiId openai-api-2024-05-01-preview OperationId create_vector_store not supported for CheckAccess.'}}

I am using from azure.identity import DefaultAzureCredential, get_bearer_token_provider for authentication instead of api-key. Even after assigning myself these 3 roles, I am facing the same issue:

  • Cognitive Services Contributor
  • Cognitive Services OpenAI Contributor
  • Cognitive Services User

I found a similar question but with no help.

Ask:

  1. If this issue is related to permissions, which roles should I assign to grant proper permissions?
  2. If not, please share the fix / documentation.
  3. Please share Azure OpenAI team's support email / DL
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,597 questions
{count} votes

Accepted answer
  1. navba-MSFT 20,375 Reputation points Microsoft Employee
    2024-06-26T09:31:55.8466667+00:00

    @AJAY RAWAT Apologies for the delay in getting to the root of this problem. I appreciate your patience on this.
    .

    We had a look at the backend internal logs to identify the cause of this issue.

    .

    The fix for this issue is now merged. I will keep you posted on when this fix will be rolled out(deployed) to all regions.

    .

    **

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful