I'm suddenly getting a 400 error when validating a component spec in Azure ML that worked before—any idea what might have changed or how to troubleshoot it?

Nikhil Pothineni 55 Reputation points
2025-06-11T09:30:49.58+00:00

User's image

Getting this error in my workspaces when I try to register a component earlier it was working perfectly I even tried registering components that are given as examples in the azure ml examples repository it also getting the same error. Any idea how to debug it and can anyone explain what is this error

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,336 questions
{count} vote

Accepted answer
  1. JAYA SHANKAR G S 4,035 Reputation points Microsoft External Staff Moderator
    2025-06-13T12:26:13.8033333+00:00

    Hello @Nikhil Pothineni ,

    It seems to be a temporary issue, till yesterday it was giving error like you mentioned.

    I can confirm now you can create component successfully.

    Below is the sample training component i have registered.

    $schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json
    name: my_train
    display_name: Train_upper_case
    #version: 1b
    type: command
    inputs:
      training_data: 
        type: uri_folder
      max_epocs:
        type: integer
        min: 0
        max: 100
      learning_rate: 
        type: number
        default: 0.01
      learning_rate_schedule: 
        type: string
        default: time-based 
        enum:
            - "step"
            - "time-based"
    
    
    outputs:
      model_output:
        type: uri_folder
    code: .
    environment: azureml://registries/azureml/environments/sklearn-1.5/labels/latest
    command: >-
      python train.py 
      --training_data ${{inputs.training_data}} 
      --max_epocs ${{inputs.max_epocs}}   
      --learning_rate ${{inputs.learning_rate}}
      --learning_rate_schedule ${{inputs.learning_rate_schedule}} 
      --model_output ${{outputs.model_output}}
    
    

    Here, my train.py and train.yml are in sample folder so i given . for code.

    Created successfully.

    enter image description here

    If you still facing any error please add your yaml file content in comments so that i can reproduce the issue from my end.

    Thank you


1 additional answer

Sort by: Most helpful
  1. Nikhil Pothineni 55 Reputation points
    2025-06-16T08:47:39.53+00:00

    Thank you guys it is working now no worries thanks for helping

    0 comments No comments

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.