Share via

endpoint creation failed

T2023 0 Reputation points
2025-07-27T12:33:26.83+00:00

I am a newbie and I make the tutorial AI ML:

I am using the following command to create an endpoint


# define an online endpoint
endpoint = ManagedOnlineEndpoint(
    name=online_endpoint_name,
    description="this is an online endpoint",
    auth_mode="key",
    tags={
        "training_dataset": "credit_defaults",
    },
)

endpoint = ml_client.online_endpoints.begin_create_or_update(endpoint).result()

But I get error:

HttpResponseError: (BadRequest) The request is invalid. Code: BadRequest Message: The request is invalid. Exception Details: (InferencingClientCallFailed) {

  1. Endpoint Name: It is unique it is setup by tutorial
  2. Authentication Mode: it is setup by tutorial to 'key' I expect to be ok
  3. Model Configuration: I expect to o be ok, since I use a tutorial
  4. Resource Availability: I have compute instances, but I don't know the limitations of a free acount
  5. Logs and Details: Preiously I had an unregistred resource error. I have fix it by registering Microsoft.PolicyInsights

Can anyone help me ? It is a setup issue ? I performed all the command from depoy-model.ipynb

Azure Machine Learning
0 comments No comments

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 41,291 Reputation points Volunteer Moderator
    2026-04-07T15:05:17.3466667+00:00

    Hello !

    Thank you for posting on MS Learn Q&A.

    I think you have you have an issue with your subscription setup or the resource provider registration itself than a problem with your code.

    You need to registerMicrosoft.PolicyInsights and Microsoft.Cdn and then delete the failed endpoint and recreate it.

    You can follow the steps in this old thread : https://dotnet.territoriali.olinfo.it/en-us/answers/questions/1983847/error-while-creating-a-managed-online-endpoint-in

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.