Maybe you should use the Deployment Name instead of the model name in your C# code.
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
I have created an Azure OpenAI resource, and Microsoft has provided the following information:
- Endpoint
- Key1
- Key2
- 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
8 answers
Sort by: Most helpful
-
-
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
-
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:
- You need to wait for 60-75 mins before the deployment is complete. It seems that it takes a while at preview.
- 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
-
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:
I was missed a step Deploye a model
And thank you for every one to answer my query.
-
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.