WebserviceDeploymentConfiguration Class
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.
Initialize the configuration object.
- Inheritance
-
WebserviceDeploymentConfiguration
Constructor
WebserviceDeploymentConfiguration(type, description=None, tags=None, properties=None, primary_key=None, secondary_key=None, location=None)
Parameters
A dictionary of key value properties to give this Webservice. These properties cannot be changed after deployment, however new key value pairs can be added.
A dictionary of key value properties to give this Webservice. These properties cannot be changed after deployment, however new key value pairs can be added.
Variables
- azureml.core.webservice.Webservice.description
A description to give this Webservice.
- azureml.core.webservice.Webservice.tags
A dictionary of key value tags to give this Webservice.
- azureml.core.webservice.Webservice.properties
A dictionary of key value properties to give this Webservice. These properties cannot be changed after deployment, however new key value pairs can be added.
- azureml.core.webservice.Webservice.primary_key
A primary auth key to use for this Webservice.
- azureml.core.webservice.Webservice.secondary_key
A secondary auth key to use for this Webservice.
- azureml.core.webservice.Webservice.location
The Azure region to deploy this Webservice to.
Methods
print_deploy_configuration |
Print the deployment configuration. |
validate_configuration |
Check that the specified configuration values are valid. Raises a WebserviceException if validation fails. |
validate_image |
Check that the image that is being deployed to the Webservice is valid. Raises a WebserviceException if validation fails. |
print_deploy_configuration
Print the deployment configuration.
abstract print_deploy_configuration()
validate_configuration
Check that the specified configuration values are valid.
Raises a WebserviceException if validation fails.
abstract validate_configuration()
Exceptions
validate_image
Check that the image that is being deployed to the Webservice is valid.
Raises a WebserviceException if validation fails.
validate_image(image)
Parameters
- cls
Indicates that this is a class method.
Exceptions
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for