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 compute create with --idle-time-before-scale-down is not working #26674

Closed
cjoakim opened this issue Jun 14, 2023 · 2 comments
Closed

az ml compute create with --idle-time-before-scale-down is not working #26674

cjoakim opened this issue Jun 14, 2023 · 2 comments
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. CXP Attention This issue is handled by CXP team. Machine Learning az ml

Comments

@cjoakim
Copy link

cjoakim commented Jun 14, 2023

Describe the bug

az ml compute create --name $Env:computename --size $Env:computesize
--type ComputeInstance --resource-group $Env:rg
--workspace-name $Env:name `
--idle-time-before-scale-down "1800"

Results in this error message:
The command failed with an unexpected error. Here is the traceback:
Validation for ComputeInstanceSchema failed:

{
"idle_time_before_scale_down": [
"Unknown field."
]
}

I've tried passing the seconds value as both an integer and a string (i.e. - 1800 and "1800")

Related command

az ml compute create --name $Env:computename --size $Env:computesize
--type ComputeInstance --resource-group $Env:rg
--workspace-name $Env:name `
--idle-time-before-scale-down "1800"

Errors

The command failed with an unexpected error. Here is the traceback:
Validation for ComputeInstanceSchema failed:

{
"idle_time_before_scale_down": [
"Unknown field."
]
}

Issue script & Debug output

Validation for ComputeInstanceSchema failed:

{
"idle_time_before_scale_down": [
"Unknown field."
]
}

Expected behavior

Expected that the compute VM would be created with the configured idle time.

The compute was not created.

Environment Summary

az --version
azure-cli 2.49.0

core 2.49.0
telemetry 1.0.8

Extensions:
ml 2.18.0
spring 1.13.2
stream-analytics 0.1.2

Dependencies:
msal 1.20.0
azure-mgmt-resource 22.0.0

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

Python (Windows) 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:05:00) [MSC v.1929 32 bit (Intel)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

az --version
azure-cli 2.49.0

core 2.49.0
telemetry 1.0.8

Extensions:
ml 2.18.0
spring 1.13.2
stream-analytics 0.1.2

Dependencies:
msal 1.20.0
azure-mgmt-resource 22.0.0

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

Python (Windows) 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:05:00) [MSC v.1929 32 bit (Intel)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

@cjoakim cjoakim added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jun 14, 2023
@azure-client-tools-bot-prd
Copy link

Hi @cjoakim,

This is not the official Azure CLI published by Microsoft.

How to tell if the installed Azure CLI is unofficial:

Please follow https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux to install Microsoft official Azure CLI.

If you feel that further discussion is needed, please add a comment with the text /clibot unresolve to reopen the issue.

@ghost ghost added the Auto-Assign Auto assign by bot label Jun 14, 2023
@azure-client-tools-bot-prd azure-client-tools-bot-prd bot added the Auto-Resolve Auto resolve by bot label Jun 14, 2023
@ghost ghost added CXP Attention This issue is handled by CXP team. Machine Learning az ml labels Jun 14, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented Jun 14, 2023

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

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 Auto-Resolve Auto resolve by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. CXP Attention This issue is handled by CXP team. Machine Learning az ml
Projects
None yet
Development

No branches or pull requests

2 participants