Azure / azure-cli

Azure Command-Line Interface
MIT License
3.97k stars 2.95k forks source link

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 1 year ago

jguerr06 commented 1 year ago

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

yonzhan commented 1 year ago

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

navba-MSFT commented 1 year ago

@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.

jguerr06 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Adding Service team to look into this.

hunyu commented 1 year ago

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

jguerr06 commented 1 year ago

Hey, Issue was not resolved but ran it with ARM template and it worked. Still looking to find answer for CLI command.

Jose A. Guerrero, Application Engineering Services (AES) Application Engineer Application Technical Operations (ATO), MMC Tech T +1 201 284 3361 M +1 201 716 9351

Marsh McLennan, 445 South St Suite 210, Morristown, NJ, 07960 www.mmc.comhttp://www.mmc.com/ MMC GL ATO AES EPM support (TKT CREATOR) @.**@.>

From: Hung-Chun Yu @.> Sent: Monday, August 07, 2023 4:55 PM To: Azure/azure-cli @.> Cc: Guerrero, Jose @.>; Mention @.> Subject: Re: [Azure/azure-cli] Azure ml extension ERROR: 'ml' is misspelled or not recognized by the system. when running from Azure DEVOPS with Agent poolself-hosted (Issue #26954)

@navba-MSFThttps://urldefense.com/v3/__https:/github.com/navba-MSFT__;!!O7V3aRRsHkZJLA!Bhs8aYNiVkEAiZ298mBQAKdCGmIxebfaOu8DUVobDg7YbgAjZmpj6QyofTkkrchDUOlOJnPyLQa7uRjIaj1AC4QKCA$, do we have any update for @jguerr06https://urldefense.com/v3/__https:/github.com/jguerr06__;!!O7V3aRRsHkZJLA!Bhs8aYNiVkEAiZ298mBQAKdCGmIxebfaOu8DUVobDg7YbgAjZmpj6QyofTkkrchDUOlOJnPyLQa7uRjIaj0p3eJHRQ$? What might be the root cause? and possible work around?

- Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/Azure/azure-cli/issues/26954*issuecomment-1668565240__;Iw!!O7V3aRRsHkZJLA!Bhs8aYNiVkEAiZ298mBQAKdCGmIxebfaOu8DUVobDg7YbgAjZmpj6QyofTkkrchDUOlOJnPyLQa7uRjIaj03qIwrOA$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AQBXBVNJYOSAW4URHDSPNRLXUFIZ7ANCNFSM6AAAAAA2R6BN3Y__;!!O7V3aRRsHkZJLA!Bhs8aYNiVkEAiZ298mBQAKdCGmIxebfaOu8DUVobDg7YbgAjZmpj6QyofTkkrchDUOlOJnPyLQa7uRjIaj3Sg4Q90w$. You are receiving this because you were mentioned.Message ID: @.**@.>>



This e-mail, including any attachments that accompany it, may contain information that is confidential or privileged. This e-mail is intended solely for the use of the individual(s) to whom it was intended to be addressed. If you have received this e-mail and are not an intended recipient, any disclosure, distribution, copying or other use or retention of this email or information contained within it are prohibited. If you have received this email in error, please immediately reply to the sender via e-mail and also permanently delete all copies of the original message together with any of its attachments from your computer or device.