Ref: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-train-with-custom-image
Steps:
- (1) Create a local conda environment with python 3.6 or later and install azure python SDK
conda create --name azure-env python=3.9
pip install azureml-core
- (2) Install Azure CLI and Login with Azure Account
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
az login
-
(3) Create Azure Container Registry Instance and push Docker Image (you must have the image already built locally)
az acr create --resource-group myResourceGroup --name azuremlforecastingcontainer01 --sku Basic
az acr login --name azuremlforecastingcontainer01
docker tag pysparkforecast azuremlforecastingcontainer01.azurecr.io/pypsparkforecast:latest
docker push azuremlforecastingcontainer01.azurecr.io/pypsparkforecast:latest