Azure / Azure/azure-cli-extensions
`az ml job create` doesn't support non-string environment variables for component job
- Dominant language
- Python
- Stars
- 454
- Forks
- 1.7k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 64
Description
### Describe the bug
I am trying to run a command job and setting an environment variable as boolean as mentioned in [this](https://learn.microsoft.com/en-us/azure/machine-learning/how-to-read-write-data-v2?view=azureml-api-2&tabs=cli#available-mount-settings) section

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


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 --resource-group --workspace-name --file ".yaml" --stream
### Errors

### 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_
Contributor guide
Assessment
This issue has not been assessed yet.