Setup Local Environment for Development

Source: Install and set up the CLI

Installing Azure CLI

The Azure command-line interface (Azure CLI) is a set of commands used to create and manage Azure resources. The Azure CLI is available across Azure services and is designed to get you working quickly with Azure, with an emphasis on automation.

The machine learning (ml) extension (preview) to the Azure CLI is the enhanced interface for Azure Machine Learning. It enables you to train and deploy models from the command line, with features that accelerate scaling data science up and out while tracking the model lifecycle.

To use the CLI commands in your local environment, you can install Azure CLI here.

Prerequisites: To use the Azure CLI, you must have an Azure subscription.

To check or upgrade the version of your Azure CLI, and to install the ml extension to the Azure CLI installed in your local environment, see: Azure CLI Installation.

Run the help command to verify your installation and see available subcommands:

az ml -h 

Connect to AML

With an Azure subscription, you can connect our local environment to Azure services using Azure CLI. See Azure CLI Configuration for more details.

This allows you:

  • To set up your the subscription account used by your local environment.
  • To set common variables for your resource group, such as name and location to create the resources.
  • To create Azure resource group.
  • To create a machine learning workspace.
  • To configure the resource group and workspace that have been created with the common variables set.

Run the following command to see the default Azure settings in your local environment in a table format:

az configure -l -o table