Skip to content

Azure Machine Learning pipelines fail due to missing space in optional component arguments when rendering runtime expression #30926

@donin1129

Description

@donin1129

Describe the bug

We try to follow the recommendation of using optional inputs as described here:
https://learn.microsoft.com/en-us/azure/machine-learning/how-to-manage-inputs-outputs-pipeline?view=azureml-api-2&tabs=cli#define-optional-inputs
But our pipeline throw error unrecognized arguments.

Related command

az ml component create -f XXX.yaml
az ml job create -f XXX.yaml

Errors

In our command component, we added

Image

And we got following error from our pipeline job

Error: train.py: error: unrecognized arguments: --max_epocs5

Issue script & Debug output

There is no error when using the cli tool directly.
The error happens when our pipeline in Azure Machine Learning runs.

Expected behavior

No error should exist and optional parameter should be provided correctly.

Environment Summary

azure-cli 2.68.0 *

core 2.68.0 *
telemetry 1.1.0

Extensions:
ml 2.35.0

Dependencies:
msal 1.31.1
azure-mgmt-resource 23.1.1

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\z005230u.azure\cliextensions'

Python (Windows) 3.12.8 (tags/v3.12.8:2dc476b, Dec 3 2024, 19:30:04) [MSC v.1942 64 bit (AMD64)]

Additional context

No response

Metadata

Metadata

Labels

Auto-AssignAuto assign by botAuto-ResolveAuto resolve by botMachine Learningaz mlService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions