[Python] Create AzureML job without running it

Discussão em 'Python' iniciado por Stack, Março 17, 2025.

  1. Stack

    Stack Membro Participativo

    Using the AzureML API V2 for python I want to create an AzureML job without running it. The job is supposed to start only when triggered in the AzureML Web UI. How can I achieve that?

    When I create the job as follows it runs right away:

    from azure.ai.ml import MLClient, command
    from azure.identity import DefaultAzureCredential


    @dsl.pipeline
    def my_job:
    command(command="echo 'Hello'")

    ml_client = MLClient(
    subscription_id=subscription_id,
    resource_group_name=resource_group,
    credential=DefaultAzureCredential()
    )
    ml_client.jobs.create_or_update(my_job())

    Continue reading...

Compartilhe esta Página