webservice Module

Contains functionality for managing models deployed as a web service endpoint in Azure Machine Learning.

This module contains the abstract parent class Webservice, which defines methods for deploying models. A common pattern is to create a configuration object for the specific compute target, and then use the methods of the Webservice class with that configuration object. For example, to deploy to Azure Container Instances, create a AciServiceDeploymentConfiguration object from the deploy_configuration method of the AciWebservice class, and then use one of the deploy methods of the Webservice class. A similar pattern applies for the AksWebservice, AksEndpoint, and LocalWebservice classes.

For an overview of deployment, see Deploy models with Azure Machine Learning.

Classes

AutoScaler

Defines details for autoscaling configuration of a Kubernetes Webservice.

To specify autoscaling configuration, you will typically use the deploy_configuration or the update method of the AksWebservice class.

ContainerResourceRequirements

Defines the resource requirements for a container used by the Webservice.

To specify autoscaling configuration, you will typically use the deploy_configuration method of the AksWebservice class or the AciWebservice class.

DataCollection

Defines data collection configuration for a Webservice.

LivenessProbeRequirements

Defines liveness probe time requirements for deployments of the Webservice.

To specify autoscaling configuration, you will typically use the deploy_configuration or the update method of the AksWebservice class.

WebServiceAccessToken

Defines base functionality for retrieving the Access Token for deployed web services in Azure Machine Learning.

Webservice

Defines base functionality for deploying models as web service endpoints in Azure Machine Learning.

Webservice constructor is used to retrieve a cloud representation of a Webservice object associated with the provided Workspace. Returns an instance of a child class corresponding to the specific type of the retrieved Webservice object. The Webservice class allows for deploying machine learning models from either a Model or Image object.

For more information about working with Webservice, see Deploy models with Azure Machine Learning.

WebserviceDeploymentConfiguration

Defines the base-class functionality for all Webservice deployment configuration objects.

This class represents the configuration parameters for deploying a Webservice on a specific target. For example, to create deployment for Azure Kubernetes Service, use the deploy_configuration method of the AksWebservice class.