Depending on your preference, you can either work directly on your local laptop using Docker (Path 1), or remotely connect to a Compute Instance
(Path 2). Both paths will work, but depending on your system restrictions (e.g., not full admin rights to your laptop), you might want to use Path 2.
Both paths cover how to leverage Azure Machine Learning for performing demanding, long-running training and batch-scoring jobs in the cloud.
Follow this path if:
docker
installed (see here)Some parts might already be fulfilled (editor, SSH keys), hence feel free to skip those steps.
Execute training Python code on local laptop using python
or startup script to make sure it is working properly
az login
az extension add -n azure-cli-ml
Follow this path if:
docker
Some parts might already be fulfilled (editor, SSH keys), hence feel free to skip those steps.
Execute training Python code on local laptop using python
or startup script to make sure it is working properly
ssh-keygen -t rsa -b 4096
~/.ssh/id_rsa.pub
with an editor of your choice and copy the public keyCompute --> Compute Instances
+ New
Compute name
(doesn't matter)Virtual Machine size
SSH Access
~/.ssh/id_rsa.pub
in SSH public key
Create
SSH
under Application URI and copy the Login using local account
command Visual Studio Code
Remote Explorer
+ Add new SSH Target
ssh azureuser@*.*.*.* -p *
C:\Users\username\.ssh\config
(Windows) or ~/.ssh/config
(macOS, Linux)SSH Targets
entry and select Connect to Host in Current Window
Resource Group
Storage Account
(named same as the Machine Learning service with some number, e.g., amldemo12345678
)File shares
code
and select the matching file share Connect
Now that you have your environment up and running, we can move to the next section and migrate your training code to Azure.