Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Deploy Machine Learning workspaces and resources by using Bicep and Azure CLI

A worked example

Multiple answers

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.

Choose 2 answers.
Why

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.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free