The workspace configuration file config.json, could not be found

Mohammed Z Dwedar 5 Reputation points
2023-03-06T15:38:33.2733333+00:00

I'm building a batch inference pipeline azureml.pipeline. I've placed the config.json in the directory and passed it explicitly

ws = Workspace.from_config(path='ranking/config.json')

I tried to let azure find it:

ws = Workspace.from_config()

but in both cases, azure sdk doesn't seem to acknowledge the file.

The First:

"error": {

    "code": "UserError",

    "message": "The workspace configuration file config.json, could not be found in /tmp/44660cc1-2a72-49df-af2b-e41226727952/azureml-bi/114/ranking/config.json or its parent directories. Please check whether the workspace configuration file exists, or provide the full path to the configuration file as an argument. You can download a configuration file for your workspace, via http://ml.azure.com and clicking on the name of your workspace in the right top."

}

The second:

"error": {

    "code": "UserError",

    "message": "The workspace configuration file config.json, could not be found in /tmp/44660cc1-2a72-49df-af2b-e41226727952/azureml-bi/114/ or its parent directories. Please check whether the workspace configuration file exists, or provide the full path to the configuration file as an argument. You can download a configuration file for your workspace, via http://ml.azure.com and clicking on the name of your workspace in the right top."

}
Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,334 questions
{count} vote

1 answer

Sort by: Most helpful
  1. VasaviLankipalle-MSFT 18,676 Reputation points Moderator
    2023-03-13T19:18:55.37+00:00

    Hi @Mohammed Z Dwedar , Thanks for using Microsoft Q&A Platform.

    It looks like you are encountering an error when attempting to connect to your Azure Machine Learning workspace via the Workspace.from_config() method. The error message indicates that the config.json file was not found in the specified directory or any of its subdirectories.

    If haven't tried already I request, you to try the following steps to resolve the issue:

    1. Make sure that the config.json file exists in the specified directory or one of its subdirectories. Also, check to see the subscription ID, resource group name, and workspace name are all correct in the config.json file.
    2. If the file exists, check that the path to it is correctly specified, also try passing the full path to the configuration file to the workspace.from_config(path='<full-path-to-config.json>') method as an argument.

    You can check this documentation for your reference: https://learn.microsoft.com/en-us/azure/machine-learning/how-to-configure-environment#local-and-dsvm-only-create-a-workspace-configuration-file

    Please try all of these options and let us know if you know require any help.

    I hope it helps.

    Please kindly accept the answer and vote 'Yes' if you feel helpful to support the community, thanks.

    Regards,
    Vasavi

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.