From e8a519df9d16203f72fd223294d8e56703277dc8 Mon Sep 17 00:00:00 2001 From: Jeff Shepherd Date: Mon, 10 Oct 2022 14:44:15 -0700 Subject: [PATCH] Search deeper in from_config so that config.json is found in Compute Instance --- sdk/ml/azure-ai-ml/CHANGELOG.md | 1 + sdk/ml/azure-ai-ml/azure/ai/ml/_ml_client.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/ml/azure-ai-ml/CHANGELOG.md b/sdk/ml/azure-ai-ml/CHANGELOG.md index 06b1fe554ca9..bcfd24a97a11 100644 --- a/sdk/ml/azure-ai-ml/CHANGELOG.md +++ b/sdk/ml/azure-ai-ml/CHANGELOG.md @@ -24,6 +24,7 @@ - Workspace ManagedServiceIdentity has been replaced by IdentityConfiguration. ### Bugs Fixed +- MLClient.from_config can now find the default config.json on Compute Instance when running sample notebooks. ### Other Changes - Switched Compute operations to use Oct preview API version. diff --git a/sdk/ml/azure-ai-ml/azure/ai/ml/_ml_client.py b/sdk/ml/azure-ai-ml/azure/ai/ml/_ml_client.py index 87e77c9605c8..bbc7d7d8a1cd 100644 --- a/sdk/ml/azure-ai-ml/azure/ai/ml/_ml_client.py +++ b/sdk/ml/azure-ai-ml/azure/ai/ml/_ml_client.py @@ -513,7 +513,7 @@ def from_config( path=path, file_name=curr_file, directory_name=curr_dir, - num_levels=5, + num_levels=20, ) if found_path: break