Skip navigation

Azure Machine Learning end-to-end secure setup

Last updated: 2022-05-31

This set of Bicep templates demonstrates how to set up Azure Machine Learning end-to-end in a secure set up. This reference implementation includes the Workspace, a compute cluster, compute instance and attached private AKS cluster.

This Azure Resource Manager template was created by a member of the community and not by Microsoft. Each Resource Manager template is licensed to you under a licence agreement by its owner, not Microsoft. Microsoft is not responsible for Resource Manager templates provided and licensed by community members and does not screen for security, compatibility, or performance. Community Resource Manager templates are not supported under any Microsoft support programme or service, and are made available AS IS without warranty of any kind.


Parameter Name Description
prefix Prefix for all resource names.
location Azure region used for the deployment of all resources.
tags Set of tags to apply to all resources.
vnetAddressPrefix Virtual network address prefix
trainingSubnetPrefix Training subnet address prefix
scoringSubnetPrefix Scoring subnet address prefix
azureBastionSubnetPrefix Bastion subnet address prefix
deployJumphost Deploy a Bastion jumphost to access the network-isolated environment?
dsvmJumpboxUsername Jumphost virtual machine username
dsvmJumpboxPassword Jumphost virtual machine password
amlComputePublicIp Enable public IP for Azure Machine Learning compute nodes
amlComputeDefaultVmSize VM size for the default compute cluster

Use the template


New-AzResourceGroup -Name <resource-group-name> -Location <resource-group-location> #use this command when you need to create a new resource group for your deployment
New-AzResourceGroupDeployment -ResourceGroupName <resource-group-name> -TemplateUri
Install and configure Azure PowerShell

Command line

az group create --name <resource-group-name> --location <resource-group-location> #use this command when you need to create a new resource group for your deployment
az group deployment create --resource-group <my-resource-group> --template-uri
Install and Configure the Azure Cross-Platform Command-Line Interface