The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again

Syedbabar Ali 400 Reputation points
2023-06-17T04:13:03.2266667+00:00

I have created an Azure OpenAI resource, and Microsoft has provided the following information:

  1. Endpoint
  2. Key1
  3. Key2
  4. Location/Region (I have selected "westeurop")

However, when I try to use the API with my C# code, I encounter the following error:

"The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again. Status: 404 (Not Found) ErrorCode: DeploymentNotFound

Content: {"error":{"code":"DeploymentNotFound", "message":"The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again."}}"

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,101 questions
{count} votes

8 answers

Sort by: Most helpful
  1. Xing Hanming 40 Reputation points
    2023-06-17T14:06:03.4833333+00:00

    Maybe you should use the Deployment Name instead of the model name in your C# code.

    8 people found this answer helpful.

  2. Nabajyoti Boruah 16 Reputation points
    2023-06-28T10:44:05.4433333+00:00

    Please replace Deployment Name instead of the model name in your C# code

    3 people found this answer helpful.

  3. Ziggy Zulueta 495 Reputation points MVP
    2023-07-01T13:19:32.15+00:00

    I do get the same error but I got the issue resolved based on two things:

    1. You need to wait for 60-75 mins before the deployment is complete. It seems that it takes a while at preview.
    2. I still got the same issue after 8 hours. I was using the EAST US location. When I switched to Europe the issue isnt there. So it seems that GPU isnt available in EAST US
    2 people found this answer helpful.

  4. Syedbabar Ali 400 Reputation points
    2023-07-04T05:49:50.7433333+00:00

    The issue I encountered was that I had created a resource but had not deployed it. However, once I selected my model from the Azure portal, the problem was automatically resolved.

    To resolve this issue, please follow the steps outlined in the "Deploy a model" section of the following link:

    Link: Deploy a model

    I was missed a step Deploye a model

    And thank you for every one to answer my query.

    2 people found this answer helpful.

  5. Ziggy Zulueta 495 Reputation points MVP
    2023-06-30T00:26:46.36+00:00

    I get the same error but this time with the Azure AI Studio.

    0 comments No comments

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.