Skip to content

Commit cdb5b05

Browse files
authored
Update how-to-troubleshoot-environments.md
1 parent ef56d4c commit cdb5b05

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

articles/machine-learning/how-to-troubleshoot-environments.md

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,8 +871,43 @@ Ensure that you're using a compatible python version
871871
* [mpi4py installation](https://aka.ms/azureml/environment/install-mpi4py)
872872

873873
### Interactive auth was attempted
874-
- Failed to create or update the conda environment because pip attempted interactive authentication
875-
- Instead, provide authentication via [workspace connection](https://aka.ms/azureml/environment/set-connection-v1)
874+
<!--issueDescription-->
875+
This can happen when pip attempts interactive authentication during package installation.
876+
877+
**Potential causes:**
878+
* You've listed a package that requires authentication, but you haven't provided credentials
879+
* During the image build, pip tries to prompt the user to authenticate which fails the build
880+
because the user can't provide authentication during the running of the build
881+
882+
**Affected areas (symptoms):**
883+
* Failure in building environments from UI, SDK, and CLI.
884+
* Failure in running jobs because it will implicitly build the environment in the first step.
885+
<!--/issueDescription-->
886+
887+
**Troubleshooting steps**
888+
889+
Provide authentication via workspace connections
890+
891+
*Applies to: Python SDK azureml V1*
892+
893+
```
894+
from azureml.core import Workspace
895+
ws = Workspace.from_config()
896+
ws.set_connection("connection1", "PythonFeed", "<URL>", "Basic", "{'Username': '<username>', 'Password': '<password>'}")
897+
```
898+
899+
*Applies to: Azure CLI extensions V1 & V2*
900+
901+
Create a workspace connection from a YAML specification file
902+
903+
```
904+
az ml connection create --file connection.yml --resource-group my-resource-group --workspace-name my-workspace
905+
```
906+
907+
**Resources**
908+
* [Python SDK AzureML v1 workspace connections](https://aka.ms/azureml/environment/set-connection-v1)
909+
* [Python SDK AzureML v2 workspace connections](https://learn.microsoft.com/python/api/azure-ai-ml/azure.ai.ml.entities.workspaceconnection?view=azure-python-preview)
910+
* [Azure CLI workspace connections](https://learn.microsoft.com/cli/azure/ml/connection?view=azure-cli-latest)
876911

877912
### Forbidden blob
878913
- Failed to create or update the conda environment because a blob contained in the associated storage account was inaccessible

0 commit comments

Comments
 (0)