MSDN Azure Documentation

Getting Started with Azure AI Machine Learning

Welcome to the Azure AI Machine Learning documentation. This guide will walk you through the essential steps to begin your journey with our powerful cloud-based platform for building, training, and deploying machine learning models at scale.

What is Azure AI Machine Learning?

Azure AI Machine Learning is a fully managed cloud service that you can use to train, deploy, manage, and monitor machine learning models. It provides a comprehensive environment for data scientists and developers to build and manage their ML lifecycle. Key features include:

Prerequisites

Before you begin, ensure you have the following:

Step 1: Create an Azure AI Machine Learning Workspace

1

Sign in to the Azure portal

Navigate to the Azure portal and sign in with your Azure account credentials.

2

Create a new Azure AI Machine Learning resource

In the Azure portal, search for "Azure AI Machine Learning" and select "Create". Follow the prompts to configure your workspace, including resource group, region, and workspace name.

3

Configure storage and networking (optional)

You can choose to use default settings or configure custom storage accounts and virtual networks for enhanced security and control.

Tip: Workspaces are the foundational resource for Azure AI Machine Learning. They organize all your assets and provide access control.

Step 2: Set up Your Development Environment

You have several options for interacting with your Azure AI Machine Learning workspace:

Option 1: Azure Machine Learning Studio (Web Interface)

The Azure Machine Learning studio is a web-based portal that provides a user-friendly interface for managing your ML projects. It includes tools for data preparation, model training (Designer), automated ML, and notebook integration.

To access it, go to ml.azure.com and sign in with your Azure account.

Option 2: Azure Machine Learning SDK (Python)

For programmatic access and automation, use the Azure Machine Learning SDK for Python. This allows you to interact with your workspace using Python scripts.

Installation:

pip install azure-ai-ml azure-identity

Authentication and Workspace Connection:


from azure.ai.ml import MLClient
from azure.identity import DefaultAzureCredential

# Authenticate using Azure Identity
credential = DefaultAzureCredential()

# Replace with your subscription ID, resource group, and workspace name
subscription_id = "YOUR_SUBSCRIPTION_ID"
resource_group = "YOUR_RESOURCE_GROUP"
workspace_name = "YOUR_WORKSPACE_NAME"

ml_client = MLClient(
    credential=credential,
    subscription_id=subscription_id,
    resource_group=resource_group,
    workspace_name=workspace_name,
)

print(f"Connected to workspace: {ml_client.workspace_name}")
            

Option 3: Azure CLI Extension

The Azure CLI provides commands to manage your Azure AI Machine Learning resources from the command line.

Installation:

az extension add -n ml

Login and Set Default Workspace:


az login
az account set --subscription "YOUR_SUBSCRIPTION_ID"
az configure --defaults group="YOUR_RESOURCE_GROUP" workspace="YOUR_WORKSPACE_NAME"
            

Step 3: Your First ML Project

Once your workspace is set up and your development environment is configured, you can start your first machine learning project. This typically involves:

  1. Uploading or connecting to your data.
  2. Choosing a model training method (e.g., Automated ML, Designer, custom scripts).
  3. Training your model.
  4. Evaluating and registering your model.
  5. Deploying your model as a web service.

Next Steps: Explore the Tutorials section to follow step-by-step guides for common ML scenarios.

We are excited to have you on board with Azure AI Machine Learning. Happy modeling!