Skip to content

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

Open
@ajaymaitytomra

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-AssignAuto assign by botMachine LearningService 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.extension/ml

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions