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

Azure ml extension ERROR: 'ml' is misspelled or not recognized by the system. when running from Azure DEVOPS with Agent poolself-hosted #26954

Open
jguerr06 opened this issue Jul 20, 2023 · 7 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. Machine Learning az ml needs-team-attention This issue needs attention from Azure service team or SDK team Service Attention This issue is responsible by Azure service team.

Comments

@jguerr06
Copy link

Describe the bug

Trying to run the following command:
az ml compute create
From an Azure CLI script in Azure Devops. Using a self hosted agent pool to a VM we created.
Installed the latest version of Azure CLI and the latest version of Azure ml extension.
Get the following error:
ERROR: 'ml' is misspelled or not recognized by the system.
2023-07-20T19:53:49.0001918Z
2023-07-20T19:53:49.0002349Z Examples from AI knowledge base:
2023-07-20T19:53:49.0002666Z az extension add --name anextension
2023-07-20T19:53:49.0003057Z Add extension by name

Have confirmed multiple times that the server (Windows 2019) server has the extension installed correctly. Opened a Microsoft ticket
As was referred to here on this issue has stopping us from creating a machine learning compute service. Please let me know what is needed to resolve this.

Related command

az ml compute create

Errors

Get the following error:
ERROR: 'ml' is misspelled or not recognized by the system.
2023-07-20T19:53:49.0001918Z
2023-07-20T19:53:49.0002349Z Examples from AI knowledge base:
2023-07-20T19:53:49.0002666Z az extension add --name anextension
2023-07-20T19:53:49.0003057Z Add extension by name

Issue script & Debug output

2023-07-20T20:22:26.6179650Z ERROR: 'ml' is misspelled or not recognized by the system.
2023-07-20T20:22:26.6181023Z
2023-07-20T20:22:26.6182035Z Examples from AI knowledge base:
2023-07-20T20:22:26.6183140Z az extension add --name anextension
2023-07-20T20:22:26.6184125Z Add extension by name
2023-07-20T20:22:26.6184947Z
2023-07-20T20:22:26.6185878Z az extension list-available
2023-07-20T20:22:26.6186872Z List all publicly available extensions

Expected behavior

Expected to run command for create ml compute

Environment Summary

2023-07-20T20:21:51.2843945Z [command]C:\windows\system32\cmd.exe /D /S /C ""C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" --version"
2023-07-20T20:21:53.9084006Z azure-cli 2.50.0
2023-07-20T20:21:53.9085065Z
2023-07-20T20:21:53.9086144Z core 2.50.0
2023-07-20T20:21:53.9087120Z telemetry 1.0.8
2023-07-20T20:21:53.9088185Z
2023-07-20T20:21:53.9089232Z Extensions:
2023-07-20T20:21:53.9090403Z ml 2.18.0
2023-07-20T20:21:53.9091146Z
2023-07-20T20:21:53.9092022Z Dependencies:
2023-07-20T20:21:53.9092942Z msal 1.22.0
2023-07-20T20:21:53.9093894Z azure-mgmt-resource 23.1.0b2
2023-07-20T20:21:53.9094650Z
2023-07-20T20:21:53.9095642Z Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
2023-07-20T20:21:53.9096752Z Extensions directory 'C:\Windows\ServiceProfiles\NetworkService.azure\cliextensions'
2023-07-20T20:21:53.9097629Z
2023-07-20T20:21:53.9098890Z Python (Windows) 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:05:00) [MSC v.1929 32 bit (Intel)]
2023-07-20T20:21:53.9099856Z
2023-07-20T20:21:53.9100869Z Legal docs and information: aka.ms/AzureCliLegal
2023-07-20T20:21:53.9101655Z
2023-07-20T20:21:53.9102306Z
2023-07-20T20:21:53.9103157Z Your CLI is up-to-date.

Additional context

No response

@jguerr06 jguerr06 added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jul 20, 2023
@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot CXP Attention This issue is handled by CXP team. labels Jul 20, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented Jul 20, 2023

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

@ghost ghost added the Machine Learning az ml label Jul 20, 2023
@navba-MSFT
Copy link
Contributor

@jguerr06 Thanks for reaching out to us and reporting this issue. Could you please run the below command and test ?

az extension add -n ml --system -y

If the above step doesn't help, try following this article and check if that helps.

If the note of the above helps, try downgrading the CLI version azure-cli<2.40.0 That should fix this issue.

@navba-MSFT navba-MSFT self-assigned this Jul 21, 2023
@navba-MSFT navba-MSFT added the needs-author-feedback More information is needed from author to address the issue. label Jul 21, 2023
@jguerr06
Copy link
Author

Hey,
Thanks for the reply. I tried all the suggestions. Uninstalled the CLI and downgraded to 2.39 as its right below 2.40. I then reinstalled the extension with the command provided. It installed 2.19 version of ml extension. I then had an error with access to a folder that I resolved. I then restarted the server to be sure. Now it is back to the same issue as before. So no change overall. Followed the article too.

@ghost ghost added needs-team-attention This issue needs attention from Azure service team or SDK team and removed needs-author-feedback More information is needed from author to address the issue. labels Jul 21, 2023
@navba-MSFT navba-MSFT removed their assignment Jul 24, 2023
@navba-MSFT navba-MSFT added Service Attention This issue is responsible by Azure service team. and removed CXP Attention This issue is handled by CXP team. labels Jul 24, 2023
@ghost
Copy link

ghost commented Jul 24, 2023

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

Issue Details

Describe the bug

Trying to run the following command:
az ml compute create
From an Azure CLI script in Azure Devops. Using a self hosted agent pool to a VM we created.
Installed the latest version of Azure CLI and the latest version of Azure ml extension.
Get the following error:
ERROR: 'ml' is misspelled or not recognized by the system.
2023-07-20T19:53:49.0001918Z
2023-07-20T19:53:49.0002349Z Examples from AI knowledge base:
2023-07-20T19:53:49.0002666Z az extension add --name anextension
2023-07-20T19:53:49.0003057Z Add extension by name

Have confirmed multiple times that the server (Windows 2019) server has the extension installed correctly. Opened a Microsoft ticket
As was referred to here on this issue has stopping us from creating a machine learning compute service. Please let me know what is needed to resolve this.

Related command

az ml compute create

Errors

Get the following error:
ERROR: 'ml' is misspelled or not recognized by the system.
2023-07-20T19:53:49.0001918Z
2023-07-20T19:53:49.0002349Z Examples from AI knowledge base:
2023-07-20T19:53:49.0002666Z az extension add --name anextension
2023-07-20T19:53:49.0003057Z Add extension by name

Issue script & Debug output

2023-07-20T20:22:26.6179650Z ERROR: 'ml' is misspelled or not recognized by the system.
2023-07-20T20:22:26.6181023Z
2023-07-20T20:22:26.6182035Z Examples from AI knowledge base:
2023-07-20T20:22:26.6183140Z az extension add --name anextension
2023-07-20T20:22:26.6184125Z Add extension by name
2023-07-20T20:22:26.6184947Z
2023-07-20T20:22:26.6185878Z az extension list-available
2023-07-20T20:22:26.6186872Z List all publicly available extensions

Expected behavior

Expected to run command for create ml compute

Environment Summary

2023-07-20T20:21:51.2843945Z [command]C:\windows\system32\cmd.exe /D /S /C ""C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" --version"
2023-07-20T20:21:53.9084006Z azure-cli 2.50.0
2023-07-20T20:21:53.9085065Z
2023-07-20T20:21:53.9086144Z core 2.50.0
2023-07-20T20:21:53.9087120Z telemetry 1.0.8
2023-07-20T20:21:53.9088185Z
2023-07-20T20:21:53.9089232Z Extensions:
2023-07-20T20:21:53.9090403Z ml 2.18.0
2023-07-20T20:21:53.9091146Z
2023-07-20T20:21:53.9092022Z Dependencies:
2023-07-20T20:21:53.9092942Z msal 1.22.0
2023-07-20T20:21:53.9093894Z azure-mgmt-resource 23.1.0b2
2023-07-20T20:21:53.9094650Z
2023-07-20T20:21:53.9095642Z Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
2023-07-20T20:21:53.9096752Z Extensions directory 'C:\Windows\ServiceProfiles\NetworkService.azure\cliextensions'
2023-07-20T20:21:53.9097629Z
2023-07-20T20:21:53.9098890Z Python (Windows) 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:05:00) [MSC v.1929 32 bit (Intel)]
2023-07-20T20:21:53.9099856Z
2023-07-20T20:21:53.9100869Z Legal docs and information: aka.ms/AzureCliLegal
2023-07-20T20:21:53.9101655Z
2023-07-20T20:21:53.9102306Z
2023-07-20T20:21:53.9103157Z Your CLI is up-to-date.

Additional context

No response

Author: jguerr06
Assignees: -
Labels:

bug, Service Attention, Machine Learning, customer-reported, needs-team-attention, Auto-Assign

Milestone: -

@navba-MSFT
Copy link
Contributor

Adding Service team to look into this.

@hunyu
Copy link

hunyu commented Aug 7, 2023

@navba-MSFT, do we have any update for @jguerr06? What might be the root cause? and possible work around?

@jguerr06
Copy link
Author

jguerr06 commented Aug 7, 2023 via email

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. Machine Learning az ml needs-team-attention This issue needs attention from Azure service team or SDK team Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

4 participants