Skip to content

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

@jguerr06

Description

@jguerr06

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-AssignAuto assign by botMachine Learningaz mlService AttentionThis issue is responsible by Azure service team.act-codegen-extensibility-squadbugThis 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.needs-team-attentionThis issue needs attention from Azure service team or SDK team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions