Not able to deploy Azure AI Studio Chatbot as a Webapp

Sagnik Mukherjee 0 Reputation points
2025-01-07T15:31:11.92+00:00

I am getting this error every time I try to deploy my prompt from Azure AI Foundry for my Chatbot, not sure how to resolve, I have checked in the service providers in Subscription that both Cognitive Search & Machine Learning are both registered.
Every time the deployment fails, would really like to know the solution.

User's image

User's image

All my resources are created in EAST US region, and the thing is my prompt is working in development however the deployment is failing every time with following results.

The request is invalid. Status: 400 (The request is invalid.) ErrorCode: BadRequest Content: { "error": { "code": "BadRequest", "message": "The request is invalid.", "details": [ { "code": "InferencingClientCallFailed", "message": "{\"error\":{\"code\":\"Validation\",\"message\":\"{\\\"errors\\\":{\\\"\\\":[\\\"This endpoint has not been created successfully or is in deleting provisioning state. Please recreate endpoint and then try again to create deployment.\\\"]},\\\"type\\\":\\\"https://tools.ietf.org/html/rfc9110#section-15.5.1\\\",\\\"title\\\":\\\"One or more validation errors occurred.\\\",\\\"status\\\":400,\\\"traceId\\\":\\\"00-a3c536f790f34c438f24bf6e7e730afa-b640816ec3910594-01\\\"}\"}}", "details": [], "additionalInfo": [] } ], "additionalInfo": [ { "type": "ComponentName", "info": { "value": "managementfrontend" } }, { "type": "Correlation", "info": { "value": { "operation": "a3c536f790f34c438f24bf6e7e730afa", "request": "96540c90f9557626" } } }, { "type": "Environment", "info": { "value": "eastus" } }, { "type": "Location", "info": { "value": "eastus" } }, { "type": "Time", "info": { "value": "2025-01-07T15:15:36.5042351+00:00" } } ] } } Headers: Cache-Control: no-cache Pragma: no-cache x-ms-throttling-version: REDACTED Request-Context: REDACTED x-ms-response-type: REDACTED Strict-Transport-Security: REDACTED X-Content-Type-Options: REDACTED x-aml-cluster: REDACTED x-request-time: REDACTED x-ms-ratelimit-remaining-subscription-resource-requests: REDACTED x-ms-request-id: dcf06482-9e56-43df-80a2-3e562f8fc8bf x-ms-correlation-request-id: REDACTED x-ms-routing-request-id: REDACTED X-Cache: REDACTED X-MSEdge-Ref: REDACTED Date: Tue, 07 Jan 2025 15:15:36 GMT Content-Length: 1414 Content-Type: application/json; charset=utf-8 Expires: -1

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,043 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 35,756 Reputation points
    2025-01-08T02:16:11.7366667+00:00

    Sagnik Mukherjee Greetings & Welcome to Microsoft Q&A forum!

    I am getting this error every time I try to deploy my prompt from Azure AI Foundry for my Chatbot, not sure how to resolve, I have checked in the service providers in Subscription that both Cognitive Search & Machine Learning are both registered. Every time the deployment fails, would really like to know the solution.

    Are you following any documentation for the steps? Did you check this Deploy an enterprise chat web app already?

    I understand that you have already added both the Cognitive Search & Machine Learning service providers in Subscription.

    The error message is indicating that there is a previous deployment which is not completed. It seems like the endpoint creation itself failed and the process went on to delete the endpoint that it started provisioning. It could be an intermittent issue that could cause this, could you retry again with a different name to check if this goes through?

    Even after retry, if you are still encountering this issue, Please follow the below steps to ensure the prompt flow endpoints are deployed from the studio.

    1. Delete the failed deployment.
    2. Make sure to re-register the resource provider Microsoft.PolicyInsights in subscription pane from Azure portal.
    3. And then recreate the endpoint.

    Please add Microsoft.Cnd along with Microsoft.PolicyInsights to your Subscription Resource Provider and see if that solves your issue.

    Go to Azure Portal --> Select your Subscription --> Select Settings --> Select Resource Providers

    Make sure you add Microsoft.PolicyInsights and Microsoft.Cnd policies. Refresh and retry deployment.

    User's image

    See Reference for similar issue.

    Do let me know if that helps or have any further queries.

    1 person found this answer 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.