
Answer-first summary for fast verification
Answer: No
The solution does NOT meet the goal because the Workspace.get() method requires the 'workspace_name' parameter, not 'name'. According to the Azure ML SDK documentation and the community discussion consensus (with 80% selecting 'No' and the highest upvoted comments supporting this), the correct parameter name is 'workspace_name'. The provided code uses 'name='ml-project'' which is incorrect syntax. The proper way to get a workspace reference would be Workspace.get(workspace_name='ml-project', subscription_id='12345678-1234-1234-1234-123456789abc', resource_group='my-resource-group'). The community discussion clearly shows that subscription_id, resource_group, and workspace_name are required parameters for workspace retrieval.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You have the following Azure subscriptions and Azure Machine Learning service workspaces:
12345678-1234-1234-1234-123456789abc, Workspace: ml-experimentation12345678-1234-1234-1234-123456789abc, Workspace: ml-project22345678-1234-1234-1234-123456789abc, Workspace: ml-productionYou 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='12345678-1234-1234-1234-123456789abc',
resource_group='my-resource-group')
from azureml.core import Workspace
ws = Workspace.get(name='ml-project',
subscription_id='12345678-1234-1234-1234-123456789abc',
resource_group='my-resource-group')
Does the solution meet the goal?

A
Yes
B
No