Skip to content

Unable to Authenticate Azure ML studio via CLI from ADO extension #23486

@abbassayyed-msft

Description

@abbassayyed-msft

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions