Skip to content

API Deployment Not Found (404 DeploymentNotFound) in Semantic Kernel #379

Open
@akshayvidap128

Description

@akshayvidap128

Please provide us with the following information:
This issue is for a: (mark with an x)

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting  
- [ ] feature request  
- [ ] documentation issue or request  
- [ ] regression (a behavior that used to work and stopped in a new release)  

Minimal steps to reproduce

Configure the Semantic Kernel to use Azure OpenAI and Azure Cognitive Search with DefaultAzureCredential (via Azure.Identity library).
Set the following parameters:
Azure OpenAI:
Endpoint: https://.openai.azure.com/
Deployment Name:
API Version: 2023-05-15
Azure Cognitive Search:
Endpoint: https://.search.windows.net/
Search Index:
Attempt to invoke the chat completion operation using Azure OpenAI deployment.

Any log messages given by the failure

Microsoft.SemanticKernel.HttpOperationException: '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 (DeploymentNotFound)
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."}}

Headers:
Date: Fri, 15 Nov 2024 15:10:58 GMT
Connection: keep-alive
x-ms-client-request-id: 36192ffc-aba2-44b2-b7c8-3baccc61473b
apim-request-id: REDACTED
Strict-Transport-Security: REDACTED
X-Content-Type-Options: REDACTED
x-ms-region: REDACTED
Content-Type: application/json
Content-Length: 197

Expected/desired behavior

The deployment should be found, and the API should return a valid chat completion response.

OS and Version?

Windows 11

Versions

Mention any other details that might be useful

The deployment was created more than 5 minutes ago.
Verified that the deployment name, endpoint, and Azure subscription are correct.
Testing with Postman using DefaultAzureCredential (via an access token) works without issues.

Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions