PowerShell modules for Azure Machine Learning Studio

Using PowerShell modules, you can programmatically manage your Studio resources and assets such as workspaces, datasets, and web services.

You can interact with Studio resources using three Powershell modules:

Although these PowerShell modules have some similarities, each is designed for particular scenarios. This article describes the differences between the PowerShell modules, and helps you decide which ones to choose.

Check the support table below to see which resources are supported by each module.

Azure PowerShell Az and AzureRM

Az is now the intended PowerShell module for interacting with Azure and includes all the previous functionality of AzureRM. AzureRM will continue to receive bug fixes, but it will receive no new cmdlets or features. Az and AzureRM both manage solutions deployed using the Azure Resource Manager deployment model. These resources include Studio workspaces and Studio "New" web services.

PowerShell classic can be installed alongside either Az or AzureRM to cover both "new" and "classic" resource types. However, it is not recommended to have Az and AzureRM installed at the same time. To decide between Az and AzureRM, Microsoft recommends Az for all future deployments. Learn more about Az versus AzureRM and the migration path in introduction to the Azure PowerShell Az.

To get started with Az, follow the installation instructions for Azure Az.

PowerShell classic

The Studio PowerShell classic module allows you to manage resources deployed using the classic deployment model. These resources include Studio user assets, "classic" web services, and "classic" web service endpoints.

However, Microsoft recommends that you use the Resource Manager deployment model for all future resources to simplify the deployment and management of resources. If you would like to learn more about the deployment models, see the Azure Resource Manager vs. classic deployment article.

To get started with PowerShell classic, download the release package from GitHub and follow the instructions for installation. The instructions explain how to unblock the downloaded/unzipped DLL and then import it into your PowerShell environment.

PowerShell classic can be installed alongside either Az or AzureRM to cover both "new" and "classic" resource types.

PowerShell support table

Az PowerShell classic
Create/delete workspaces Resource Manager templates
Manage workspace commitment plans New-AzMlCommitmentPlan
Manage workspace users Add-AmlWorkspaceUsers
Manage web services New-AzMlWebService
("new" web services)
New-AmlWebService
("classic" web services)
Manage web service endpoints/keys Get-AzMlWebServiceKey Add-AmlWebServiceEndpoint
Manage user datasets/trained models Get-AmlDataset
Manage user experiments Start-AmlExperiment
Manage custom modules New-AmlCustomModule

Next steps

Consult the full documentation these PowerShell module: