AciServiceDeploymentConfiguration Class
Represents deployment configuration information for a service deployed on Azure Container Instances.
Create an AciServiceDeploymentConfiguration object using the deploy_configuration
method of the
AciWebservice class.
Create a configuration object for deploying an ACI Webservice.
- Inheritance
-
AciServiceDeploymentConfiguration
Constructor
AciServiceDeploymentConfiguration(cpu_cores=None, memory_gb=None, tags=None, properties=None, description=None, location=None, auth_enabled=None, ssl_enabled=None, enable_app_insights=None, ssl_cert_pem_file=None, ssl_key_pem_file=None, ssl_cname=None, dns_name_label=None, primary_key=None, secondary_key=None, collect_model_data=None, cmk_vault_base_url=None, cmk_key_name=None, cmk_key_version=None, vnet_name=None, subnet_name=None)
Parameters
- cpu_cores
- float
The number of CPU cores to allocate for this Webservice. Can be a decimal. Defaults to 0.1
- memory_gb
- float
The amount of memory (in GB) to allocate for this Webservice. Can be a decimal. Defaults to 0.5
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.
- location
- str
The Azure region to deploy this Webservice to. If not specified, the Workspace location will be used. For more details on available regions, see Products by region.
- auth_enabled
- bool
Whether or not to enable auth for this Webservice. Defaults to False.
- ssl_enabled
- bool
Whether or not to enable SSL for this Webservice. Defaults to False.
- enable_app_insights
- bool
Whether or not to enable AppInsights for this Webservice. Defaults to False.
- dns_name_label
- str
The DNS name label for the scoring endpoint. If not specified a unique DNS name label will be generated for the scoring endpoint.
- collect_model_data
- bool
Whether or not to enable model data collection for this Webservice. Defaults to False
- cpu_cores
- float
The number of CPU cores to allocate for this Webservice. Can be a decimal. Defaults to 0.1
- memory_gb
- float
The amount of memory (in GB) to allocate for this Webservice. Can be a decimal. Defaults to 0.5
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.
- location
- str
The Azure region to deploy this Webservice to. If not specified, the Workspace location will be used. For more details on available regions, see Products by region.
- enable_app_insights
- bool
Whether or not to enable AppInsights for this Webservice. Defaults to False.
- dns_name_label
- str
The DNS name label for the scoring endpoint. If not specified a unique DNS name label will be generated for the scoring endpoint.
- collect_model_data
- bool
Whether or not to enable model data collection for this Webservice. Defaults to False
Variables
- cpu_cores
- float
The number of CPU cores to allocate for this Webservice. Can be a decimal. Defaults to 0.1
- memory_gb
- float
The amount of memory (in GB) to allocate for this Webservice. Can be a decimal. Defaults to 0.5
- azureml.core.webservice.AciServiceDeploymentConfiguration.tags
A dictionary of key value tags to give this Webservice.
- azureml.core.webservice.AciServiceDeploymentConfiguration.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.AciServiceDeploymentConfiguration.description
A description to give this Webservice.
- azureml.core.webservice.AciServiceDeploymentConfiguration.location
The Azure region to deploy this Webservice to. If not specified, the Workspace location will be used. For more details on available regions, see Products by region.
- auth_enabled
- bool
Whether or not to enable auth for this Webservice. Defaults to False.
- ssl_enabled
- bool
Whether or not to enable SSL for this Webservice. Defaults to False.
- enable_app_insights
- bool
Whether or not to enable AppInsights for this Webservice. Defaults to False.
- ssl_cert_pem_file
- str
The cert file needed if SSL is enabled.
- ssl_key_pem_file
- str
The key file needed if SSL is enabled.
- ssl_cname
- str
The cname for if SSL is enabled.
- dns_name_label
- str
The DNS name label for the scoring endpoint. If not specified a unique DNS name label will be generated for the scoring endpoint.
- primary_key
- str
A primary auth key to use for this Webservice.
- secondary_key
- str
A secondary auth key to use for this Webservice.
- collect_model_data
- bool
Whether or not to enabled model data collection for the Webservice.
Methods
print_deploy_configuration |
Print the deployment configuration. |
validate_configuration |
Check that the specified configuration values are valid. Will raise a WebserviceException if validation fails. |
print_deploy_configuration
Print the deployment configuration.
print_deploy_configuration()
validate_configuration
Check that the specified configuration values are valid.
Will raise a WebserviceException if validation fails.
validate_configuration()
Exceptions
Feedback
Submit and view feedback for