You maintain a Bash script that uses Azure CLI commands to provision an Azure Machine Learning development environment. The script creates a resource group, a workspace, a compute instance, a compute cluster and a data asset. The Microsoft.MachineLearningServices resource provider is already registered in the subscription.
After the workspace is created, later az ml commands must target that workspace without specifying either the resource group or workspace name on each command.
Which two changes should you make to the script? Each correct answer presents part of the solution.
Configure both the resource group and workspace as Azure CLI defaults before running the later az ml commands. Those commands can then use the configured scope without repeating either name. Provider registration and random naming are separate setup tasks that do not set CLI defaults.