November 2018
Intermediate to advanced
556 pages
14h 42m
English
We can now deploy our image into the cloud. From the Jupyter Notebook, we can run the following code:
from azureml.core.webservice import Webservicefrom azureml.core.image import ContainerImage# configure the imageimage_config = ContainerImage.image_configuration(execution_script="core.py", runtime="python", conda_file="myenv.yml")service = Webservice.deploy_from_model(workspace=ws, name='wind-turbine', deployment_config=aciconfig, models=[], image_config=image_config)service.wait_for_deployment(show_output=True)print(service.scoring_uri)
This procedure takes a few minutes to package the image and start the Docker container. After that, we will receive the URL of the REST API to call.
Be careful with the name of the ...