PdfPrep.com

Which two additional parameters must you add to the config.json file in order to connect to the workspace?

You must use the Azure Machine Learning SDK to interact with data and experiments in the workspace. You need to configure the config.json file to connect to the workspace from the Python environment.

You create the following config.json file.

Which two additional parameters must you add to the config.json file in order to connect to the workspace? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
A . subscription_Id
B . Key
C . resource_group
D . region
E . Login

Answer: A,C

Explanation:

To use the same workspace in multiple environments, create a JSON configuration file. The configuration file saves your subscription (subscription_id), resource (resource_group), and workspace name so that it can be easily loaded.

The following sample shows how to create a workspace.

from azureml.core import Workspace

ws = Workspace.create(name=’myworkspace’,

subscription_id='<azure-subscription-id>’,

resource_group=’myresourcegroup’,

create_resource_group=True,

location=’eastus2′

)

Reference: https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.core.workspace.workspace

Exit mobile version