Which two additional parameters must you add to the config.json file in order to connect to the workspace?
You create an Azure Machine Learning workspace. You are preparing a local Python environment on a laptop computer. You want to use the laptop to connect to the workspace and run experiments.
You create the following config.json file.
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.
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 . login
B . resource_group
C . subscription_id
D . key
E . region
Answer: BC
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
Latest DP-100 Dumps Valid Version with 227 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund