How to fix Endpoint creating failing to provision and Prompt flow deployment then fails as well.

Jacques Coetzee 20 Reputation points
2024-08-28T19:56:44.9133333+00:00

When I create a Prompt flow in Azure AI studio and try to deploy it I continue to get an issue with the endpoint trying to deploy which also causes the deployment to fail. I have done similar prompt flows on other orgs and it works correctly.

When the Azure Machine Learning Endpoint fails the details are empty including the logs and I only have this message: Endpoint "xxx" creation failed

The deployment then fails with the following message:

Prompt flow deployment "xxx" of endpoint "xxx" failed

Creating deployment

Hide details

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\":\"xxx\"}"}}", "details": [], "additionalInfo": [] } ], "additionalInfo": [ { "type": "ComponentName", "info": { "value": "managementfrontend" } }, { "type": "Correlation", "info": { "value": { "operation": "xxx", "request": "xxx" } } }, { "type": "Environment", "info": { "value": "eastus" } }, { "type": "Location", "info": { "value": "eastus" } }, { "type": "Time", "info": { "value": "2024-08-28T19:49:24.0179234+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: xxx c x-ms-correlation-request-id: REDACTED x-ms-routing-request-id: REDACTED X-Cache: REDACTED X-MSEdge-Ref: REDACTED Date: Wed, 28 Aug 2024 19:49:23 GMT Content-Length: 1414 Content-Type: application/json; charset=utf-8 Expires: -1

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,888 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,831 questions
{count} votes

Accepted answer
  1. romungi-MSFT 45,731 Reputation points Microsoft Employee
    2024-09-09T15:14:19.28+00:00

    @Jacques Coetzee Remco Volmer I think you are seeing the same issue as mentioned in this thread.

    Please go through the thread for details. To summarize, the following needs to be done to ensure the prompt flow endpoints are deployed from the studio.

    1. Delete the failed deployment.
    2. Make sure to register the the resource provider 'Microsoft.PolicyInsights'" in subscription pane from Azure portal.
    3. Recreate the endpoint.

    I hope this helps!!

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Remco Volmer 0 Reputation points
    2024-09-09T14:57:29.6233333+00:00

    Hi, I've been having the same trouble. I have been trying to deploy a promptflow to an endpoint for a client. I have tried this using Azure AI Studio and Azure Machine Learning Studio but I get the same error for the deployment of the endpoint:

    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-5a94d5ac533149fcbafdcedd4e0bf191-124fb15fa7d412d3-01\\\"}\"}}", "details": [], "additionalInfo": [] } ], "additionalInfo": [ { "type": "ComponentName", "info": { "value": "managementfrontend" } }, { "type": "Correlation", "info": { "value": { "operation": "5a94d5ac533149fcbafdcedd4e0bf191", "request": "6dcf7246c3c83829" } } }, { "type": "Environment", "info": { "value": "westeurope" } }, { "type": "Location", "info": { "value": "westeurope" } }, { "type": "Time", "info": { "value": "2024-09-09T08:07:05.8511692+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: ab3d90c5-aa3d-44f5-91cd-56ff39f04adb x-ms-correlation-request-id: REDACTED x-ms-routing-request-id: REDACTED X-Cache: REDACTED X-MSEdge-Ref: REDACTED Date: Mon, 09 Sep 2024 08:07:05 GMT Content-Length: 1422 Content-Type: application/json; charset=utf-8 Expires: -1
    

    For the endpoint itself I only states status failed: enter image description here


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.