title | titleSuffix | description | services | author | ms.author | ms.reviewer | ms.service | ms.subservice | ms.topic | ms.date |
---|---|---|---|---|---|---|---|---|---|---|
Create and manage resources VS Code extension (preview) |
Azure Machine Learning |
Learn how to create and manage Azure Machine Learning resources using the Azure Machine Learning Visual Studio Code extension. |
machine-learning |
luisquintanilla |
luquinta |
luquinta |
machine-learning |
core |
how-to |
05/25/2021 |
Learn how to manage Azure Machine Learning resources with the VS Code extension.
- Azure subscription. If you don't have one, sign up to try the free or paid version of Azure Machine Learning.
- Visual Studio Code. If you don't have it, install it.
- Azure Machine Learning extension. Follow the Azure Machine Learning VS Code extension installation guide to set up the extension.
The quickest way to create resources is using the extension's toolbar.
- Open the Azure Machine Learning view.
- Select + in the activity bar.
- Choose your resource from the dropdown list.
- Configure the specification file. The information required depends on the type of resource you want to create.
- Right-click the specification file and select Azure ML: Create Resource.
Alternatively, you can create a resource by using the command palette:
- Open the command palette View > Command Palette
- Enter
> Azure ML: Create <RESOURCE-TYPE>
into the text box. ReplaceRESOURCE-TYPE
with the type of resource you want to create. - Configure the specification file.
- Open the command palette View > Command Palette
- Enter
> Azure ML: Create Resource
into the text box.
Some resources like environments, datasets, and models allow you to make changes to a resource and store the different versions.
To version a resource:
- Use the existing specification file that created the resource or follow the create resources process to create a new specification file.
- Increment the version number in the template.
- Right-click the specification file and select Azure ML: Create Resource.
As long as the name of the updated resource is the same as the previous version, Azure Machine Learning picks up the changes and creates a new version.
For more information, see workspaces.
- In the Azure Machine Learning view, right-click your subscription node and select Create Workspace.
- A specification file appears. Configure the specification file.
- Right-click the specification file and select Azure ML: Create Resource.
Alternatively, use the > Azure ML: Create Workspace
command in the command palette.
- Expand the subscription node that contains your workspace.
- Right-click the workspace you want to remove.
- Select whether you want to remove:
- Only the workspace: This option deletes only the workspace Azure resource. The resource group, storage accounts, and any other resources the workspace was attached to are still in Azure.
- With associated resources: This option deletes the workspace and all resources associated with it.
Alternatively, use the > Azure ML: Remove Workspace
command in the command palette.
The extension currently supports datastores of the following types:
- Azure Blob
- Azure Data Lake Gen 1
- Azure Data Lake Gen 2
- Azure File
For more information, see datastores.
- Expand the subscription node that contains your workspace.
- Expand the workspace node you want to create the datastore under.
- Right-click the Datastores node and select Create Datastore.
- Choose the datastore type.
- A specification file appears. Configure the specification file.
- Right-click the specification file and select Azure ML: Create Resource.
Alternatively, use the > Azure ML: Create Datastore
command in the command palette.
- Expand the subscription node that contains your workspace.
- Expand your workspace node.
- Expand the Datastores node inside your workspace.
- Right-click the datastore you want to:
- Unregister Datastore. Removes datastore from your workspace.
- View Datastore. Display read-only datastore settings
Alternatively, use the > Azure ML: Unregister Datastore
and > Azure ML: View Datastore
commands respectively in the command palette.
The extension currently supports the following dataset types:
- Tabular: Allows you to materialize data into a DataFrame.
- File: A file or collection of files. Allows you to download or mount files to your compute.
For more information, see datasets
- Expand the subscription node that contains your workspace.
- Expand the workspace node you want to create the dataset under.
- Right-click the Datasets node and select Create Dataset.
- A specification file appears. Configure the specification file.
- Right-click the specification file and select Azure ML: Create Resource.
Alternatively, use the > Azure ML: Create Dataset
command in the command palette.
- Expand the subscription node that contains your workspace.
- Expand your workspace node.
- Expand the Datasets node.
- Right-click the dataset you want to:
- View Dataset Properties. Lets you view metadata associated with a specific dataset. If you have multiple version of a dataset, you can choose to only view the dataset properties of a specific version by expanding the dataset node and performing the same steps described in this section on the version of interest.
- Preview dataset. View your dataset directly in the VS Code Data Viewer. Note that this option is only available for tabular datasets.
- Unregister dataset. Removes a dataset and all versions of it from your workspace.
Alternatively, use the > Azure ML: View Dataset Properties
and > Azure ML: Unregister Dataset
commands respectively in the command palette.
For more information, see environments.
- Expand the subscription node that contains your workspace.
- Expand the workspace node you want to create the datastore under.
- Right-click the Environments node and select Create Environment.
- A specification file appears. Configure the specification file.
- Right-click the specification file and select Azure ML: Create Resource.
Alternatively, use the > Azure ML: Create Environment
command in the command palette.
To view the dependencies and configurations for a specific environment in the extension:
- Expand the subscription node that contains your workspace.
- Expand your workspace node.
- Expand the Environments node.
- Right-click the environment you want to view and select View Environment.
Alternatively, use the > Azure ML: View Environment
command in the command palette.
For more information, see experiments.
The quickest way to create a job is by clicking the Create Job icon in the extension's activity bar.
Using the resource nodes in the Azure Machine Learning view:
- Expand the subscription node that contains your workspace.
- Expand your workspace node.
- Right-click the Experiments node in your workspace and select Create Job.
- Choose your job type.
- A specification file appears. Configure the specification file.
- Right-click the specification file and select Azure ML: Create Resource.
Alternatively, use the > Azure ML: Create Job
command in the command palette.
To view your job in Azure Machine Learning Studio:
- Expand the subscription node that contains your workspace.
- Expand the Experiments node inside your workspace.
- Right-click the experiment you want to view and select View Experiment in Studio.
- A prompt appears asking you to open the experiment URL in Azure Machine Learning studio. Select Open.
Alternatively, use the > Azure ML: View Experiment in Studio
command respectively in the command palette.
As you're running your job, you may want to see its progress. To track the progress of a run in Azure Machine Learning studio from the extension:
- Expand the subscription node that contains your workspace.
- Expand the Experiments node inside your workspace.
- Expand the job node you want to track progress for.
- Right-click the run and select View Run in Studio.
- A prompt appears asking you to open the run URL in Azure Machine Learning studio. Select Open.
Once a run is complete, you may want to download the logs and assets such as the model generated as part of a run.
- Expand the subscription node that contains your workspace.
- Expand the Experiments node inside your workspace.
- Expand the job node you want to download logs and outputs for.
- Right-click the run:
- To download the outputs, select Download outputs.
- To download the logs, select Download logs.
Alternatively, use the > Azure ML: Download Outputs
and > Azure ML: Download Logs
commands respectively in the command palette.
For more information, see compute instances.
- Expand the subscription node that contains your workspace.
- Expand your workspace node.
- Expand the Compute node.
- Right-click the Compute instances node in your workspace and select Create Compute.
- A specification file appears. Configure the specification file.
- Right-click the specification file and select Azure ML: Create Resource.
Alternatively, use the > Azure ML: Create Compute
command in the command palette.
To use a compute instance as a development environment or remote Jupyter server, see Connect to a compute instance.
- Expand the subscription node that contains your workspace.
- Expand your workspace node.
- Expand the Compute instances node inside your Compute node.
- Right-click the compute instance you want to stop or restart and select Stop Compute instance or Restart Compute instance respectively.
Alternatively, use the > Azure ML: Stop Compute instance
and Restart Compute instance
commands respectively in the command palette.
- Expand the subscription node that contains your workspace.
- Expand your workspace node.
- Expand the Compute instances node inside your Compute node.
- Right-click the compute instance you want to inspect and select View Compute instance Properties.
Alternatively, use the Azure ML: View Compute instance Properties
command in the command palette.
- Expand the subscription node that contains your workspace.
- Expand your workspace node.
- Expand the Compute instances node inside your Compute node.
- Right-click the compute instance you want to delete and select Delete Compute instance.
Alternatively, use the Azure ML: Delete Compute instance
command in the command palette.
For more information, see training compute targets.
- Expand the subscription node that contains your workspace.
- Expand your workspace node.
- Expand the Compute node.
- Right-click the Compute clusters node in your workspace and select Create Compute.
- A specification file appears. Configure the specification file.
- Right-click the specification file and select Azure ML: Create Resource.
Alternatively, use the > Azure ML: Create Compute
command in the command palette.
- Expand the subscription node that contains your workspace.
- Expand your workspace node.
- Expand the Compute clusters node inside your Compute node.
- Right-click the compute you want to view and select View Compute Properties.
Alternatively, use the > Azure ML: View Compute Properties
command in the command palette.
- Expand the subscription node that contains your workspace.
- Expand your workspace node.
- Expand the Compute clusters node inside your Compute node.
- Right-click the compute you want to delete and select Remove Compute.
Alternatively, use the > Azure ML: Remove Compute
command in the command palette.
For more information, see compute targets for inference.
- Expand the subscription node that contains your workspace.
- Expand your workspace node.
- Expand the Inference clusters node inside your Compute node.
- Right-click the compute you want to:
- View Compute Properties. Displays read-only configuration data about your attached compute.
- Detach compute. Detaches the compute from your workspace.
Alternatively, use the > Azure ML: View Compute Properties
and > Azure ML: Detach Compute
commands respectively in the command palette.
- Expand the subscription node that contains your workspace.
- Expand your workspace node.
- Expand the Attached computes node inside your Compute node.
- Right-click the compute you want to delete and select Remove Compute.
Alternatively, use the > Azure ML: Remove Compute
command in the command palette.
For more information, see unmanaged compute.
- Expand the subscription node that contains your workspace.
- Expand your workspace node.
- Expand the Attached computes node inside your Compute node.
- Right-click the compute you want to:
- View Compute Properties. Displays read-only configuration data about your attached compute.
- Detach compute. Detaches the compute from your workspace.
Alternatively, use the > Azure ML: View Compute Properties
and > Azure ML: Detach Compute
commands respectively in the command palette.
For more information, see models
- Expand the subscription node that contains your workspace.
- Expand your workspace node.
- Right-click the Models node in your workspace and select Create Model.
- A specification file appears. Configure the specification file.
- Right-click the specification file and select Azure ML: Create Resource.
Alternatively, use the > Azure ML: Create Model
command in the command palette.
- Expand the subscription node that contains your workspace.
- Expand the Models node inside your workspace.
- Right-click the model whose properties you want to see and select View Model Properties. A file opens in the editor containing your model properties.
Alternatively, use the > Azure ML: View Model Properties
command in the command palette.
- Expand the subscription node that contains your workspace.
- Expand the Models node inside your workspace.
- Right-click the model you want to download and select Download Model File.
Alternatively, use the > Azure ML: Download Model File
command in the command palette.
- Expand the subscription node that contains your workspace.
- Expand the Models node inside your workspace.
- Right-click the model you want to delete and select Remove Model.
- A prompt appears confirming you want to remove the model. Select Ok.
Alternatively, use the > Azure ML: Remove Model
command in the command palette.
For more information, see endpoints.
- Expand the subscription node that contains your workspace.
- Expand your workspace node.
- Right-click the Models node in your workspace and select Create Endpoint.
- Choose your endpoint type.
- A specification file appears. Configure the specification file.
- Right-click the specification file and select Azure ML: Create Resource.
Alternatively, use the > Azure ML: Create Endpoint
command in the command palette.
- Expand the subscription node that contains your workspace.
- Expand the Endpoints node inside your workspace.
- Right-click the deployment you want to remove and select Remove Service.
- A prompt appears confirming you want to remove the service. Select Ok.
Alternatively, use the > Azure ML: Remove Service
command in the command palette.
In addition to creating and deleting deployments, you can view and edit settings associated with the deployment.
- Expand the subscription node that contains your workspace.
- Expand the Endpoints node inside your workspace.
- Right-click the deployment you want to manage:
- To view deployment configuration settings, select View Service Properties.
Alternatively, use the > Azure ML: View Service Properties
command in the command palette.
Train an image classification model with the VS Code extension.