Skill 1.3.2

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

Key Concepts

A Bicep file declares the storage account, key vault, Application Insights, container registry and the Microsoft.MachineLearningServices/workspaces resource that references them, with parameters for names, regions and network settings. az deployment group create deploys it, and running it again changes only what differs, which makes deployments idempotent. az deployment group what-if previews the changes before they are applied.

Resources inside the workspace, such as compute clusters, datastores, environments and endpoints, are usually created with the Azure CLI ml extension from YAML files: az ml compute create --file cluster.yml, az ml environment create and so on. Keeping both the Bicep files and the YAML definitions in Git gives a complete, reviewable description of the platform.