An easy way testing your model is to deploy the model in a container to an Azure Container Instance. A Container Instance is the easiest way to deploy a container.
Install the AzureML SDK
In your terminal install the AzureML SDK
pipinstallazureml-sdk
Download the scoring script
# Create a directory
mkdir deploy
cd deploy
# Download the scoring script
wget https://raw.githubusercontent.com/GlobalAICommunity/back-together-2021/main/workshop-assets/amls/score.py
Create the Python Script
We start with creating a python script called deploy.py, this script will take of deploying your model.
code deploy.py
and start with importing the dependencies and setting some variables.