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 CLI v2 submit ML Job failed. command: az ml job create -f jobs/basics/hello-mlflow.yml --web #22931

Closed
JianxinLi333 opened this issue Jun 20, 2022 · 1 comment · Fixed by Azure/azure-sdk-for-python#24922
Assignees
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. CXP Attention This issue is handled by CXP team. Machine Learning az ml
Milestone

Comments

@JianxinLi333
Copy link

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

@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. Machine Learning az ml Installation labels Jun 20, 2022
@ghost ghost assigned jiasli Jun 20, 2022
@ghost ghost added this to the Backlog milestone Jun 20, 2022
@yonzhan
Copy link
Collaborator

yonzhan commented Jun 20, 2022

route to CXP team

@RakeshMohanMSFT RakeshMohanMSFT self-assigned this Jun 21, 2022
RakeshMohanMSFT added a commit to Azure/azure-sdk-for-python that referenced this issue Jun 21, 2022
@JianxinLi333 JianxinLi333 changed the title [S500]Azure ML CLI v2 submit ML Job failed. command: az ml job create -f jobs/basics/hello-mlflow.yml --web Azure ML CLI v2 submit ML Job failed. command: az ml job create -f jobs/basics/hello-mlflow.yml --web Jun 22, 2022
@RakeshMohanMSFT RakeshMohanMSFT added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jun 27, 2022
lmazuel pushed a commit to Azure/azure-sdk-for-python that referenced this issue Jun 27, 2022
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. CXP Attention This issue is handled by CXP team. Machine Learning az ml
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants