
Answer-first summary for fast verification
Answer: Yes
The solution correctly uses the Workspace.get() method with all required parameters: name, subscription_id, and resource_group. According to the Azure ML SDK documentation referenced in the community discussion, this is the proper way to retrieve a workspace reference when you have the specific subscription, resource group, and workspace name. The community comments suggesting 'B' (No) appear to be incorrect based on the official Microsoft documentation. The provided code follows the exact parameter structure required by the Workspace.get() method in the azureml.core package.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You have the following Azure subscriptions and Azure Machine Learning service workspaces:
8a12e3a1-1c78-4b66-8b4e-3e01219a2a8cml-projectrg-ml-projectsYou need to obtain a reference to the ml-project workspace.
Solution: Run the following Python code:
from azureml.core import Workspace
ws = Workspace.get(name='ml-project',
subscription_id='8a12e3a1-1c78-4b66-8b4e-3e01219a2a8c',
resource_group='rg-ml-projects')
from azureml.core import Workspace
ws = Workspace.get(name='ml-project',
subscription_id='8a12e3a1-1c78-4b66-8b4e-3e01219a2a8c',
resource_group='rg-ml-projects')
Does the solution meet the goal?

A
Yes
B
No