Azure Machine Learning pipelines fail due to missing space in optional component arguments when rendering runtime expression #30926
Labels
Auto-Assign
Auto assign by bot
Auto-Resolve
Auto resolve by bot
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Machine Learning
az ml
Service Attention
This issue is responsible by Azure service team.
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
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
The text was updated successfully, but these errors were encountered: