Skip to content

Azure ML CLI v2 submit ML Job failed. command: az ml job create -f jobs/basics/hello-mlflow.yml --web #22931

@JianxinLi333

Description

@JianxinLi333

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

az version
{
"azure-cli": "2.37.0",
"azure-cli-core": "2.37.0",
"azure-cli-telemetry": "1.0.6",
"extensions": {
"ml": "2.5.0"
}
}

Related command

az ml job create -f jobs/basics/hello-mlflow.yml --web

Describe the bug

When follow the document https://docs.microsoft.com/en-us/azure/machine-learning/how-to-train-cli to submit ML job to China Azure ML Workspace, Command az ml job create -f jobs/basics/hello-mlflow.yml --web raised the error: Error with code: Unable to determine account name for shared key credential.

image

To Reproduce

Expected behavior

In the code “/azure/ai/ml/_azure_environments.py” in the CLI v2, it sets the storage URL in Azure China to :
ENDPOINT_URLS.STORAGE_ENDPOINT=".core.chinacloudapi.cn”
But it should be
ENDPOINT_URLS.STORAGE_ENDPOINT="core.chinacloudapi.cn”

image

I manually changed the code and now AML SDK v2 can run in Azure China.
image

Environment summary

Additional context

Metadata

Metadata

Labels

Auto-AssignAuto assign by botCXP AttentionThis issue is handled by CXP team.Machine Learningaz mlbugThis 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.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions