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.
4,083 questions
{count} votes

Accepted answer
  1. navba-MSFT 27,540 Reputation points Microsoft Employee Moderator
    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.

    .

    Update as of 9th July 2024
    The fix has been 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.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.