Azure / Azure/azure-cli

Unable to Authenticate Azure ML studio via CLI from ADO extension

Open
#23,486 1 comment 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad Auto-Assign customer-reported Machine Learning Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

> ### `Azure CLI version 2.24.2 *

**Related command**
az ml run submit-script -g ResourceGroupName -e ExperimentName -w copsnrtdata-prod-ml --ct compute-name -d 01-training/conda_dependencies.yml 01-training/train.py --start $1 --end $2 --twindow $3 --exptype $4

**Describe the bug**

ERROR: AuthenticationException:
Message: AzureCliAuthentication requires azure-cli>=2.30.0 to be installed in the same python environment where azureml-sdk is installed.
InnerException None
ErrorResponse
{
"error": {
"code": "UserError",
"inner_error": {
"code": "Authentication"
},
"message": "AzureCliAuthentication requires azure-cli>=2.30.0 to be installed in the same python environment where azureml-sdk is installed."
}
}

**To Reproduce**
install_requrements.sh
#!/bin/bash
echo 'install requirement script started..!'
python3 --version
echo 'Installing ml sdk!'
pip install --upgrade azure-cli
pip3 install --upgrade azureml-core~=1.36.0
pip3 install azureml-sdk
pip3 install -r setup/requirements.txt
echo 'Installing az extension..!'
az extension add --name azure-cli-ml --debug
echo "existing this step"

**Expected behavior**
The authentication should pass and ML experiment should run.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.