Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az ml job create doesn't support non-string environment variables for component job #8475

Open
ajaymaitytomra opened this issue Feb 14, 2025 · 3 comments
Labels
Auto-Assign Auto assign 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. extension/ml Machine Learning Service Attention This issue is responsible by Azure service team.

Comments

@ajaymaitytomra
Copy link

ajaymaitytomra commented Feb 14, 2025

Describe the bug

I am trying to run a command job and setting an environment variable as boolean as mentioned in this section

Image

But running this job using az ml job create gives validation error that an environment variable needs to be a string.

Image

Image

Even tried with --skip-validation parameter, but it conveniently ignores that parameter and still throws that error. Any help?

Related command

az ml job create --subscription <sub_id> --resource-group --workspace-name --file "<file_path>.yaml" --stream

Errors

Image

Issue script & Debug output

...

Expected behavior

Ability to accept boolean values as environment variables in a command Job as explained in the link: https://learn.microsoft.com/en-us/azure/machine-learning/how-to-read-write-data-v2?view=azureml-api-2&tabs=cli#available-mount-settings

Environment Summary

azure-cli 2.69.0

core 2.69.0
telemetry 1.1.0

Extensions:
ml 2.35.0

Dependencies:
msal 1.31.2b1
azure-mgmt-resource 23.1.1

Python location '/anaconda/envs/azureml_py38/bin/python'
Config directory '/home/azureuser/.azure'
Extensions directory '/opt/az/extensions'

Python (Linux) 3.10.11 | packaged by conda-forge | (main, May 10 2023, 18:58:44) [GCC 11.3.0]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

No response

@ajaymaitytomra ajaymaitytomra added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Feb 14, 2025
@yonzhan
Copy link
Collaborator

yonzhan commented Feb 14, 2025

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added question The issue doesn't require a change to the product in order to be resolved. Most issues start as that customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Service Attention This issue is responsible by Azure service team. Machine Learning extension/ml labels Feb 14, 2025
Copy link
Contributor

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureml-github.

@yonzhan yonzhan removed the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label Feb 15, 2025
@ajaymaitytomra
Copy link
Author

ajaymaitytomra commented Feb 24, 2025

Hey @yonzhan, any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign 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. extension/ml Machine Learning Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

2 participants